🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #169

Re: TP or C ?

#169
From: sl8nl
Date: Fri, 24 Jul 1992 05:53
36 lines
1217 bytes
In article <1992Jul24.044750.25177@ccu1.aukuni.ac.nz>, stuartw@ccu1.aukuni.ac.nz (Stuart Woolford) writes:
> sl8nl@cc.usu.edu writes:
> 
>>> 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-)
> 
> cute feature B-)
> (just goes to show how unreadable pascal is B-)


I didn't come up with the smiley faces... :)
Technical Details
Message-ID: <1992Jul23.235351.57486@cc.usu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!cc.usu.edu!sl8nl
References: <cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com> <1992Jul24.044750.25177@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.235351.57486@cc.usu.edu>
Date: 23 Jul 92 23:53:51 MDT
References: <cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com>     <1992Jul24.044750.25177@ccu1.aukuni.ac.nz>
Organization: Utah State University
Lines: 36