Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wishlist???
Message
 
To
06/09/1999 08:50:36
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00260725
Message ID:
00261744
Views:
41
>In my opinion this is a enhancement request. I definitely believe that the behaviour of the release method is a design err. Your example of the RELEASE command might indeed be a problem for *at least* existing code. Therefore backward compatibility should be provided.
>
>Are there other black holes we forgot ?

Walter,

The release command should only release the variable it is told to release. It should not NULL any other variables. It is a perfectly sound OO design to have multiple objects sharing another object. It is also valid to release the variables when you are through with them. If ObjA and ObjB are sharing an instance of ObjC and ObjB releases its variable you are saying that ObjA should also lose its reference to ObjC and that ObjC should be released from memory.

That, to me, would be a horrible side effect of releasing a variable.

As for the release method, I agree that the change to doing clean up of all references would be nice, but I don't want it if it will slow anything down.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform