Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
September 17, 2011 [Issue 6685] New: Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6685 Summary: Allow using "with" with rvalues Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: thecybershadow@gmail.com --- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-09-17 11:13:19 PDT --- The most common use of WithStatements in my D1 codebase was: with (someFunction(...)) ... D2 disallows this - for some reason it demands that the expression be an lvalue. I don't see this in the spec, either. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 20, 2011 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2011-09-20 11:02:33 EST --- *** Issue 6694 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: ------- |
February 14, 2012 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid CC| |yebblies@gmail.com AssignedTo|nobody@puremagic.com |yebblies@gmail.com Severity|enhancement |normal --- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-15 01:47:55 EST --- https://github.com/D-Programming-Language/dmd/pull/716 This is arguably a bug, I can't find anywhere in the spec that says 'with' only works with lvalues or it must be implemented by taking the address of structs, just that exp must only be evaluated once. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 14, 2012 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 Michal Minich <michal.minich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michal.minich@gmail.com --- Comment #3 from Michal Minich <michal.minich@gmail.com> 2012-02-14 07:13:05 PST --- (In reply to comment #2) > https://github.com/D-Programming-Language/dmd/pull/716 > > This is arguably a bug, I can't find anywhere in the spec that says 'with' only works with lvalues or it must be implemented by taking the address of structs, just that exp must only be evaluated once. This might be related http://d.puremagic.com/issues/show_bug.cgi?id=4350 Does the pull request affect this case? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 14, 2012 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 --- Comment #4 from yebblies <yebblies@gmail.com> 2012-02-15 03:01:39 EST --- (In reply to comment #3) > (In reply to comment #2) > > https://github.com/D-Programming-Language/dmd/pull/716 > > > > This is arguably a bug, I can't find anywhere in the spec that says 'with' only works with lvalues or it must be implemented by taking the address of structs, just that exp must only be evaluated once. > > This might be related http://d.puremagic.com/issues/show_bug.cgi?id=4350 Does the pull request affect this case? Unlikely, that looks like an unrelated lookup problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 19, 2012 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 --- Comment #5 from github-bugzilla@puremagic.com 2012-02-18 21:32:49 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bf611abd06b22e3b1fceb7967c825d13ffbc5258 Merge pull request #716 from yebblies/issue6685 Issue 6685 - Allow using "with" with rvalues -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 19, 2012 [Issue 6685] Allow using "with" with rvalues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=6685 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation