digitalmars.D.learn - have function must pass delegate.
- Spacen Jasset (4/4) Nov 13 2014 A method call in the GTK API takes a delegate as an
- ketmar via Digitalmars-d-learn (4/8) Nov 13 2014 On Thu, 13 Nov 2014 14:02:22 +0000
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.
Nov 13 2014
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=20 argument(addOnActivate) I would like to be able to pass a=20 function instead (address of). What is the solution, at present I=20 have a wrapper class around the function.std.functional has `toDelegate`.
Nov 13 2014