Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!usc!apple!sun-barr!decwrl!wam.UMD.EDU!russotto From: russotto@wam.UMD.EDU Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C 4.0 Goodies Message-ID: <8909120002.AA00524@vs04csc.UMD.EDU> Date: 12 Sep 89 00:02:08 GMT References: <199@dbase.UUCP> Organization: University of Maryland, College Park Lines: 29 In article <199@dbase.UUCP> awd@dbase.UUCP (Alastair Dallas) writes: >- structures can be open-ended without causing a compiler error, as in: > struct { > Rect bBox; > int sizObj; > char data[]; > } object; > This is one of the few things that Pascal examples make this C programmer > envious of (the other being with..do). > >Any comments? > >/alastair/ What's the matter with struct { ... char data[0]; } object; ? It's certainly better than Pascal's Packed Array[0..0] of char; -- DISCLAIMER: Not only does the University not share my opinions, they don't want me sharing my opinions. "This 'Pnews', what does it do?" Matthew T. Russotto russotto@wam.umd.edu