Re: [Vala] Closures in vala



On Mon, 2007-12-17 at 00:31 +0300, Denis Cheremisov wrote:
I have asked about them later, but didn't get any reply. I about if the
function returning delegate uses not its local variables but heap. In
this case delegates should have an addition first argument, pointing to
the structure in the heap. For example:

It would be nice to have closures in Vala, however we probably won't be
able to support it for arbitrary delegates as they usually don't have
the necessary support for memory management. We might be able to add
closures to Vala with some limits, I'm not planning on working on it
right now, though.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]