[Issue 7316] New: the result of a strongly pure function should	implicitly convert to and from shared
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan 18 17:13:56 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7316
           Summary: the result of a strongly pure function should
                    implicitly convert to and from shared
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-01-18 17:13:54 PST ---
The following code should compile:
int[] foo()pure{return new shared(int)[1];}
shared(int)[] bar()pure{return new int[2];}
void main(){
    shared a = foo();
    int[] b = bar();
}
-- 
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