On Mon, Nov 7, 2016 at 11:53 PM, Xiao-Yong Jin <[email protected]> wrote:
>> On Nov 7, 2016, at 6:26 PM, Henry Rich <[email protected]> wrote:
>> Yes - verbs are different from nouns.  Verbs are passed by name, nouns by 
>> value.  I talk about that in the Wiki page I mentioned in the previous post.
>
> One thing not obvious from the wiki page is how adverbs and conjunctions 
> behave.
> I just tested it and it seemed that they behaved like verbs.  Is it correct 
> to say that
> nouns are lexical scoped and others are dynamical scoped?

No.

To distinguish between lexical and dynamic scope, you need nested
scopes. J does not allow nested scopes.

J allows you to emulate lexical and/or dynamic scoping with locales,
but that's something the programmer has to implement, and the
fundamental mechanics there have differences from both lexical and
dynamic scope.

-- 
Raul




-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to