Eric Peden schrieb: > First post. Hi. :) Welcome! > (...code snipped...) > When I run this, I get a "undefined constant" error from the C code, > which makes sense: when the C library is included, Sphere hasn't been > defined yet. I've never extended Ruby with C yet, but couldn't you create the optimized classes in C and later add some Ruby methods to them? Regards, Pit