We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7ccf8c commit 9b47787Copy full SHA for 9b47787
src/dinterpreter.cpp
@@ -927,12 +927,11 @@ DInterpreter::CommandCode DInterpreter::CmdRun( const string& command)
927
}
928
929
930
-// if( retAll)
931
-// Warning( "Compiled a main program while inside a procedure. "
932
-// "Returning.");
933
-
+ // GD see issue #1969: this is the only difference with CmdCompile: process the
+ // eventual $MAIN$ commands that are at the end of 'argstr'.pro when CmdCompile
+ // would just ignore these non-procedure commands.
934
// actual run is perfomed in InterpreterLoop()
935
- if( retAll) RetAll( RetAllException::RUN); // throws (always)
+ RetAll( RetAllException::RUN); // difference is here.
936
return CC_OK; //avoid warnings
937
938
0 commit comments