[Issue 12627] extern(C++) interfaces should format
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 24 11:03:47 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12627
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Thanks.
An updated unit test:
version(unittest)
{
extern(C++) interface X
{
}
extern(C++) class C : X
{
}
}
unittest
{
X x = new C;
string expected = format("%X", cast(void *)x);
formatTest(x, expected); // fails, x is printed as 'null'
}
@yebblies While fiddling around, I found an issue with extern(C++) classes (not
related to this). See issue #12636
--
More information about the Digitalmars-d-bugs
mailing list