Thank you, indeed very simple example. 

Ian, J interpreter have to read the last 4 elements [1] just before evaluation 
of [ 

a [ v 0     ( noun verb verb noun )

so that before the monad v is evaluated, the value of a has already been
read into stack. The side effect of v does not change the value of a which
is already inside the stack.

[1] ~help/dictionary/dicte.htm

Втр, 26 Окт 2010, Zsbán Ambrus писал(а):
> 2010/10/26 Ian Clark <[email protected]>:
> > Can you give a very simple example please, Bill, where [[ would make a
> > difference?
> 
>    a=: 5
>    2*a[3 :'a=: 10'0
> 10
>    a=: 5
>    2*a[[3 :'a=: 10'0
> 20
> 
> Ambrus
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to