April 21, 2010[phobos] std.complex: ready for Phobos?
Posted in reply to Philippe Sigaud
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.
Copyright © 1999-2021 by the D Language Foundation