Open IsaacOscar opened 5 years ago
Yes, this has to do with the way that the compiled code references modules. It's good to register it as an issue.
I flagged this as wontfix because allowing multiple modules with the same name would require a significant re-work of the way that the compiled code functions are named. At present, they are named gracecode_‹moduleName›
. A possible fix would be to name them gracecode_‹moduleSHA›
, where moduleSHA
is a cryptographically-secure digest of the module source.
When I have two files,
foo.grace
:And
folder/foo.grace
:It fails to compile on
master
(due to issue #295), but compiles on the branch for pull request #297.However it causes a stack overflow at runtime:
Change either of the file names fixes the issue.