Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 (Fortune 01.1b1); site graffiti.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!graffiti!peter From: peter@graffiti.UUCP (Peter da Silva) Newsgroups: net.lang.c Subject: Re: "C" wish list. Message-ID: <367@graffiti.UUCP> Date: Wed, 23-Oct-85 06:23:18 EST Article-I.D.: graffiti.367 Posted: Wed Oct 23 06:23:18 1985 Date-Received: Sun, 3-Nov-85 06:45:17 EST References: <335@graffiti.UUCP> <6071@utzoo.UUCP> Organization: The Power Elite, Houston, TX Lines: 44 > > 2. Allow auto aggregate initialisations: > > Already in X3J11. Good. It'd be even better if I could get a copy of X3J11 to look at (hint). > > 3. Allow constant aggregates: > > It's really hard to come up with a complete syntax for this. It's also > of limited (although non-zero) usefulness. So are enums, and they're there. I never understood why they bothered to implement enums (which are more elegant than #defines, admittedly, but don't really add any functionality) and structure assignment and passing (can you say inefficient?) rather than some of the more obvious things missing from 'C' (like function argument type checking... I know that's there now but who's got a compiler that does it?). As for the syntax: I added it to the small 'C' compiler as an exercise, and found it rather easy. Of course I didn't have any data structures to worry about... but... struct foo bar = {....}; /* initialised aggregates */ ... zot = (struct foo *){....}; /* constant aggregate of type struct foo */ And you can generate the same code you use to generate strings. It's a straightforward extension of the current syntax. It makes the language more orthogonal and less surprising. > > 4. Allow true block structuring: [functions within functions] > > Whatever for? As opposed to reasonable non-block structuring as in Modula, > I mean. Because, once again, it's a straightforward extension of current syntax. Never mind. I've already had "Why not" explained to me in great detail. Question: doesn't anyone else have a wish-list of their own? -- Name: Peter da Silva Graphic: `-_-' UUCP: ...!shell!{graffiti,baylor}!peter IAEF: ...!kitty!baylor!peter