[Issue 5749] argument evaluation order of chained function from right

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 18 14:02:42 PDT 2011


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



--- Comment #4 from Fawzi Mohamed <fawzi at gmx.ch> 2011-03-18 13:59:28 PDT ---
clearly about this I agree with Steven, the "correct" (or expected if you
prefer) evaluation should be to evaluate the arguments as late as possible.

a(b)(c); is the same as (a(b))(c) I would expect c not to be evaluated before
a(b) is fully evaluated (both b *and* a(b)), otherwise whisper style is broken,
and is counterintuitive.

-- 
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