Article View: comp.lang.c
Article #914Re: Taming The Switch-Statement
From: Keith Thompson
Date: Wed, 28 Oct 2026 05:33
Date: Wed, 28 Oct 2026 05:33
35 lines
3136 bytes
3136 bytes
steve g <Sgonedes1977@gmail.com> writes:
> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>> 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?
>>
>> What's a "class"?
>
> an object is a data structure that has an identity. I remeber this from
> a long time ago. A class i dunno.
I wasn't really asking what a class is. I was asking what LDO
means by "class", since he posted in comp.lang.c, and C doesn't
have classes as a language feature.
[snip]
> To access an ``outer'' class, or a nested object, would depend on the
> programming language. I would recommend GCC. it allows for nested
> functions. Just stick the functions into a vector and well...
GCC is not a language. It's a collection of compilers for several
languages -- some of which fully support object-oriented programming,
if that's what you're looking for.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11bs1ee$25d5j$1@kst.eternal-september.org>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!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<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> <11bjfid$35feb$3@kst.eternal-september.org> <87a4nypfu9.fsf@gmail.com>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!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Tue, 27 Oct 2026 22:33:02 -0700 Organization: None to speak of Lines: 35 Message-ID: <11bs1ee$25d5j$1@kst.eternal-september.org> 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> <11bjfid$35feb$3@kst.eternal-september.org> <87a4nypfu9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 28 Oct 2026 05:33:03 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2274483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18plhQnVQLT2kY3wyMnKWM7"; posting-host="ac4e6fa4e505b2147f0d092402a060c4" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:6sgcsQwn6J6D191JD0RTroBiDFY= sha256:qf/TLnmypL/bLvqK1+jKzygi/r4HnjzQoWA040QlWG0= sha1:TcqAvBTaL+Jfu1CsUSNvuaJIV04= sha256:+jQnDoC6odoj53U1FmVnTocgHn5fy1dmJS+oLNL/sFc=