No, it doesn't. It just seems it does but as soon as a call like
`s.events.onload("some event"` is made it segfaults with `Illegal storage
access. (Attempt to read from nil?)`Please note that the approach of @Araq also fails because in the OP `wrapper.onload` was left nil which leads to the segfault. Adding something like `wrapper.onload = proc (name: string) = echo "wrapper loaded & name` (plus onfail()) solves the problem for both the ptr and the ref approach.
