So I'm making Nossrec and what have you, and I come across this weird glitch.
SETUP: Use PRGINS to write code similar to the following:
COMMON DEF FUNC FUNC2 'make sure this one requires parameters END 'in a different slot FUNC 'pass FUNC2's required argumentsSomehow, the arguments are forced into FUNC and are passed to FUNC2, yielding the desired result! I am currently exploiting this glitch, so I hope SmileBoom doesn't patch it XD. This glitch also works if FUNC2 has a return value. The setup is no different, but somehow, if FUNC2 has a return, FUNC will automatically return that value. Here is an example. First, download Nossrec because I'm not 100% sure on the setup. Read how to write programs in Nossrec. Second, load PRG1:TEST. That program is as follows:
class AddOne def public int addit(int a) return a+1 end end class static class entry def public void main object t <- AddOne t=t.addit(val(readline())) writeline str(t) end end staticThird, look at how t_addit is called in Slot 2, and then look at how it's defined in Slot 3. This is what you see.
[Slot 2] t_addit(VAL_(READLINE$())) [Slot 3] COMMON DEF t_addit AddOne_addit ENDNote that AddOne requires one parameter and has a return value.