closure iterators work
This commit is contained in:
parent
3f87326247
commit
d01ff8994b
4 changed files with 76 additions and 33 deletions
|
|
@ -4,8 +4,8 @@ type
|
|||
TButtonClicked = proc(button: PButton) {.nimcall.}
|
||||
|
||||
proc newButton*(onClick: TButtonClicked) =
|
||||
nil
|
||||
|
||||
discard
|
||||
|
||||
proc main() =
|
||||
newButton(onClick = proc(b: PButton) =
|
||||
var requestomat = 12
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue