On 1/23/15 7:04 AM, zeljkog wrote:
On 22.01.15 22:40, Andrei Alexandrescu wrote:
There's this classic patter on Unix: |sort|uniq, i.e. sort some data and
only display the unique elements.


Loosely-related, compiling

...
auto ret = arr.filter!(myFilter());
...

I got:

Error: closures are not yet supported in CTFE

Using struct with opCall directly also does not pass.

Did I miss something?
Is it near?

Must be you put that code at top level and the compiler tried to interpret it during compilation. -- Andrei

Reply via email to