further progress; more tests are green
This commit is contained in:
parent
27723af469
commit
49667798eb
5 changed files with 24 additions and 25 deletions
|
|
@ -8,7 +8,7 @@ type
|
|||
TEventHandler[T] = proc (e: var TEventArgs, data: T) {.closure.}
|
||||
TEvent*[T] = object
|
||||
#handlers: seq[TEventHandler[T]] # Does not work
|
||||
handlers: seq[proc (e: var TEventArgs, data: T) {.closure.}] # works
|
||||
handlers: seq[proc (e: var TEventArgs, d: T) {.closure.}] # works
|
||||
|
||||
TData = object
|
||||
x: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue