www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Module level attributes

From attribute.html:

attribute:                  affects all declarations until the next }
    declaration;
    declaration;


Not working here:

int main()
{
   void function() mybar = &bar;
   return 0;
}

private
{
   extern(C):
   void foo();
}

void bar()
{
}


DMD 0.95 error: cannot implicitly convert void(C *)() to void(*)()
The extern(C) is extending past the private block.
Jul 12 2004