[phobos] std.complex: ready for Phobos?

Don Clugston dclugston at googlemail.com
Wed Apr 21 11:18:57 PDT 2010


On 21 April 2010 19:05, Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
>
>
> On Tue, Apr 20, 2010 at 22:57, Lars Tandle Kyllingstad <lars at kyllingen.net>
> wrote:
>>
>> Ok, it seems I understood you too literally.  I think we mostly agree
>> then.  Ideally, the constraint on Complex!T should act as a compile-time
>> interface that checks whether T *behaves* like a floating-point type.
>> However, in this case I personally think Complex!T should work equally well
>> for all T or not at all, and for the time being that means using
>> isFloatingPoint.
>
> And what defines a FP-like behavior, as opposed to merely numeric / defining
> mathematical operators?
>
> Having 0, 1, and something between 0 and 1?

For now, it just means float, double, real. At present they're the
only ones which work. The criterion will be loosened once we have
others.


More information about the phobos mailing list