Henry wrote:
> So Dan is saying that adverbs are put on the stack by name,
> where the Dictionary says they are put on by value.
Yes (also applies to conjunctions). I thought that was clear from my original
post, but apparently it wasn't! Sorry about that.
Right now, Raul and I are discussing whether "the Dictionary says they are put
on by value". My gut reaction is that a proverb
must stand for a verb, but he proposes that a proverb can also be an adverb or
conjunction. I'm going see to see if the text of
the Dictionary unambiguously requires the restriction to verbs. [1]
BTW, there is at least one place this rule is unambiguously violated. You
discovered it, in fact:
http://www.jsoftware.com/pipermail/beta/2006-April/000840.html
Here, verbs are being stacked by value, rather than by name. This makes the
implementation simpler and more useful. So I
wouldn't be surprised if the "resolve-when-executed" behavior exists for
similar reasons.
-Dan
[1] I'm pretty sure the DoJ uses "proverb" elsewhere in a sense incompatible
with Raul's proposal. In fact, recently Viktor took
a relevant quote from the Voc entry for f. (fix):
http://www.jsoftware.com/help/dictionary/dfdot.htm
If x is the name of any entity (that is, a pronoun,
proverb, pro-adverb, or pro-conjunction)
This quote strengthens my argument, because it specifically names "pro-adverb"
and "pro-conjunction" despite the fact that it'd
already mentioned "proverb" (and "pronoun").
Further, Roger once specifically refused to remove "pro-adverb" and
"pro-conjunction" from the definition of f. :
http://www.jsoftware.com/pipermail/general/2006-October/027988.html (Boyko
Bantchev suggests removing the words)
http://www.jsoftware.com/pipermail/general/2006-October/028016.html (Roger
dissents)
PS: Search for "proverb" in each of the following:
http://www.jsoftware.com/help/dictionary/dict2.htm
http://www.jsoftware.com/help/dictionary/samp03.htm
http://www.jsoftware.com/help/release/status.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm