Help with casts
Chris Torek
torek at elf.ee.lbl.gov
Wed Feb 27 07:23:12 AEST 1991
In article <10257 at 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 at ee.lbl.gov
More information about the Comp.lang.c
mailing list