Namespacing for modules (silent overwriting in cases of name collision?)
jpl
jpl.algol68@gmail.com
Thu Jan 29 18:48:43 GMT 2026
Hello All,
Been experimenting more and having waaaaaay too much fun doing so. I
am looking forward to being able to program more and more in this
language. (The fft library is coming along nicely!)
In my recent experimentation, I created two different modules that had
similarly named pub procedures. Everything compiled and linked just
fine. However, of the two similarly named exported procedures, it was
the one from the "accessed module" listed second that would be run in
the executable code.
This is understandable. However, it does raise a few questions:
1) Is there some way to obtain "namespacing" of modules that I am
simply unaware of?
2) If this not possible presently, might this become possible at some
point in time? (Or is this just inherently completely impossible?)
3) Should this name collision be a compilation/linker "error", or a
"warning message"?
Regards,
James
PS Please disregard if this is bothersome question. I can respect that.
More information about the Algol68
mailing list