Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Questions
Message
De
25/01/1999 13:27:49
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
24/01/1999 16:19:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00177951
Message ID:
00179915
Vues:
38
>>Take a look at the example in my other message in this thread, I think I got something.
>
>Yes, I think you may be correct that an object really is just a block of pointers, not a contiguous memory thingie. That makes a whole lot of sense, when you think about it, because then it can just point back to the class definition for default values, and just change the pointer when it needs to be a unique value. There internally is probably some sort of flag on each property to indicate default vs unique to this object. Then again, that may never be necessary as it could all be handled at instanciation of the objects. Who really cares what the pointer is pointing to, default values or my own?

I'd rather agree with others in this thread that there's also a flag somewhere, probably in value structure or somewhere, telling its overridden status - if it didn't have one, it'd be much more of a hassle to track the PemStatus(), and that's about the only function which cares :). Also, the ResetToDefault method probably clears or sets this flag. Without the flag, it would probably have to take care of where's the pointer pointing to, which would cost some performance.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform