GLBasic forum

Main forum => Bug Reports => Topic started by: FutureCow on 2009-May-24

Title: Function / endsub bug (doesnt break anything)
Post by: FutureCow on 2009-May-24
If you have a function that ends with "endsub" everything still works when you should use "endfunction" instead.
It doesn't break anything but I just noticed it so thought I'd point it out.
Title: Re: Function / endsub bug (doesnt break anything)
Post by: MrTAToad on 2009-May-24
Its probably not surprising really! Both functions and subroutines should be more or less the same...
Title: Re: Function / endsub bug (doesnt break anything)
Post by: Schranz0r on 2009-May-25
Endsub and Endfunction are both } ;)
@ MrTAToad:

Thats right :D
Title: Re: Function / endsub bug (doesnt break anything)
Post by: FutureCow on 2009-May-25
*laugh* I didn't actually go and look at the converted C code, that would've explained it!
Oh well, something for the precompiler if Gernot thinks it warrants the effort at some point.