On Wed, Sep 2, 2009 at 4:53 PM, Nick Sabalausky<[email protected]> wrote:
>> void foo(bool delegate() dg) {
>>    dg();
>> }
>> foo({return true;});
>>
>
> Sure, when there's no parameters (...does that work in D1, or just D2?...),
> but even then, I still always end up going though a process like this when
> defining foo:

No, you can do it with params too.

foo((int x) { return x; });

Reply via email to