[Jprogramming] why=: 13 :'y*y*y'
Tracy Harms
kaleidic at gmail.com
Sun Mar 18 04:08:41 HKT 2012
It is certainly a benefit to have these reported.
On Mar 17, 2012 2:08 PM, "Devon McCormick" <devonmcc at gmail.com> wrote:
> It's not a good advertisement for J when something so simple is so
> clearly wrong. I would certainly rank fixing an obvious bug over,
> say, a performance improvement in a little-used feature like look-up
> of symbolic names.
>
> On Sat, Mar 17, 2012 at 1:26 PM, Tracy Harms <kaleidic at gmail.com> wrote:
> > To clarify, I do think 13&: could be improved. I think your examples can
> > help with that. I don't find flaws in this modifier very interesting
> among
> > possible improvement efforts.
> > On Mar 17, 2012 3:45 AM, "Linda Alvord" <lindaalvord at verizon.net> wrote:
> >
> >> David Ward Lambert pointed out the known pitfall that occurs using :
> 13 :
> >>
> >>
> >>
> >> Would these examples help in correcting the problem?
> >>
> >>
> >>
> >> why=: 13 :'y+y' NB. wrong
> >>
> >> why
> >>
> >> +
> >>
> >> why 3
> >>
> >> 3
> >>
> >> why=: 13 :'y-y' NB. right
> >>
> >> why
> >>
> >> -~
> >>
> >> why 3
> >>
> >> 0
> >>
> >> why=: 13 :'y*y' NB. wrong
> >>
> >> why
> >>
> >> *
> >>
> >> why 3
> >>
> >> 1
> >>
> >> why=: 13 :'y%y' NB. right
> >>
> >> why
> >>
> >> %~
> >>
> >> why 3
> >>
> >> 1
> >>
> >> why=: 13 :'y+y+y' NB. wrong
> >>
> >> why
> >>
> >> ] + +
> >>
> >> why 3
> >>
> >> 6
> >>
> >> why=: 13 :'y-y-y' NB. right
> >>
> >> why
> >>
> >> ] - -~
> >>
> >> why 3
> >>
> >> 3
> >>
> >> why=: 13 :'y*y*y' NB. wrong
> >>
> >> why
> >>
> >> ] * *
> >>
> >> why 3
> >>
> >> 3
> >>
> >> why=: 13 :'y%y%y' NB. right
> >>
> >> why
> >>
> >> ] % %~
> >>
> >> why 3
> >>
> >> 3
> >>
> >>
> >>
> >> Linda
> >>
> >>
> >>
> >>
> >>
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list