🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.logo
Article #70

Re: Future of Logo

#70
From: Richard Rogers
Date: Thu, 06 Aug 1992 01:45
19 lines
1748 bytes
In article <1992Aug5.205845.22880@jarvis.csri.toronto.edu> flaps@dgp.toronto.edu (Alan J Rosenthal) writes:
>rrogers@cs.washington.edu (Richard Rogers) writes:
>>I like C's scoping rules.  (And that's the ONLY thing I like about C!!!)
>>Variables are either global or local to the procedure - simple.
>
>Variables can also have file scope, achieved by putting them outside a function
>and using the storage class "static".  The scope of the variable is the REST of
>the file, so scope is fairly finely divisible.  Also, in C, variable scope is
>not equivalent to variable lifetime like it is in some programming languages,
>nor do all variables have the same lifetime like they do in most of the rest.
>
>It's not simple.  (I do like it, though; I also like the rest of C.)

Within the static partitions of a program, a variable is either local to the
procedure or global.  Modula-2 can do the static trick too... It's not confus-
ing.  I'm not sure what you mean by the variable's lifetime.  

But this is getting fairly specific to C.  Perhaps we should move this to some
place more appropriate.
Technical Details
Message-ID: <1992Aug6.014513.1526@beaver.cs.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!rrogers
References: <15omhaINNgvr@agate.berkeley.edu> <1992Aug5.203847.20530@beaver.cs.washington.edu> <1992Aug5.205845.22880@jarvis.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!rrogers
From: rrogers@cs.washington.edu (Richard Rogers)
Newsgroups: comp.lang.logo
Subject: Re: Future of Logo
Message-ID: <1992Aug6.014513.1526@beaver.cs.washington.edu>
Date: 6 Aug 92 01:45:13 GMT
References: <15omhaINNgvr@agate.berkeley.edu> <1992Aug5.203847.20530@beaver.cs.washington.edu> <1992Aug5.205845.22880@jarvis.csri.toronto.edu>
Sender: news@beaver.cs.washington.edu (USENET News System)
Organization: Computer Science & Engineering, U. of Washington, Seattle
Lines: 19