Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: Write once C and forth structs Date: Mon, 04 Aug 2014 17:43:08 -0400 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: References: <9358212d-746d-4331-b5e5-ded39e632cd7@googlegroups.com> <95f6c055-6369-456d-9356-e5d44c62e47f@googlegroups.com> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:32848 On Mon, 04 Aug 2014 12:39:27 -0400, Andrew Haley wrote: > Rod Pemberton wrote: >> On Mon, 04 Aug 2014 00:03:22 -0400, wrote: >>> The big problem here, is that C structs are limited >>> to always starting at 0. >> >> What? ... >> >> In fact, I have absolutely no idea what you're even >> attempting to say here. Please explain what you >> mean by: >> >> "C structs are limited to always starting at 0". > > He's talking about type extension. Like this in C++: > > typedef struct { > int one; > } a; > > typedef struct : a { > int two; > } b; > > Here, struct b extends a. > "C structs are limited to single, discrete instances." C structs can be placed at any available memory location, i.e., start at a non-zero location. So, "... starting with 0" really has nothing to do with this ... It's just Hugh's bad choice of wording. Rod Pemberton