editor: moving to Dijit Support
This question is a generic one, but my example is specific for dijit. I would like dijit.Dialog to be derived from dojox.layout.ContentPane instead of dijit.layout.ContentPane. Is there a better way to do this then creating my own namespaces.Dialog copying the code from dijit.Dialog and changing the inheritance?

not at the moment. the only
not at the moment. the only way i can think of offhand would be to copy dijit.Dialog and muck with the inheritance chain directly.
the other option we've been exploring is to make dijit.layout._ContentPane a mixin and make a simple dijit.layout.ContentPane that just mixes _Widget and the CP mixin. You'd be able to do something like:
dojo.declare('my.Dialog',[dijit.Dialog,dojox.layout.ContentPaneMixin],{ });
and dijit.Dialog would look something like: dojo.declare('dijit.Dialog',[dijit._widget,dijit._template,dijit.layout._contentpanemixin], { ... });