Article View: rec.games.programmer
Article #166Re: TP or C ?
From: sl8nl
Date: Fri, 24 Jul 1992 00:20
Date: Fri, 24 Jul 1992 00:20
37 lines
1195 bytes
1195 bytes
> what I want added to C:
> add scope control with '.' ie:
> int a;
> blort()
> {
> int a;
> a=1; /* set LOCAL A=1 */
> .a=1; /* set GLOBAL A=1 */
> }
>
Turbo Pascal already has that feature <sneer :)> It deals with the one and
only reason I've found to use a program header (and it works with unit headers
too!)
program Global;
var a : Integer;
procedure blort;
var a : Integer;
begin
a := 1; (* set LOCAL A=1 *)
Global.a := 1; (* set GLOBAL A=1*)
end;
> B-)
> (ever tried thinking of new and interesting names for x and y when
> programming graphics B-< )
>
Too many times.
Joshua Jensen
Xillion Software Development
Author of Protracker Playing Source (yes, for public distribution, free,
and royalty free...well, it's shareware anyway :) )
Technical Details
Message-ID:
<1992Jul23.182026.57480@cc.usu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!cc.usu.edu!sl8nlReferences:
<cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com> <1992Jul23.213310.17575@ccu1.aukuni.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!cc.usu.edu!sl8nl From: sl8nl@cc.usu.edu Newsgroups: rec.games.programmer Subject: Re: TP or C ? Message-ID: <1992Jul23.182026.57480@cc.usu.edu> Date: 23 Jul 92 18:20:26 MDT References: <cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com> <1992Jul23.213310.17575@ccu1.aukuni.ac.nz> Organization: Utah State University Lines: 38