[Issue 3501] New: "is null" comparison should be disallowed for fixed-size arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 13 08:38:10 PST 2009


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

           Summary: "is null" comparison should be disallowed for
                    fixed-size arrays
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2009-11-13 08:38:09 PST ---
At least 'a is null' in the following example should not compile:

void main()
{
    int[3] a = null;
    a = null;
    if (a is null){}
}

-- 
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