Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hi David,
>Honestly in all the time I've been working with VFP I've never had to copy an object outside the scope of an academic exercise. What exactly are you wanting to accomplish with a copy of an object?
There is one area I'ld like to have a native clone-method or function: if I have to use standadized parameter objects. A simple "shallow copy" functionality like you described with amembers() should be enough there - the deep copy functionality (cloning of referenced objects) should not be needed.
But if you ever had the "pleasure" of having to write inside a framework having a "halfgod"-like parameter object (and yes, they had god objects as well <g>) as part of the interface you'ld probably feel the need as well.
regards
thomas
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