This is a DMD bug, and fixed in the pending pull request 91:
https://github.com/D-Programming-Language/dmd/pull/91
David
On 4/5/11 6:19 AM, Jose Armando Garcia wrote:
dmd can compile and run to follow the code:
unittest
{
spawn(&fun);
}
void fun(int i) { writeln(i); }
Which if you are
On Tue, 05 Apr 2011 01:19:08 -0300, Jose Armando Garcia wrote:
> dmd can compile and run to follow the code:
>
> unittest
> {
>spawn(&fun);
> }
>
> void fun(int i) { writeln(i); }
>
> Which if you are lucky segfaults and if you are unlucky prints garbage!
> The problem is that spawn doesn't
dmd can compile and run to follow the code:
unittest
{
spawn(&fun);
}
void fun(int i) { writeln(i); }
Which if you are lucky segfaults and if you are unlucky prints
garbage! The problem is that spawn doesn't checks that the signature
of fun matches the number and type of variadic arguments. I