It doesn't have to be at run-time, I can add code to the GC too. So _d_newclass would be *almost* what I'm looking for, except that it doesn't work for memory allocated using GC.malloc()... so I'd have to hook in multiple places I guess. Thanks for the info.