[Issue 4643] New: Shared values are unwritable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 14 03:10:03 PDT 2010


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

           Summary: Shared values are unwritable
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: simen.kjaras at gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-08-14 03:09:59 PDT ---
shared int n;

void main( ) {
  writeln( n );
}

This program fails with:

E:\DMD\DMD2\windows\bin\..\..\src\phobos\std\format.d(306): Error: cannot
implic
itly convert expression (& arg) of type shared(int)* to const(void)*

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


More information about the Digitalmars-d-bugs mailing list