Article View: comp.lang.logo
Article #155Re: Future of Logo
From: Ronald Bodkin
Date: Sun, 16 Aug 1992 22:21
Date: Sun, 16 Aug 1992 22:21
21 lines
1155 bytes
1155 bytes
In article <1992Aug6.014513.1526@beaver.cs.washington.edu> rrogers@cs.washington.edu (Richard Rogers) writes:
Within the static partitions of a program, a variable is either local to the
procedure or global.
Not really: you can create scopes within procedures too:
void foo() {
int i;
i=2;
{
int i;
i=3;
emit(i);
}
emit(i);
}
This calls emit(3) then emit(2). However, you can certainly make the
simplification of writing code without such nested scopes.
Ron
Technical Details
Message-ID:
<RJBODKIN.92Aug16172108@lister.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!yale!mintaka.lcs.mit.edu!mintaka!rjbodkinReferences:
<15omhaINNgvr@agate.berkeley.edu> <1992Aug5.203847.20530@beaver.cs.washington.edu> <1992Aug5.205845.22880@jarvis.csri.toronto.edu> <1992Aug6.014513.1526@beaver.cs.washington.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.logo Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!yale!mintaka.lcs.mit.edu!mintaka!rjbodkin From: rjbodkin@theory.lcs.mit.edu (Ronald Bodkin) Subject: Re: Future of Logo In-Reply-To: rrogers@cs.washington.edu's message of 6 Aug 92 01:45:13 GMT Message-ID: <RJBODKIN.92Aug16172108@lister.lcs.mit.edu> Sender: news@mintaka.lcs.mit.edu Organization: MIT Lab for Computer Science References: <15omhaINNgvr@agate.berkeley.edu> <1992Aug5.203847.20530@beaver.cs.washington.edu> <1992Aug5.205845.22880@jarvis.csri.toronto.edu> <1992Aug6.014513.1526@beaver.cs.washington.edu> Date: Sun, 16 Aug 1992 22:21:08 GMT Lines: 21