--- In [email protected], "brucexs" <bruc...@...> wrote:

> There is nothing wrong with keeping release if you like.  But it can lead to 
> dangling references.
> 
> obj1  = com.create
> //...
> obj2 = obj1
> //...
> obj1.release
> 
> Now obj2 is meaningless.  But if scripters are willing to live with that, 
> then fine.  No need for special syntax for release.

Same problem can arise other ways, most obviously

> g_obj1  = com.create
> //...
> global g_obj2 = obj1

> //somewhere else
> com.unload

Pouf, g_obj2 is a dead dodo, and next time someone tries to use it, it's an 
error.

Which of course applied to any plugin that generates handles.  Probably should 
add a health warning to docs for all that do about that.



Reply via email to