see this code mofuw
i trying make own async method approach
but, sometimes it works and seldom goes well ...
i found using spawn method passed pointer is nil.
i checked in this part mofuw#L108
i think my code is not the best approach, but i think that this will work, but it does not work.
these are the code of the approach I am thinking about now
anyone know what is wrong ? is there any other good way ?
proc getGlobalSelectorAddr*(): ptr Selector[Data] =
var sel = getGlobalSelector()
result = sel.addr
I doubt this can work. It's not only unsafe code, it's probably wrong code, you circumvent the type checker to break the "isolated heaps" rule. No wonder it crashes. ;-)
@Araq thx araq !
this code is garbage... so i removed it ;)
but thx !