Function / endsub bug (doesnt break anything)

Previous topic - Next topic

FutureCow

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.

MrTAToad

Its probably not surprising really! Both functions and subroutines should be more or less the same...

Schranz0r

Endsub and Endfunction are both } ;)
@ MrTAToad:

Thats right :D
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

FutureCow

*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.