I can reproduce the bug here and I will fix it for the next release. Thanks for finding and reporting this error.
----- Original Message ----- From: June Kim <[EMAIL PROTECTED]> Date: Monday, October 2, 2006 9:55 pm Subject: [Jgeneral] Bug in Tacit Generator 13 : (was Re: [Jprogramming] Tacit Generator use...) > Simpler case showing the bug: > > 13 : '(x - s) * y + s =. y' > [ (- * +) ] > 4 (13 : '(x - s) * y + s =. y') 3 > 7 > 4 (4 : '(x - s) * y + s =. y') 3 > 6 > > Tested on J601a on windows xp SP2. > > > 2006/10/2, June Kim <[EMAIL PROTECTED]>: > > 2006/10/2, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]>: > > > Hello, > > > > > > Came across an interesting snippet in JforC : > > > > > > m =: 4 : '(x * -.sv) + y * sv =. (#y) $ 1 0' NB. list > whose even > > > members come from x & odd members from y > > > 1 2 3 4 m 5 6 7 8 > > > 5 2 7 4 > > > > > > Thought I shall look into the tacit version of m using the > tacit generator. > > > So, > > > > > > mt =: 13 : '(x * -.sv) + y * sv =. (#y) $ 1 0' > > > 1 2 3 4 mt 5 6 7 8 > > > 1 2 3 4 > > > > It looks definitely like a bug in 13 :. The returned tacit > version has > > different semantics from m. > > > > > > > > > > >From my J session, in the linear form, > > > > > > mt <=> [ (([ * [: -. ]) + *) 1 0 $~ [: # ] > > > > > > Why is the output of mt different from m? > > > > > > Am I missing something here? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
