Post #4498469
2026-08-10 13:46 UTC
The stack doesn’t quite work like that. They would get added like this:
This > buffer
great, is, one > stack
Then, each + pulls the latest off the stack and operates.
First + would pull ‘one’ as it’s the most recent on the stack.
This page does a good job of explaining: geeksforgeeks.org/…/introduction-to-stack-data-st…
Edit: you can also see this reflected in the Alt-text:
I NOTATION POLISH REVERSE ❤️
Replies (1)
-
@davidgro@lemmy.world 2026-08-10 16:28
Huh, it’s that buffer thing that I didn’t know about and isn’t mentioned in your link (maybe it’s Forth specific?), I use an RPN calculator app, but everything goes on the stack, so “This” would be on the bottom and be popped off last.