Issue 1323

Tomek Sowiński just at ask.me
Sun Jan 9 05:56:56 PST 2011


Daniel Gibson napisał:

> "restricted to n log(n)"? I think you meant just "log(n)"
> 
> As far as I remember the last discussion, it was considered to allow it for 
> arrays of a constant size or with known (at compiletime) contents or something 
> like that.
> But then again, that would feel kind of inconsistent (syntax is allowed for 
> fixed size arrays but not for dynamic arrays).

If it's about compile-time, it can be done with template wizardry:

x in [1, 5, 7]  ->  x.in_!(1, 5, 7)

-- 
Tomek



More information about the Digitalmars-d mailing list