Moderators: They make you lose count(Longest thread still alive!)

  • FTB will be shutting down this forum by the end of July. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
569 postscript
I haven't tested it, but the current value the loop is in gets added to the stack and show reads the first value in the stack. (I think)
thus first 5 got added to the stack, show reads it (might remove it from the stack) and prints it. loop begins again, 6 gets added to the stack...(again, haven't tested it and I have never done anything with it so....yea...)
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
571 neither am I, I just pick random stuff from the Internet
remember the stuff I did with
5 10 mull 10 add
that is also postscript
it first adds 5 to the stack and then 10.
It then removes both from the stack and multiplies it and puts the answer back on the stack.
it then adds 10 to the stack
it then removes 50 and 10 from the stack and adds them together, the answer goes back on the stack.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
573
that is the reason why in other languages you would write it as
(5*10)+10
:p
(except that in postscript it is also directly use able while in other languages you first need to put it in a variable and then read the variable if you need it)
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
575
I just saw this thing on the hurd site:
In short: just say NO TO DRUGS and maybe
you won't end up like the Hurd people.

-- Linus Torvalds
:p