On Tuesday, 23 September 2014 at 02:07:09 UTC, AsmMan wrote:
I have this array:
static immutable string[] months = [jan, fev, ...];
I need to pass it into canFind(). But it doesn't works with
immutables so I need to cast it like in canFind(cast(string[])
months, month) to work. There's a
On 9/22/14 10:07 PM, AsmMan wrote:
I have this array:
static immutable string[] months = [jan, fev, ...];
I need to pass it into canFind(). But it doesn't works with immutables
so I need to cast it like in canFind(cast(string[]) months, month) to
work. There's a reason related to design why it
On Tuesday, 23 September 2014 at 03:34:22 UTC, Ali Çehreli wrote:
If it still doesn't work for you please show us a minimal
program that demonstrates the problem.
Ali
Ok, the case is the follow, I updated my dmd compiler some days
ago (after my mono crashed and I lost some of D files, I
I have this array:
static immutable string[] months = [jan, fev, ...];
I need to pass it into canFind(). But it doesn't works with
immutables so I need to cast it like in canFind(cast(string[])
months, month) to work. There's a reason related to design why it
doesn't work with immutables or
On 09/22/2014 07:07 PM, AsmMan wrote:
I have this array:
static immutable string[] months = [jan, fev, ...];
I need to pass it into canFind(). But it doesn't works with immutables
so I need to cast it like in canFind(cast(string[]) months, month) to
work. There's a reason related to design why