Bug 9336 – Writeln is unable to print address of shared variable
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-17T08:42:00Z
Last change time
2013-01-26T20:30:38Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
maxim
Comments
Comment #0 by maxim — 2013-01-17T08:42:37Z
import std.stdio : writeln;
shared int i;
void main()
{
writeln(&i);
}
The root error message is
\std\format.d(2761): Error: cannot implicitly convert expression (val) of type shared(int)* to const(void*)
Comment #1 by andrej.mitrovich — 2013-01-25T10:53:02Z