www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: samukha voliacable.com


--- Comment #0 from Max Samukha <samukha 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: -------
Nov 13 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3501


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |yebblies gmail.com
           Platform|Other                       |All
            Version|2.036                       |D1
            Summary|"is null" comparison should |(D1 only) "is null"
                   |be disallowed for           |comparison should be
                   |fixed-size arrays           |disallowed for fixed-size
                   |                            |arrays
         OS/Version|Windows                     |All


--- Comment #1 from yebblies <yebblies gmail.com> 2012-02-02 02:35:12 EST ---
Fixed in D2 (2.058)

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