Any plans to support .sort in CTFE?

Daniel Murphy yebblies at nospamgmail.com
Sun Jul 10 10:55:55 PDT 2011


"Trass3r" <un at known.com> wrote in message news:op.vyevsfd03ncmek at enigma...
> The builtin .sort property doesn't work so far: Error: _adSort cannot be 
> interpreted at compile time, because it has no available source code
>
> algorithm's sort does neither: dmd: interpret.c:2680: Expression* 
> BinExp::interpretAssignCommon(InterState*, CtfeGoal, Expression* 
> (*)(Type*, Expression*, Expression*), int): Assertion `(newval->op == 
> TOKarrayliteral || newval->op == TOKassocarrayliteral || newval->op == 
> TOKstring || newval->op == TOKslice || newval->op == TOKnull)' failed.
>
> Any plans to support sorting?

.sort will probably be going away.
std.algorithm.sort will likely work in ctfe by dmd 2.055 




More information about the Digitalmars-d mailing list