Handling CheckBox state changes in DLangUI
torhu
torhu at yahoo.com
Mon Jan 2 20:50:18 UTC 2023
On Saturday, 31 December 2022 at 02:40:49 UTC, Daren Scot Wilson
wrote:
>
> The compiler errors I get are, for no '&' and with '&':
>
> Error: function `app.checkbox_b_clicked(Widget source, bool
> checked)` is not callable using argument types `()`
>
> Error: none of the overloads of `opAssign` are callable using
> argument types `(bool function(Widget source, bool checked))`
If checkbox_b_clicked is a non-static nested function or
non-static method, taking the address of it should result in a
delegate, not a function pointer.
You can check what it is like this:
writeln(typeid(&checkbox_b_clicked));
More information about the Digitalmars-d-learn
mailing list