Custom Blocks
Robert Jacques
sandford at jhu.edu
Tue Aug 10 12:58:47 PDT 2010
On Tue, 10 Aug 2010 15:19:25 -0400, Nick Sabalausky <a at a.a> wrote:
> "cemiller" <chris at dprogramming.com> wrote in message
> news:op.vg8kr7h9ycwdcp at mapddrule1.ffe.foxeg.com...
>> On Mon, 09 Aug 2010 20:21:25 -0700, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>>
>>> fun(a, b, c) { body }
>>>
>>> |
>>> V
>>>
>>> fun((a, b, c) { body });
>>>
>>
>> I think this way will be better:
>> fun(a, b, c) { body }
>> |
>> V
>> fun(a, b, c, { body });
>>
>
> I was thinking something like this:
>
> void fun(int x, int y, int z, delegate void(int, int, int) dg)
>
> fun(x, y, z, a, b, c) { body }
>
> |
> V
>
> fun(x, y, z, (a, b, c) { body });
Mixing function args with delegate args makes me think of foreach:
fun(x, y, z, (a, b, c) { body }); <=> fun(a, b, c; x, y, z) { body }
More information about the Digitalmars-d
mailing list