casting int[] to bool[]
Jarrett Billingsley
jarrett.billingsley at gmail.com
Thu Jan 29 11:40:57 PST 2009
On Thu, Jan 29, 2009 at 2:35 PM, Saaa <empty at needmail.com> wrote:
> Most of the std.math functions take reals and when I have a float or a
> double I always cast them to real to make it fit.
> Should I instead use to! here as well?
You don't have to cast anything actually. floats and doubles are
implicitly convertible to real. This isn't Pascal.
More information about the Digitalmars-d-learn
mailing list