🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #746

Modelling self/this? (was Re: Taming The Switch-Statement)

#746
From: Janis Papanagnou
Date: Sat, 24 Oct 2026 22:56
27 lines
2804 bytes
On 2026-10-25 00:26, Lawrence D’Oliveiro wrote:
> On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:
>> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>>
>>> The trouble with a fixed name is, how do you refer to the instance
>>> of an outer class?
>>
>> Well, self can be internal to the API logic.
> 
> If “self” refers to the current instance of the innermost class, how
> do you refer to an instance of an outer class?

I'm a bit confused about the intention of this sub-thread in CLC.

Since you have already been (at least implicitly) referring to
other languages (by mention of 'self' and 'this') I'd answer the
question that (in principal) a language could qualify the access;
for example, Simula has "THIS DerivedClass" or "THIS BaseClass",
or whatever class in the actual class-path is visible. We could
also access attributes that need an access qualification by the
'QUA' keyword to disambiguate names common in base and derived
classes.

Still curious about the "plan" (for "C") behind, why asking this.

Janis
Technical Details
Message-ID: <11bjd3b$1bqmq$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b8f5h$67l$1@reader2.panix.com> <11baah2$3te3v$1@dont-email.me> <11bb5ou$8nfg$2@dont-email.me> <11bcc4o$jt81$1@dont-email.me> <20261022094427.210@kylheku.com> <11bdp73$15nor$1@dont-email.me> <11bf2s9$1eo7q$2@dont-email.me> <11bgj4c$265sc$2@dont-email.me> <11bgno8$27pn2$1@dont-email.me> <11bh1u6$2av4s$1@dont-email.me> <11bjbah$340l8$5@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Modelling self/this? (was Re: Taming The Switch-Statement)
Date: Sun, 25 Oct 2026 00:56:43 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <11bjd3b$1bqmq$1@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me>
 <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me>
 <11b8f5h$67l$1@reader2.panix.com> <11baah2$3te3v$1@dont-email.me>
 <11bb5ou$8nfg$2@dont-email.me> <11bcc4o$jt81$1@dont-email.me>
 <20261022094427.210@kylheku.com> <11bdp73$15nor$1@dont-email.me>
 <11bf2s9$1eo7q$2@dont-email.me> <11bgj4c$265sc$2@dont-email.me>
 <11bgno8$27pn2$1@dont-email.me> <11bh1u6$2av4s$1@dont-email.me>
 <11bjbah$340l8$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 24 Oct 2026 22:56:43 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1436378"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18hYVcliMkDYRRXUu2I/NrX"; posting-host="0a512dbfa7a992d5d270056d8b27f0f3"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HskDJ71eoNsW8GiXXAcZXydtOmE= sha256:+0wGInt3nz4HQdWsbLvR0cU/gvZR8BeSbWepZsR2qLA=
	sha1:7rXyzv0ZKryuypHA5iCP5Xb5jEI= sha256:VMIkK/Ivm1CXRTQfR6CpyOUBr7xACsB+vauiHlZay6M=
Content-Language: en-US
In-Reply-To: <11bjbah$340l8$5@dont-email.me>