closure iterators work

This commit is contained in:
Araq 2014-01-23 08:47:22 +01:00
commit d01ff8994b
4 changed files with 76 additions and 33 deletions

View file

@ -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