🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #168

Re: TP or C ?

#168
From: Stuart Woolford
Date: Fri, 24 Jul 1992 04:47
43 lines
1472 bytes
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-)
>> (ever tried thinking of new and interesting names for x and y when
>> 	programming graphics B-< )
>> 

>Too many times.

cute feature B-)
(just goes to show how unreadable pascal is B-)
-------------------------------------------------------------------------------
stuartw@ccu1.aukuni.ac.nz


			>>>>In VI Where Available<<<<
-------------------------------------------------------------------------------
Technical Details
Message-ID: <1992Jul24.044750.25177@ccu1.aukuni.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!waikato.ac.nz!aukuni.ac.nz!stuartw
References: <cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com> <1992Jul23.213310.17575@ccu1.aukuni.ac.nz> <1992Jul23.182026.57480@cc.usu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!waikato.ac.nz!aukuni.ac.nz!stuartw
Newsgroups: rec.games.programmer
Subject: Re: TP or C ?
Message-ID: <1992Jul24.044750.25177@ccu1.aukuni.ac.nz>
From: stuartw@ccu1.aukuni.ac.nz (Stuart Woolford)
Date: Fri, 24 Jul 1992 04:47:50 GMT
References: <cg.0afn@ami-cg.UUCP> <1992Jul15.153252.25417@esds.mdc.com>    
 <1992Jul23.213310.17575@ccu1.aukuni.ac.nz> <1992Jul23.182026.57480@cc.usu.edu>
Organization: University of Auckland, New Zealand.
Lines: 43