Thread overview
[Issue 9336] New: Writeln is unable to print address of shared variable
Jan 17, 2013
Maxim Fomin
Jan 25, 2013
Andrej Mitrovic
January 17, 2013
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: nobody@puremagic.com
        ReportedBy: maxim@maxim-fomin.ru


--- Comment #0 from Maxim Fomin <maxim@maxim-fomin.ru> 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: -------
January 25, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9336


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich@gmail.com
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-25 10:53:02 PST ---
https://github.com/D-Programming-Language/phobos/pull/1098

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 27, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9336



--- Comment #2 from github-bugzilla@puremagic.com 2013-01-26 20:30:23 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/b22a90eb9ee6fe911fabac18c2489119b948e8e8 Fixes Issue 9336 - Format should work on shared address.

https://github.com/D-Programming-Language/phobos/commit/9e42f2ad7c17269bd805021a9e56733506bd3da3 Merge pull request #1098 from AndrejMitrovic/Fix9336

Issue 9336 - Format should work on shared address.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 27, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9336


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex@lycus.org
         Resolution|                            |FIXED


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