bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dc: Undocumented feature ?


From: Judicael Courant
Subject: dc: Undocumented feature ?
Date: Fri, 22 Sep 2000 12:50:57 +0200

Hi,

I am trying to use dc as a pedagogical tool in a compilation course (I
want my students to see how they would compile simple arithmetic
expressions to dc).

I noticed that "s" is understood as an instruction by dc (It does not
answer that 's' is unimplemented) but it is nowhere described in the
info documentation. Is this a bug of dc or of its documentation ?

BTW, what "s" does is very interesting: it discards the top of the stack
which is clearly an interesting feature for dc (no such feature seems to
be described in the doc).

pc87:~/> dc
1 # Lines marked with # are the input I typed
2 # 
3 # 
4 # 
f #
4
3
2
1
s # discards the top of the stack, undocumented
f #
3
2
1
t # this command is rejected, this is consistent with the doc
dc: 't' (0164) unimplemented

Truly yours,

Judicaël Courant.

PS : BTW, thanks a lot for all the software you provide!

-- 
address@hidden, http://www.lri.fr/~jcourant/
(+33) (0)1 69 15 64 85
"Montre moi des morceaux de ton monde, et je te montrerai le mien"
Tim, matricule #929, condamné à mort.
http://rozenn.picard.free.fr/tim.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]