C Wish List

Peter da Silva peter at graffiti.UUCP
Wed Oct 23 20:59:26 AEST 1985


> /*
> > > 	4. Allow true block structuring:
> > > 
> > > 		outs(s) char*s; {
> > > 			outc(c) char c; {...}
> > > 			tputs(s, outc);
> > > 		}
> > 
> > Let's call this "nested procedures" since C has its own sort of block
> > structure.

Yes, and this is a logical generalisation of that block structure.

> >             I would be very happy <<never>> to have to deal with nested
> > procedures again.  (I have had to deal with them more from the compiler-
> > writer's side than from the user's side.)  Nested procedures are neither
> > easy nor cheap (unless done wrong, which happens often enough).  They fight
> > particularly with procedure variables, which I consider to be one of C's
> > more useful features (and a moderately serious shortcoming of Pascal).

OK. But I still would like to have these... if anyone can figure out a cheap
way of doing them. File-level modules are a kludge at best. No objection to my
other proposals?
-- 
Name: Peter da Silva
Graphic: `-_-'
UUCP: ...!shell!{graffiti,baylor}!peter
IAEF: ...!kitty!baylor!peter



More information about the Comp.lang.c mailing list