casting int[] to bool[]
Jarrett Billingsley
jarrett.billingsley at gmail.com
Thu Jan 29 16:12:04 PST 2009
On Thu, Jan 29, 2009 at 6:15 PM, Saaa <empty at needmail.com> wrote:
> That gives the same error.. only casting x to real works :/
That's more an issue with D's extremely (overly?) strict overload
resolution rules. Functions like sin() shouldn't be an issue, since
there is only one overload with those. But yes, as far as pow() is
concerned, I guess you do have to cast to real. Casting is fine here,
don't bother using to!().
More information about the Digitalmars-d-learn
mailing list