Re: Duplicate identifiers in a single namespace

Liste des GroupesRevenir à se design 
Sujet : Re: Duplicate identifiers in a single namespace
De : joegwinn (at) *nospam* comcast.net (Joe Gwinn)
Groupes : sci.electronics.design
Date : 16. Oct 2024, 15:36:33
Autres entêtes
Message-ID : <o8jvgjt1vj7jo87i1b1nq867ivv64bvkn8@4ax.com>
References : 1 2
User-Agent : ForteAgent/8.00.32.1272
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

Date Sujet#  Auteur
29 Sep 24 * Duplicate identifiers in a single namespace24Don Y
29 Sep 24 +- Re: Duplicate identifiers in a single namespace1Bill Sloman
29 Sep 24 +* Re: Duplicate identifiers in a single namespace7Jeroen Belleman
29 Sep 24 i+* Re: Duplicate identifiers in a single namespace5Don Y
29 Sep 24 ii`* Re: Duplicate identifiers in a single namespace4Don Y
6 Oct 24 ii `* Re: Duplicate identifiers in a single namespace3Don Y
6 Oct 24 ii  `* Re: Duplicate identifiers in a single namespace2Don Y
10 Oct 24 ii   `- Re: Duplicate identifiers in a single namespace1Don Y
29 Sep 24 i`- Re: Duplicate identifiers in a single namespace1Cursitor Doom
6 Oct 24 +- Re: Duplicate identifiers in a single namespace1Don Y
16 Oct 24 `* Re: Duplicate identifiers in a single namespace14albert
16 Oct 24  +- Re: Duplicate identifiers in a single namespace1Don Y
16 Oct 24  `* Re: Duplicate identifiers in a single namespace12Joe Gwinn
16 Oct 24   `* Re: Duplicate identifiers in a single namespace11Don Y
17 Oct 24    `* Re: Duplicate identifiers in a single namespace10Joe Gwinn
17 Oct 24     `* Re: Duplicate identifiers in a single namespace9Don Y
20 Oct 24      `* Re: Duplicate identifiers in a single namespace8Joe Gwinn
20 Oct 24       `* Re: Duplicate identifiers in a single namespace7Don Y
20 Oct 24        `* Re: Duplicate identifiers in a single namespace6Joe Gwinn
21 Oct 24         `* Re: Duplicate identifiers in a single namespace5Don Y
21 Oct 24          +- Re: Duplicate identifiers in a single namespace1Don Y
23 Oct 24          `* Re: Duplicate identifiers in a single namespace3Joe Gwinn
23 Oct 24           `* Re: Duplicate identifiers in a single namespace2Don Y
23 Oct 24            `- Re: Duplicate identifiers in a single namespace1Don Y

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal