Path: ...!weretis.net!feeder9.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: enum sets Date: Wed, 28 Aug 2024 17:33:17 -0700 Organization: None to speak of Lines: 15 Message-ID: <87wmk09nhu.fsf@nosuchdomain.example.com> References: <871q28b26c.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Thu, 29 Aug 2024 02:33:18 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d17aacdbc8a710bbcdf54ea5a7e9baf3"; logging-data="3842266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6sK1kDX7YzQyh37GhlJei" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:s+hFFMdaFHw2BUZuUQlenrxgw8k= sha1:XH3aJbKZJZjbfw+eD2wMfEfdIYo= Bytes: 1543 Keith Thompson writes: [...] > Ada has something very similar to this: > > type Font_Type is (CASCADIA_FONT, ARIAL_FONT); > subtype monospaced_font_type is Font_type range CASCADIA_FONT .. CASCADIA_FONT; [...] Please disregard the inconsistent use of upper and lower case. Ada, unlike C, has case-insensitive identifiers and keywords, but here I was just being sloppy. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */