#1965: rational.pmc's get_bool is backwards and not portable
----------------------+-----------------------------------------------------
 Reporter:  doughera  |       Owner:        
     Type:  bug       |      Status:  new   
 Priority:  normal    |   Milestone:        
Component:  none      |     Version:  2.11.0
 Severity:  medium    |    Keywords:        
     Lang:            |       Patch:  new   
 Platform:            |  
----------------------+-----------------------------------------------------

Comment(by plobsing):

 Replying to [ticket:1965 doughera]:
 > The basic question is this:  Why not compare with 0/1?  This is at least
 reasonably analagous to what the get_bool vtable does for integers, and
 avoids any corner cases with 0/0.

 A more fundamental question is: why do we want a get_bool() vtable on
 rationals? simply because we can?

 get_bool() on integer only makes sense because of the pervasive legacy of
 C and its idioms. Extending this to rationals doesn't make a lot of sense
 to me.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1965#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to