Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to clone an object?
Message
De
03/06/2009 15:41:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01403461
Message ID:
01403503
Vues:
46
>>>What is the fastest way to clone an object? I believe there is no native VFP command that does it.
>>>
>>>TIA,
>>>
>>>Alex
>>
>>I think I saw the code published (Shallow copy). The question is - where was it, probably here or in wikis.
>
>Keep in mind that a shallow copy is not guaranteed to give a unique and separate instance. It's just a pointer to the same object. Sometimes that may be OK, other times disastrous.

Shallow copy would work for my purposes, but I am looking for fastest speed.

Thanks,

Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform