Author Topic: dumb question  (Read 4591 times)

Offline happyhamsterchan

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
dumb question
« on: May 07, 2010, 07:51:09 PM »
How do I pop numbers off the stack? There's no "pop" operation
I AM THE...

AWESOME...

FUN...

TURTLE!!!!!

Offline happyhamsterchan

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
dumb question
« Reply #1 on: May 07, 2010, 10:11:52 PM »
oh, nevermind, every function is a "pop" function, right? so doing

gtrkbg

add

gjtkrlgnjkl

is the same as

pop pop add push

amirite?
I AM THE...

AWESOME...

FUN...

TURTLE!!!!!

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
dumb question
« Reply #2 on: May 07, 2010, 10:12:01 PM »
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.

Offline happyhamsterchan

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
dumb question
« Reply #3 on: May 07, 2010, 10:13:33 PM »
oh! yah to totally simulate a pop you need to delete the top of the stack huh? kool! TY!
I AM THE...

AWESOME...

FUN...

TURTLE!!!!!

Offline Houshalter

  • Bot Destroyer
  • ***
  • Posts: 312
    • View Profile
dumb question
« Reply #4 on: May 07, 2010, 10:16:59 PM »
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.
Thats what I said.

Offline happyhamsterchan

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
dumb question
« Reply #5 on: May 08, 2010, 09:19:51 AM »
ya I know
I AM THE...

AWESOME...

FUN...

TURTLE!!!!!

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
dumb question
« Reply #6 on: May 08, 2010, 11:11:54 AM »
I think if EricL made it, it's called drop, just as he made the dropbool operator for the boolean stack.