Re: Garbage-collected structs vs garbage-collected classes

2011-01-22 Thread Jonathan M Davis
On Saturday 22 January 2011 17:27:18 Sean Eskapp wrote: > When I was using a class to wrap SDL functions and structs, I would have a > problem that Derelict would unload before the garbage-collector cleaned up > my classes, resulting in errors when these classes destructed and tried to > call SDL f

Garbage-collected structs vs garbage-collected classes

2011-01-22 Thread Sean Eskapp
When I was using a class to wrap SDL functions and structs, I would have a problem that Derelict would unload before the garbage-collector cleaned up my classes, resulting in errors when these classes destructed and tried to call SDL functions in the process. However, the exact same code using stru