namespace collisions

Liste des Groupes 
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?

Thanks.

Date Sujet#  Auteur
2 Feb 25 * namespace collisions4Paul Rubin
2 Feb 25 +* Re: namespace collisions2Anton Ertl
2 Feb 25 i`- Re: namespace collisions1Paul Rubin
2 Feb 25 `- Re: namespace collisions1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal