[Issue 6685] Allow using "with" with rvalues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 14 08:01:40 PST 2012


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



--- Comment #4 from yebblies <yebblies at 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: -------


More information about the Digitalmars-d-bugs mailing list