[Jprogramming] indirect assignment
Roger Hui
RHui000 at shaw.ca
Sun Jan 22 19:30:53 HKT 2006
The behaviour is not documented but you can probably depend on it.
It is not document but it is not unreasonable. (<'a')=. <'cat' and
('a')=. <'cat' should give the same result since the names can
be specified as a character list or a boxed list.
----- Original Message -----
From: "bill lam" <bill_lam at myrealbox.com>
To: <programming at jsoftware.com>
Sent: Friday, January 20, 2006 12:59 AM
Subject: [Jprogramming] indirect assignment
('a';'b')=. 'cat';'dog'
a
cat
NB. as expected
('a')=. <'cat'
a
+---+
|cat|
+---+
NB. reasonable
(<'a')=. <'cat'
a
+---+
|cat|
+---+
NB. seems unreasonable, often trapped by it.
(,<'a')=. <'cat'
a
cat
NB. this is what I want.
Is the last case documented? Can I rely on it?
More information about the Programming
mailing list