Using import in map
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Sun Feb 1 02:53:13 PST 2015
On Saturday, 31 January 2015 at 21:09:44 UTC, Jacob Carlborg
wrote:
> On 2015-01-31 20:54, Stefan Koch wrote:
>
>> I think this is not supposed to work.
>> try staticMap maybe ?
>
> Yes, staticMap worked, thanks. I filed a bug [1]. If I recall
> correctly, if the compiler outputs a message which includes
> "__error" it's a bug.
>
> [1]
Is it? "__error" is simply a placeholder for type of expression
that can't be deduced because of compilation error.
Original snippet shouldn't compiler because landa argument is
run-time one but `import` must work at CT.
More information about the Digitalmars-d
mailing list