Interfacing with C in 2.066.1

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 8 07:03:27 PST 2014


On 11/8/14 5:03 AM, Jason den Dulk wrote:

> My declarations (in a .di file) are wrapped in an extern(C) declaration.
> The code compiled fine in 2.065. In 2.066.1 it first complained about
> functions returning "const char *" ("function without this cannot be
> const").

BTW, the code as compiled in 2.065 was returning char *, not const char 
*. So the new compiler fixed a bug in your code :)

-Steve


More information about the Digitalmars-d mailing list