0 Members and 3 Guests are viewing this topic.
Quote from: flyingfisch on September 25, 2011, 09:11:58 pmAshbad, good to see you again!QueQuote from: DJ_O on September 25, 2011, 09:12:06 pmThe problem is that some people do not have a computer at all (or any suitable access to one). JustCause comes to mind.But then he can't distribute it anyways, so no problem there.
Ashbad, good to see you again!
The problem is that some people do not have a computer at all (or any suitable access to one). JustCause comes to mind.
A->B:B->A
keep(B,A->B)->A
:Lbl FUN:keep(r1,keep(r2,FUN(r1,r2)->r3)->r2)->r1:Return r3
In other news, Frey continues kicking unprecedented levels of ass.
That seems like a pretty good way to safely implement stack usage. But could there also be commands for more experienced coders that simply equate to push hl, pop hl, and ex (sp),hl? Because your idea is great for casual coders, but crazy people like me like to be able to squeeze every last byte out of code. Something like you suggested here seems to be a good idea for syntax, and calc84maniac suggested a good syntax for ex (sp),hl here. Of course you would want to warn users about the dangers of these commands in the command list, but I don't think it's too dangerous to warrant not adding. There are so many other ways a programmer can crash their calculator with Axe, adding a new one won't really change much.