Exactly what I wanted. I've tried this before:
template POP: int =
result = stack[p]
dec p
Runand realized it won't work, then I went in the wrong direction (to put it in one line)... That solves my probem, many thanks to you all.
