# The following was supposedly scribed by # Sisyphus # on Monday 27 June 2005 10:09 pm:
>Just idly browsing through the code and I noticed: > >SV* new (char* class) { > gpc_polygon* p = malloc(sizeof(gpc_polygon)); > >whereas I would expect something like: > >SV* new (char* class) { > gpc_polygon* p; >New(42, p, 1, gpc_polygon); > >Any particular reason for the former, as opposed to the latter ? The code that I cribbed off of had malloc's in it and I've never had any trouble with it :-) That's what I meant about using OO. I won't ever access that outside of the Inline'd methods, so I don't have an object count issue, etc. I'm sure there's something nasty lurking in there if I were to compile it on a less forgiving OS. --Eric -- I eat your socks and you pay me. --The business sense of a very small goat. --------------------------------------------- http://scratchcomputing.com ---------------------------------------------