Sujet : namespace collisions De : no.email (at) *nospam* nospam.invalid (Paul Rubin) Groupes :comp.lang.forth Date : 02. Feb 2025, 01:29:43 Autres entêtes Organisation : A noiseless patient Spider Message-ID :<87h65dxk7c.fsf@nightsong.com> User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
In Haskell, if you import packages X and Y, and X contains a symbol "foo", you can refer to it as just "foo" or explicitly as X.foo.
If both X and Y contain foo, then saying just "foo" is ambiguous and the compiler flags it as an error. You are required to say X.foo or Y.foo to indicate which one you want.
Is there a simple way to do something like that in Forth, to get an error or at least a warning, if the same symbol occurs in multiple wordlists in the search order?