Path: csiph.com!news.nrbbs.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 28 Oct 2026 05:13:50 +0000 From: steve g Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement 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> Date: Wed, 28 Oct 2026 01:13:50 -0400 Message-ID: <87a4nypfu9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:LGYf7skeZwZpDjALNDpqWzy+n34= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 26 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-b2S4k3TrSBD+3Hkk1FMtu2EVjghj0k3gE/JJLydUzPgjPYJikc7hCIoHdzr5tiAsUO/bPoIbDjQC/yI!AhGk+kxND/QvUFy+J+DgX5mGizW6Lm0+QxOKGW87pFpFIVQ= 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 Xref: csiph.com comp.lang.c:403679 Keith Thompson writes: > Lawrence D’Oliveiro 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. > There are ways to implement or simulate classes and inheritance in C. > Without knowing how that's being done, it's not very meaningful to ask > how to refer to an instance of an outer class. 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...