Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wiping out (data)Session object
Message
From
27/05/2008 22:10:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/05/2008 09:22:29
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319497
Message ID:
01319873
Views:
17
>>>
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform