[Issue 2497] New: delete and null relationship needs more details

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 6 12:04:56 PST 2008


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

           Summary: delete and null relationship needs more details
           Product: D
           Version: 2.021
          Platform: PC
               URL: http://www.digitalmars.com/d/2.0/expression.html#DeleteE
                    xpression
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jlquinn at optonline.net


1) 

A a = null;
delete a;

is this OK or not?

2) 

void do(A b) { delete b; }
A a = new A;
do(a);
if (a is null) { writefln("yes"); }

does a get reset to null or not?


-- 



More information about the Digitalmars-d-bugs mailing list