Xref: utzoo comp.lang.c:36551 comp.lang.pascal:5559 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!rutgers!ucsd!ucbvax!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.lang.c,comp.lang.pascal Subject: Re: Help with casts Message-ID: <10307@dog.ee.lbl.gov> Date: 26 Feb 91 20:23:12 GMT References: <1991Feb21.040145.8678@cec1.wustl.edu> <409@ceco.ceco.com> <339@smds.UUCP> <414@ceco.ceco.com> <1991Feb25.143544.11950@watdragon.waterloo.edu> <10257@dog.ee.lbl.gov> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Followup-To: comp.lang.pascal Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 21 X-Local-Date: Tue, 26 Feb 91 12:23:13 PST In article <10257@dog.ee.lbl.gov> I claiemd that Pascal for loop index variables `must be local' (which is true) and gave a bogus example: > program foo; > var i : integer; > procedure nothing; begin end; > begin for i := 1 to 10 do nothing end. >is illegal because `i' is global; That should be: program foo; var i : integer; procedure nothing; begin end; procedure p; begin for i := 1 to 10 do nothing end; begin p end. This is illegal because `i' is not local to procedure `p'. -- In-Real-Life: Chris Torek, Lawrence Berkeley Lab EE div (+1 415 486 5427) Berkeley, CA Domain: torek@ee.lbl.gov