Re: trace(1) bug
- Posted by Pete Lomax <petelomax at blue?onder?co.uk> Nov 16, 2007
- 601 views
c.k.lester wrote: > > Please, no. I want this to be a goof: > > integer i > i = find(x,y) -- i is now 32 > for j = 1 to 10 do > for k = 1 to 10 do > for i = 1 to 10 do -- DO NOT ALLOW > ... > end for > end for > end for > > ?i -- better be 32 By the same token should the compiler complain about:
integer i i = find(x,y) -- i is now 32 for j = 1 to 10 do for k = 1 to 10 do i=11 end for end for ?i -- better be 32
If not, why one and not the other? In my book both mistakes are equally easily made, found and fixed. Regards, Pete