On Tue, Oct 11, 2011 at 4:14 PM, David Ward Lambert
<[email protected]> wrote:
> Is this expected?  Where documented?  Thank you, Dave.
>
> g=: +
>
>   a=:adverb define   NB. bad
> [email protected]
> g y
> )
...
>   (<'g')a 3j9    NB. name confliction?
> |stack error: g
> |       g y

  Here, m is <'g'

So you are defining g as
   g=. (<'g')@.0

So let's try that:
   g=. (<'g')@.0
   g
g

so, g is a function that calls g.

So, yeah, that gives you a stack error when you try to use it.

Maybe you wanted something like this?
   g=: +
   g=. (<'g')@.0 f.
   g
+

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

Reply via email to