godunko / adawebpack

Ada WASM Runtime and Bindings for Web API
BSD 3-Clause "New" or "Revised" License
53 stars 3 forks source link

Question about nested subprograms #21

Closed ec-c closed 2 weeks ago

ec-c commented 3 months ago

Why are nested subprograms not supported? Is this a technical decision or for another reason?

godunko commented 3 months ago

Support of nested subprograms requires features that was not supported by GNAT/LLVM/WASM at the time of the development.

ec-c commented 3 months ago

Does this mean that GNAT/LLVM/WASM now supports the required features to implement nested subprograms?

UPDATE: I think so because my subroutines seem to compile.

godunko commented 2 weeks ago

Actually, it did for some extent. It is safe to state that they are not supported, than try to research all conditions when GNAT's code generator reach WASM's limitations.