Nick Rout <[EMAIL PROTECTED]> writes:
> while we are at it, what exactly is "ord"??
It's short for "ordinal number":
ordinal number
n : the number designating place in an ordered sequence [syn: {ordinal},
{no.}]
Since you're reminiscing about Forth, here's the latest language I'm
playing with, although it's really quite old:
dumpNext: aStream
"Print the next character on aStream to the Transcript as decimal and hex."
| z |
z := aStream next asInteger.
Transcript print: z; space.
z printOn: Transcript base: 16.
Transcript cr; flush.
Given the right data on the stream, this outputs
134 86
which I guess is a bit longer than the Forth version, or the Python.
--
"Hanging is too good for a man who makes puns; he should be drawn and quoted."
-- Fred Allen