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



--- Comment #4 from yebblies <yebbl...@gmail.com> 2011-07-04 18:05:23 EST ---
(In reply to comment #3)
> > exp[... $ ... ] => exp[... exp.length ...] ?
> 
> I think it's because exp may have side effects, so it should only be evaluated
> once.

Ah, of course.
Can you see anything wrong with rewriting it as:
(auto __tmp = exp, __tmp[... __tmp.length ...])
I'll have to dig into it to be sure, but I think something like this would
solve a lot of the problems caused by __dollar.

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

Reply via email to