gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
274 stars 61 forks source link

.out does not go out of procedure if last command before "end" is "return" #1866

Open brandy125 opened 1 month ago

brandy125 commented 1 month ago

This simple program is just to simulate the problem that ".out" does not go out of a procedure if the last command is "return"

bash$ gdl
  GDL - GNU Data Language, Version v1.0.6-16-gc154de16
GDL> doit
% Compiled module: DOIT.
% Stop encountered: DOIT                 3 /home/chris/doit.pro
GDL> .out
5
GDL> help
% At DOIT                 4 /home/chris/doit.pro
     $MAIN$          
pro doit
stop
print,'5'
return
end