[Jprogramming] stack error in adverb
Raul Miller
rauldmiller at gmail.com
Wed Oct 12 04:29:45 HKT 2011
On Tue, Oct 11, 2011 at 4:14 PM, David Ward Lambert
<b49P23TIvg at stny.rr.com> wrote:
> Is this expected? Where documented? Thank you, Dave.
>
> g=: +
>
> a=:adverb define NB. bad
> g=.m at .0
> 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
More information about the Programming
mailing list