0 raisedTo: 0 homogeneity
By Nicolas Cellier - Posted on June 7th, 2009
Tagged:
| Project: | GNU Smalltalk |
| Component: | Base classes |
| Category: | bug |
| Priority: | normal |
| Assigned: | bonzinip |
| Status: | fixed |
Description
0 raisedTo: 0. -> 1
0.0e0 raisedTo: 0. -> Exception
0.0d0 raisedTo: 0. -> Exception
0.0q0 raisedTo: 0. -> 1.0
We can eventually admit a difference between exact and inexact (though i think inexact should rather answer 1, and exact raise an Exception).
But, inexact representations should better agree on a common behavior.
Updates
#1 submitted by Paolo Bonzini on Mon, 06/08/2009 - 08:25
| Assigned to: | Unassigned | » bonzinip |
Agreed 100%.
Actually I have to dig up why FloatQ implements #raisedTo: rather than using the superclass. Seems wrong.
#2 submitted by Paolo Bonzini on Mon, 11/02/2009 - 18:43
| Status: | active | » fixed |
fixed
