The following short program should not print the "Why does this print?" line, yet it does. !version = { i386 Darwin unix Darwin 6.0 Jul 07 2005 32 64}
pro Problem,X
IF (1)then begin
IF (1)then begin
print,"Going to Label1"
goto, Label1
end else begin
print,"Why does this print?"
end
Label1: print,"at Label1"
end
print,"Returning"...
2009-06-22 00:17:46 UTC in GDL - GNU Data Language