| Deutsch English Français Italiano |
|
<o8jvgjt1vj7jo87i1b1nq867ivv64bvkn8@4ax.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 16 Oct 2024 14:36:34 +0000 From: Joe Gwinn <joegwinn@comcast.net> Newsgroups: sci.electronics.design Subject: Re: Duplicate identifiers in a single namespace Date: Wed, 16 Oct 2024 10:36:33 -0400 Message-ID: <o8jvgjt1vj7jo87i1b1nq867ivv64bvkn8@4ax.com> References: <vdbgch$1ob5k$1@dont-email.me> <nnd$37a9dde7$61356113@e5c57d590be73bf6> User-Agent: ForteAgent/8.00.32.1272 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 43 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Dj6KW+Qin54MZqQwSEqGfFHJojh+/JF1SPNSuBJJm9txKnu54iDssz30wX7JGHxCgjpJwKN3Z3zlpL9!0NnKpjf1785vn1o6epqZuZhVXLngOobyOAFvYBEfB0KUCsZ0VytUg9WkPpIyeoVF1ZNpgyI= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 2600 On Wed, 16 Oct 2024 13:00:48 +0200, albert@spenarnc.xs4all.nl wrote: >In article <vdbgch$1ob5k$1@dont-email.me>, >Don Y <blockedofcourse@foo.invalid> wrote: >>How does (e.g., Windows) tolerate/differentiate between >>multiple *identical* identifiers in a given namespace/context? >> >>And, what *value* to supporting this capability? >> >This is not a Windows question. It is a language question. >C >C is weird. Some identifiers can be declared multiply >as forward. You can have the same name sometimes for >things that are of different type. Not to speak of macro's Look into C/C++ Namespaces. That explains things reasonably well. >Pascal >If you declare multiple identifiers in the same namespace >you are hit on the head. You can have nested namespaces >and there is no conflict, the inner namespace counts. Pascal is compiled in a single pass through the source code, so everything must be defied before it is first used. Unlike C/C++, which has a multipass compiler and linker. This was done because Pascal was intended for teaching programming, and the load in the university's computers was from compiling buggy student homework code time and time again, while C was intended to replace assembly in the Unix operating system. >Forth >You can use the same name for multiple objects. >The name last defined counts. You get at most a warning. Forth is interpreted, and is a pure pushdown language, like a HP calculator using RPN. Joe Gwinn >Groetjes Albert