kleinesfilmroellchen / sof-language

The Stack with Objects and Functions Programming Language, a pure stack-based reverse-polish-notation functional and object-oriented experimental programming language.
https://kleinesfilmroellchen.github.io/sof-language/
GNU General Public License v3.0
11 stars 0 forks source link

File interpreted as module can't see its own global definitions #7

Closed kleinesfilmroellchen closed 2 years ago

kleinesfilmroellchen commented 3 years ago

A file that is executed as a module can't see its global definitions, because the GNT is overridden with that of the calling module or the main module.

This will require some architectural changes: storing the module's GNT with at least all exported functions.

kleinesfilmroellchen commented 2 years ago

Fixed by 5e7135b603d76de99fb9f5752062013500081fe4