Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Struct and Union Date: Sat, 11 Jul 2015 13:51:37 -0700 Organization: None to speak of Lines: 14 Message-ID: References: <87io9rwxgh.fsf@bsb.me.uk> <877fq7ws1q.fsf@bsb.me.uk> <65287b12-3597-4503-93e8-3059efa82a87@googlegroups.com> <87bnfivr24.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="10012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v8sOfWxZyHdr3ihfz1+ja" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:LQ5gXy02rJMm1rWAKHLsKau0sCM= sha1:rP8Nkn8Bx/yu/s6TRiBW/gxXtYM= Xref: csiph.com comp.lang.c:65339 Ben Bacarisse writes: [...] > ... and if C had a discriminated union I'd go with that, and if it had > type-classes (not the same as object classes) I'd go with those. There > are lots of things the OP can't use in C -- no need to limit your > suggestions to just one thing they can't use in C. What is a "type-class", and how does it differ from an "object class"? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"