[Issue 3748] New: inout does not work properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 28 05:06:45 PST 2010


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

           Summary: inout does not work properly
           Product: D
           Version: 2.039
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: schveiguy at yahoo.com


--- Comment #0 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-01-28 05:06:44 PST ---
Created an attachment (id=558)
file to test whether inout is properly implemented

inout as defined by DIP2 is not implemented properly on dmd 2.039.  Attached is
a testing program that should be used to determine if inout is properly
implemented.  I tried to include every subtle detail that I could on inout, but
I'm not sure that I got them all.  If the compiler passes this test, inout
should be ready for most uses.

Since half of the definition of inout is what *doesn't* compile, I have
included multiple errors in the file.  Because of the nature of compiler
errors, each error can be individually enabled or disabled using version
statements, a la error1, error2, etc.

When no error statements are enabled, the program should compile correctly. 
There is no need to run the program, since all asserts are static.

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