ncsa / qdl

the QDL programming language
Other
2 stars 0 forks source link

Do not overwrite module alias in all cases #43

Closed jjg-123 closed 3 months ago

jjg-123 commented 8 months ago

Case is several modules are loaded and you write a function like

verify()->block[mm#f(x,q#y);]

In this case, there are two internal modules accessed mm and q. the enclosing function, verify, however is unqualified. The bug was that anything inside the block would have its module overwritten and thereby cause a failure. If there is no other module in effect, do not switch it.