you have reference x and y without u or m. There is a global setting (6! or 9! something) to turn this off I think. I don't see why you are using an adverb here.
on another note: bind 2 : 'x@(y"_)' is there any case where the definition 2 : 'u@(v"_)' would fail or produce a different result? ----- Original Message ----- From: Raul Miller <[email protected]> To: Programming forum <[email protected]> Cc: Sent: Wednesday, October 8, 2014 11:29 AM Subject: Re: [Jprogramming] what is happening here? Worse... I work around this... whatever it is.. by changing the definition: $ ijconsole appendbox=:1 : 0 y : pfx=. ,1 4{.y assert. pfx-:,_1 4{.y if. ' ' e. pfx do. '' return. end. prefix=. (2{.pfx),'/',pfx dir=: 'Reference/',prefix (;x,&.>LF) fileappend dir,'/data06.txt' ) 1 'a' appendbox 2 |value error: y | y 9!:14'' j701/2011-01-10/11:25 How can I be getting a value error on y? Why is the monadic definition being used in the dyadic case? How can I get anything done when things are this crazy? Can anyone else reproduce this? Thanks, -- Raul On Wed, Oct 8, 2014 at 11:22 AM, Raul Miller <[email protected]> wrote: > I paste a definition into my J session: > > appendbox=:1 :0 > : > pfx=. ,1 4{.y > assert. pfx-:,_1 4{.y > if. ' ' e. pfx do. '' return. end. > prefix=. (2{.pfx),'/',pfx > dir=: 'Reference/',prefix > (;x,&.>LF) fileappend dir,'/data06.txt' > ) > > And then I inspect the name > > appendbox > 1 : 0 > pfx=. ,1 4{.y > assert. pfx-:,_1 4{.y > if. ' ' e. pfx do. '' return. end. > prefix=. (2{.pfx),'/',pfx > dir=: 'Reference/',prefix > (;x,&.>LF) fileappend dir,'/data06.txt' > ) > > Somehow my adverb has mutated. > > What is going on here? > > Thanks, > > -- > Raul > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
