Summary: inout does not work properly
--- Comment #0 from Steven Schveighoffer <schvei...@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: -------