digitalmars.D.bugs - Module level attributes
- Vathix (20/20) Jul 12 2004 From attribute.html:
 
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








 
 
 
 "Vathix" <vathixSpamFix dprogramming.com>