Question About SPIN2 PUB/PRI Method RETURN var Statements

I just want to verify that the PUB/PRI methods no longer allow the 'RETURN var' statement. This was optional in SPIN but no longer seems to work in SPIN2.


  • It does, but the difference is, in SPIN2 the return variable must be explicitly declared (there's no implied 'result' var like in SPIN1)

  • To add to that, you can use return without declaring a return value, but it must be an empty return that is used as an early exit from the method.
Sign In or Register to comment.