On Thu, Feb 27, 2014 at 12:56 PM, Walter Bright
<newshou...@digitalmars.com>wrote:

> On 2/27/2014 2:19 AM, Timothee Cour wrote:
>
>> * cascade operations: they perform a series of operations on the members
>> of a
>> single object:
>> foo.bar(1)..baz(3)
>> equivalent to:
>> foo.bar(1)
>> foo.baz(3)
>>
>
> D has ranges and algorithms to conveniently chain operations.


cascade != chaining:

cascade:
a.f1..f2..f3
<=>
a.f1
a.f2
a.f3

chaining:
a.f1.f2.f3
<=>
((a.f1).f2).f3)

Reply via email to