Darwinbots Forum
Welcome To Darwinbots => Newbie => Topic started by: happyhamsterchan on May 07, 2010, 07:51:09 PM
-
How do I pop numbers off the stack? There's no "pop" operation
-
oh, nevermind, every function is a "pop" function, right? so doing
gtrkbg
add
gjtkrlgnjkl
is the same as
pop pop add push
amirite?
-
I thought Eric added one a while ago actually.
Anyway, if not, you can simulate one. Do something like:
0 mult add
To pop values from the integer stack.
-
oh! yah to totally simulate a pop you need to delete the top of the stack huh? kool! TY!
-
I thought Eric added one a while ago actually.
Anyway, if not, you can simulate one. Do something like:
0 mult add
To pop values from the integer stack.
Thats what I said.
-
ya I know
-
I think if EricL made it, it's called drop, just as he made the dropbool operator for the boolean stack.