Simply because of proper encapsulation, if you don't want to create an object, you shouldn't let factors outside of that object make the determination.
I'd think you'd want outside factors have an opportunity to do anything they want, even try to make the assignment, but have control within your object allow it or not. (Which is what I think you are saying.) Thus making the bug that I introduced a dangerous one. When you have a property that has an assign method and you don't assign the lparameter to the property it will cause memory to be corrupt and will eventually cause a C5 error.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement