Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wiping out (data)Session object
Message
De
27/05/2008 22:10:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
27/05/2008 09:22:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01319497
Message ID:
01319873
Vues:
19
>>>
>>>define class MySession as Session
>>>
>>>function Release()
>>>  release m.this
>>>endfunc
>>>enddefine
>>>
>>
>>
>>I would not have thought to use m.this. What is that exactly? Obviously it's a memvar pointing to the object, I just didn't know one was created automatically.
>
>___
>This is always there whenever an object is created
>
>It just happens to work - do not ask me why

I think it was Fabio who first prefixed this and thisform with a m-dot. First I thought he's just trying his usual impossible - improbable - imwhatever, but then seeing that it works, it started making sense. All these shortcuts (this, thisform, thisformset) are just local variables created as automatic references to certain objects, which obviously is no problem for the parser today - as it wasn't one in 1995.

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