Module aliases - what is the correct way to handle them
Thanks for all the great feedback I have received in the last 24 hours (=age of my knowledge about module aliases ;-). Thanks to that, I could iterate quickly. But email is inefficient. So, part of discussion has now moved to: http://github.com/andreaspirklbauer/Oberon-test-module-aliases/issues/1 PS: Current iteration is ORB9, which however is still incomplete. Be warned.. -ap
Hi Andreas,
http://github.com/andreaspirklbauer/Oberon-test-module-aliases/issues/1 PS: Current iteration is ORB9, which however is still incomplete. Be warned..
Thanks for this. If I have it correctly, in summary: 1. "Invalid import order" is an implementation restriction to save the compiler from having housekeeping code to stitch together the implicit imports (re-exported types) and later explicit ones. You have kindly contributed alternative implementations which get round this limitation. 2. Prof. Wirth's current ORB.ThisModule code is incorrect, and should be patched along the lines of Michael's fix, but comparing canonical orgnames, i.e. WHILE (obj # NIL) & (obj(Module).orgname # orgname) DO obj1 := obj; obj := obj1.next END ; not WHILE (obj # NIL) & (obj.name # name) DO obj1 := obj; obj := obj1.next END ; nor WHILE (obj # NIL) & (obj(Module).orgname # name) DO obj1 := obj; obj := obj1.next END ; Or is there more we need to look into at this stage? Cheers, Paul
participants (2)
-
Andreas Pirklbauer -
Paul Reed