[Jprogramming] Assignment concluding explicit definition has implied Same

Sherlock, Ric R.G.Sherlock at massey.ac.nz
Sat May 3 17:48:39 HKT 2008


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: programming-bounces at jsoftware.com
> [mailto:programming-bounces at jsoftware.com] 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
> <t_b_harms at yahoo.com> 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
>


More information about the Programming mailing list