[comp.lang.pascal] Help with casts

torek@elf.ee.lbl.gov (Chris Torek) (02/27/91)

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