ncsa / qdl

the QDL programming language
Other
1 stars 0 forks source link

Java modules should be allowed to have similar names to system functions #57

Open jjg-123 opened 1 month ago

jjg-123 commented 1 month ago

A QDL defined module may have a name that is the same as the unqualified name of a system function, e.g. module['a:a'][size(x)->stem#size(x)+1;] Should work, since if it is imported as foo, the call foo#size(arg) resolves right.

Conflicts are caught at parsing. Java modules, however, are not parsed, so having a Java module with a function size() will result in an error since it cannot be resolved. Solution is to check the module as part of the evaluation and make sure modules can have such names.