On Tue, 01 Sep 2009, Tracy Harms wrote:
> When I first worked with J what imagined was all wrong. The right way
> to think of it is that 3 : 0 denotes an anonymous verb built from text
> taken as a literal list that spans from "the next available line" to
> the subsequent lone right-paren.

Alternatively explained by the execution stack.
why a verb can be executed before reading its entire definition such
as in

3 : 0 'abc'
$y
)

is that the noun 'abc' is first pushed into stack, then the train
   3 : 0
is executed which read the following lines and return a verb as its
result of execution.  This verb then pull the value 'abc' out of
stack and do execution.  Similarly for adding rank to an explicit
definition, 

3 : 0 " 0
$y
)

the difference it that both " 0 are pushed into stack,

-- 
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