Howdy, Thanks, Patrick!
I have updated the branch: https://github.com/parrot/parrot/compare/ffa_sort Is anybody interested in writing some more tests? This is a great opportunity for somebody wanting to dip their feet into writing some PIR. Duke On Fri, Jan 25, 2013 at 5:47 PM, Patrick R. Michaud <pmich...@pobox.com>wrote: > On Fri, Jan 25, 2013 at 04:54:08PM -0800, Jonathan "Duke" Leto wrote: > > Howdy, > > > > I would appreciate a code review here: > > > > https://github.com/parrot/parrot/compare/ffa_sort > > > > One thing that I don't quite feel great about is using == on FLOATVALs. > > What is a better solution? Should I compare them to within some > tolerance? > > Why not... > > return (*i < *j) ? -1 : (*i > *j); > > This avoids the test for == altogether. > > Pm > -- Jonathan "Duke" Leto <jonat...@leto.net> Leto Labs LLC http://labs.leto.net 209.691.DUKE http://dukeleto.pl
_______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev