Welcome To Darwinbots > Newbie

dumb question

(1/2) > >>

happyhamsterchan:
How do I pop numbers off the stack? There's no "pop" operation

happyhamsterchan:
oh, nevermind, every function is a "pop" function, right? so doing

gtrkbg

add

gjtkrlgnjkl

is the same as

pop pop add push

amirite?

Numsgil:
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.

happyhamsterchan:
oh! yah to totally simulate a pop you need to delete the top of the stack huh? kool! TY!

Houshalter:

--- Quote from: Numsgil ---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.
--- End quote ---
Thats what I said.

Navigation

[0] Message Index

[#] Next page

Go to full version