November 13, 2014 have function must pass delegate. | ||||
---|---|---|---|---|
| ||||
A method call in the GTK API takes a delegate as an argument(addOnActivate) I would like to be able to pass a function instead (address of). What is the solution, at present I have a wrapper class around the function. |
November 13, 2014 Re: have function must pass delegate. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Spacen Jasset Attachments: | On Thu, 13 Nov 2014 14:02:22 +0000 Spacen Jasset via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > A method call in the GTK API takes a delegate as an argument(addOnActivate) I would like to be able to pass a function instead (address of). What is the solution, at present I have a wrapper class around the function. std.functional has `toDelegate`. |
Copyright © 1999-2021 by the D Language Foundation