Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!noao!arizona!dave From: dave@cs.arizona.edu (Dave P. Schaumann) Newsgroups: comp.std.c Subject: Re: functions within functions Message-ID: <741@caslon.cs.arizona.edu> Date: 27 Jan 91 23:40:06 GMT References: <1991Jan22.081057.8567@ithaca.uucp> <11681@pt.cs.cmu.edu> <1991Jan27.092018.2965@kithrup.COM> Organization: U of Arizona CS Dept, Tucson Lines: 20 This does bring up a problem that should be adressed: As it stands, C has two scopes where functions can be seen: 1. Static (ie, within a file) 2. Global (everywhere) It would be nice if there were a device that allowed user-definable scopes that function names would be visible in. Hmm. It occurs to me that C++'s class keyword allows just that... Maybe a simplified form of this mechanism should be considered for addition. Thus, you could type something like bar::foo( int baz ) { ... } bop::foo( char *glorp ) { ... } With no conflict. Of course, you would have to include the scope-space keyword to disambiguate a function call to foo(). Dave Schaumann | And then -- what then? Then, future... dave@cs.arizona.edu | -Weather Report