Skip to content

Commit

Permalink
[dc] Fix stack behaviour
Browse files Browse the repository at this point in the history
It's better to pop the value from the stack upon printing it. As dc does
not provide any command to achieve that together with printing a newline
after the value, we store the newline together with the value.
  • Loading branch information
ayekat committed Jan 5, 2015
1 parent 1c2611c commit 53e11a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion d/dc.dc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[Hello World]p
[Hello World
]n

0 comments on commit 53e11a8

Please sign in to comment.