Old problem with performance
Kagamin
spam at here.lot
Tue Feb 24 00:54:34 PST 2009
Weed Wrote:
> >> But why not allow this operation at the same speed that allows C++?
> >
> > If you pass it by value you'll lose polymorphism.
>
> It is possible that this polymorphism is not needed and should be
> prohibited for operations by value. The class is ready, why it should
> not be used and have to redo it?
>
> Can not think about changing when the class is ready - he could have
> enormous complexity and hierarchy.
It's probably already designed to be reference-type. I think, you'll have big troubles trying to change its semantic to value-type and effectively you'll have to redo it.
More information about the Digitalmars-d
mailing list