gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSDecimalNumber numberWithDouble:x]


From: Adam Fedor
Subject: Re: [NSDecimalNumber numberWithDouble:x]
Date: 10 Jan 2004 21:00:44 -0700

On Sat, 2004-01-10 at 07:12, Manuel Guesdon wrote:
> Hi,
> 
> [NSDecimalNumber numberWithDouble:x] retunrs a NSDoubleNumber, not a 
> NSDecimalNumber.
> Is it correct ? 
> If yes what is the interest of NSDecimalNumber -initWithDouble: ?
> Won't it be better to have a NSDecimalNumber -numberWithDouble: ?
> 
> And same with for all numberWithXX: ?
> 

Yes, NSDecimalNumber probably needs to override all the number methods
(unless we wanted to put a special check in NSNumber for allocation from
subclasses).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]