| Deutsch English Français Italiano |
|
<87h65dxk7c.fsf@nightsong.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Paul Rubin <no.email@nospam.invalid> Newsgroups: comp.lang.forth Subject: namespace collisions Date: Sat, 01 Feb 2025 16:29:43 -0800 Organization: A noiseless patient Spider Lines: 12 Message-ID: <87h65dxk7c.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 02 Feb 2025 01:29:51 +0100 (CET) Injection-Info: dont-email.me; posting-host="e2c9f6241e484a1a6709e23564f4c8ee"; logging-data="373789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fH0y1UFaR2T3CxE3A+b0m" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:azi0xCIv4/qDpcbFl75cxedrUes= sha1:D3gZnlcHOpiNXknU0s+JwXHL/oE= Bytes: 1366 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.