oh well ... but then it shouldn't fail on "missing endfunction", no?

Hmmm ... yes, it wil work if the subroutine is inside the function, but apart from the fact that it is nonsense to have that, it will run the sub twice and also exit the function on 'return'

edit2:

no it won't... this works as expected

Code:

break on

test()

get $
exit 0

function test()
gosub test1
"still in function" ?
exit 1
:test1
"Inside sub" ?
return
endfunction



I can't think of a case were one would need this but still, it works


Edited by Jochen (2006-02-28 02:22 PM)
_________________________