[Wxruby-development] Fix for crash at exit

Artur Kuptel
Sat, 17 Mar 2007 23:45:27 -0000

Alex Fenton wrote:
> Thanks very much for the patch - waiting while it recompiles (50
> mins...yawn) then will commit
>
I miss the days when I could ask swig to remove at least it''s runtime
from the generated sources .
> The recommeded  in wxruby2 is just
>
> if not item.zero?
> # or
> if item > 0
>
> We switched to using a plain Integer typemap for TreeItemId in 0.0.39
> because it didn''t seem worth having directors et al for such a
simple
> class. Guess I missed this bit of the sample, thanks for spotting it.
>
Problem would be solved if we could define singleton methods for Fixnums :)

A.K.