On 07/07/2017 10:52 AM, Ali Çehreli wrote:
> a solution with the addition of the
> keyword 'delegate':
As ag0aep6g explained, the 'delegate' keyword was not necessary there. A
case where it's needed is when defining a variable. The following code
compiles if 'delegate' keyword is present:
voi
On 07/07/2017 07:33 PM, FoxyBrown wrote:
In gtk, we routinly have to use delegates for callbacks. But the methods
that accept these delegates want the address of the delegate,
I don't think that's true. As far as I can tell, this is the signature
of addOnDelete [1]:
gulong addOnDelete(b
On Friday, 7 July 2017 at 17:52:25 UTC, Ali Çehreli wrote:
On 07/07/2017 10:33 AM, FoxyBrown wrote:
> [...]
the methods
> [...]
I'm not a user but I don't think it's right. According to the
following, it takes a delegate:
[...]
Thanks, I guess one doesn't need to pass the address(I copied t
On 07/07/2017 10:33 AM, FoxyBrown wrote:
> In gtk, we routinly have to use delegates for callbacks. But the methods
> that accept these delegates want the address of the delegate,
I'm not a user but I don't think it's right. According to the following,
it takes a delegate:
https://github.com/
On Friday, 7 July 2017 at 17:33:33 UTC, FoxyBrown wrote:
In gtk, we routinly have to use delegates for callbacks. But
the methods that accept these delegates want the address of the
delegate, this prevents us from being able to pass a lambda in
directly, but there really is not reason why we sh