www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3748] New: inout does not work properly

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


--- Comment #0 from Steven Schveighoffer <schveiguy 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: -------
Jan 28 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3748


kennytm gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #558 is|0                           |1
           obsolete|                            |


--- Comment #1 from kennytm gmail.com 2011-04-26 11:20:36 PDT ---
Created an attachment (id=950)
Fixed some minor syntax error.

Fixed the position of ';' on line 22.
Added back the missing is() on lines 48 and 50.

(Just a note: as of commit 48950d4ce371316184e2 (2.052) DMD still cannot
compile this file successfully.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 26 2011