On 2024-05-24 15:56, Anton Ertl wrote:
melahi_ahmed@yahoo.fr (Ahmed) writes:
In Forth it is a bit messier because you
want a signature like
: d/dx ( xt -- xt ) .... ;
Most probably he meant ( xt1 -- xt2 )
Do you mean that ( xt -- xt ) is an incorrect stack diagram for this case?
I always thought that such use is correct. Because formally "xt"
(without an index) only denotes the data type, not a data value.
In a stack diagram, the same data type symbols with the same indices
usually denote the same data value. Otherwise, if data values are not >mentioned (like "0", "-1", etc), it is unknown from the stack diagram
where the values are the same. Since different symbols in the does not
mean different data values.
For example "abs ( n -- +n )" — in some
cases the data values "before" and "after" are the same.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 145:24:53 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,685 |