🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20742

Re: Possible LSC improvements

#20742
From: Clive Steward
Date: Sun, 25 Oct 1987 17:36
46 lines
2343 bytes
in article <1612@unc.cs.unc.edu>, steele@unc.cs.unc.edu (Oliver Steele) says:
> As far as LSC improvements, I would like to see:
> 
> o   Allow function declarations in prototype form, i.e.
> 	static void foo(int a, long *b)
> 	{
> 		...
> 	}
> 
> o   Make 'pascal' a modifier with its own flavor, instead of a storage
>     modifier, so I can say
> 	static int pascal xyzzy();
>     (this isn't very important, but it bothers my gestalt).
> 

Actually, these and a couple of other things would be very useful
indeed.  They would add similarity to/compatibility with the standard C++
pre-compiler, cfront (!).  I'd add:

o   Allow 'static' in front of any function declarations.  This
is legal (and often used) C, and is something cfront inserts more or
less arbitrarily.

o   Allow the equivalent of preprocessor output (what cpp would emit), 
in a file.

o   To tie it all together (might as well ask for the whole moon),
provide a mechanism to allow filtering before and after preprocessing,
as part of the Make cycle per file -- in other words, a minor form of
scripting.  These would allow automatic use of sed equivalents, cfront, etc.


All this, unless of course there's to be a LightSpeed C++ soon -- now
this, would be absolutely ideal.  Tough, perhaps, though, to track the
development of that language, in particular, the multiple inheritance 
we keep hearing rumors about, which will be very important to have.

Maybe this filtering method, while admittedly slow and nasty,
is a better way for now, since it allows third parties to market a
suitably modified release of the current cfront.  (Part of the
conversion for LSC will have to be in concert with Lightspeed, anyway,
due to the munch process).  Or maybe LSC would be interested
in doing the whole thing???


Clive Steward
Technical Details
Message-ID: <5729@drutx.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ptsfa!ihnp4!drutx!clive
References: <1612@unc.cs.unc.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ptsfa!ihnp4!drutx!clive
From: clive@drutx.ATT.COM (Clive Steward)
Newsgroups: comp.sys.mac
Subject: Re: Possible LSC improvements
Message-ID: <5729@drutx.ATT.COM>
Date: Sun, 25-Oct-87 12:36:22 EST
Article-I.D.: drutx.5729
Posted: Sun Oct 25 12:36:22 1987
Date-Received: Tue, 27-Oct-87 05:52:25 EST
References: <1612@unc.cs.unc.edu>
Organization: resident visitor
Lines: 46