Run-time enhancements for object-oriented programming