🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2380

Re: functions within functions

#2380
From: Dave P. Schaumann
Date: Sun, 27 Jan 1991 23:40
20 lines
1217 bytes
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
Technical Details
Message-ID: <741@caslon.cs.arizona.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!noao!arizona!dave
References: <1991Jan22.081057.8567@ithaca.uucp> <11681@pt.cs.cmu.edu> <1991Jan27.092018.2965@kithrup.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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