[Issue 3748] inout does not work properly
https://issues.dlang.org/show_bug.cgi?id=3748 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.039 |D2 --
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #10 from Kenji Hara k.hara...@gmail.com 2011-12-12 03:05:17 PST --- *** Issue 6519 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #11 from Kenji Hara k.hara...@gmail.com 2011-12-12 03:07:07 PST --- https://github.com/D-Programming-Language/dmd/commit/39966f4f06a527ed67e6f1d6e948c9568a8745d0 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #7 from Steven Schveighoffer schvei...@yahoo.com 2011-10-05 06:31:35 PDT --- Created an attachment (id=1035) Corrected some errors that were previously hard to detect because inout didn't work uploaded a fixed version of testinout.d error8 and error11 still compile, so this isn't completely resolved, but inout is definitely is usable. I will open a new bug for that, as this is a single problem with inout (allowing inout variables anywhere, not just as auto variables of inout functions). Note that Kenji stated those holes were still present. But this is definitely a huge step forward. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #8 from Steven Schveighoffer schvei...@yahoo.com 2011-10-05 06:49:38 PDT --- See new bug 6770 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #9 from Kenji Hara k.hara...@gmail.com 2011-10-05 17:41:38 PDT --- For fixing error8 and error11. https://github.com/D-Programming-Language/dmd/pull/433 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #6 from Walter Bright bugzi...@digitalmars.com 2011-10-01 22:10:12 PDT --- https://github.com/D-Programming-Language/dmd/commit/07f719e5bd882b0e66e9759ed29319e2be93ef3c -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||tomash.brec...@gmail.com --- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-08-31 08:07:52 PDT --- *** Issue 4968 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-08-31 08:15:03 PDT --- https://github.com/D-Programming-Language/dmd/pull/359 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #4 from Kenji Hara k.hara...@gmail.com 2011-08-31 10:40:24 PDT --- My patch doesn't forbid to declare inout variable outside inout function. It is treated same as const variable, even with my patch. I think it is debatable thing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 --- Comment #5 from Steven Schveighoffer schvei...@yahoo.com 2011-08-31 12:11:15 PDT --- it is not debateable. The issue is, when inside an inout-enabled function, all inout variables are *assignable* from other inout variables. So for example, if you have: inout(int) * globalvar; inout(int)* foo(inout(int)* x) { return globalvar; } void main() { int x; auto y = foo(x); } what type is y? inout(T) is changed to just T in this scenario, since the constancy factor is mutable, so essentially, you now have a mutable pointer to what is treated as const as you say. The type system *must* prevent non-local variables (i.e. variables not on the stack) from being inout. Otherwise, you cannot make guarantees about inout. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3748] inout does not work properly
http://d.puremagic.com/issues/show_bug.cgi?id=3748 kenn...@gmail.com changed: What|Removed |Added Attachment #558 is|0 |1 obsolete|| --- Comment #1 from kenn...@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: ---