There is no implied ] verb. The behavior is expected because copula is not a
verb and will not change value passed to it.
eg.
d=: 'a b c'=: 1 2 3
d and also result of the J sentence is 1 2 3
Sherlock, Ric wrote:
On this page http://www.jsoftware.com/help/dictionary/d310n.htm
it states that:
"The explicit result is the result of the last non-test block sentence executed"
And here http://www.jsoftware.com/help/dictionary/ctrl.htm
It states:
"The final result is the result of the last sentence executed that was not in a T
block, and if there is no such last executed sentence, the final result is i.0 0 ."
I think Tracy is asking for pointers to documentation that explains why, if the
last sentence of an explicit verb is an assignment (eg. b=: 99), that the
result of the verb is 99. This seems a bit strange because when that sentence
when executed in the session, no result is displayed. It is as though the last
sentence of an explicit verb is executed with an implied ']' (ie. ]b=: 99 )
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
Sent: Saturday, 3 May 2008 19:38
To: Programming forum
Subject: Re: [Jprogramming] Assignment concluding explicit
definition has implied Same
On Sat, May 3, 2008 at 2:28 AM, Tracy Harms
<[EMAIL PROTECTED]> wrote:
So, it makes sense to return the last value handled
since verbs must both receive and emit nouns. What I
can't find is where this implied (]) may be
documented. I looked in the Dictionary under H. Frets
and Scripts and in Vocabulary under Copula. Where
should I be looking?
I am not quite sure which aspect of result display in
the context of assignment you are asking about, but
the dictionary indicates this behavior by example in
various places, such as
http://www.jsoftware.com/help/dictionary/d001.htm
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm