http://d.puremagic.com/issues/show_bug.cgi?id=9336

           Summary: Writeln is unable to print address of shared variable
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Maxim Fomin <[email protected]> 2013-01-17 08:42:37 PST 
---
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*)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to