Hi Henry, Thanks for the sample. I actually tried that very same code yesterday minus the parens and I kept getting an error. I did not even once think of putting the parens around it.
One of the advantage of using the "primitives" library is I don't have to comb through my code looking for usage of NUB (~.) ... all I have to do is redefine my definition of Unique=: ~. to Unique=: ~.!.0 Thanks. r/Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Henry Rich Sent: Tuesday, April 29, 2008 9:23 PM To: 'General forum' Subject: RE: [Jgeneral] NUB Problem Most everything that uses comparison can be made intolerant by adding !.0 . ~ 20080516 20080516 20080516.00000057 2.00805e7 (~.!.0) 20080516 20080516 20080516.00000057 2.00805e7 2.00805e7 Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alex Rufon > Sent: Tuesday, April 29, 2008 4:08 AM > To: General forum > Subject: [Jgeneral] NUB Problem > Importance: High > > Hello. > > > > I've encountered a problem with ~. > > > > Normally, if I do this it works: > > ~. 1 1.00000057 1 > > 1 1.00000057 > > > > Then, this morning, a bug was reported in our Cebu factory > for a length > error. It took me a while then I realize that the problem was this: > > ~. 20080516 20080516 20080516.00000057 > > 20080516 > > > > The code actually calculates how the daily WIP or how many items are > going to be produced by a certain factory line given a start and end > date-time. Hence the code is failing because it expects two values and > is only getting one. > > > > Since this is critical for me, I had to replace that very simple code > with this: > > ".&>~.":&.><&> 20080516 20080516 20080516.00000057 > > 20080516 20080516.00000057 > > > > Is this a bug? I've read the documentation and it says that the > comparison is tolerant. Is there an intolerant comparison > much like the > intolerant index of (i.!.0)? > > > > Thanks for any help. > > > > r/Alex > > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
