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
Comment #2 by github-bugzilla — 2013-01-26T20:30:23Z
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.