On Thu, Nov 20, 2008 at 3:50 PM, Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> This could be used with objects: a flag that designates
> that this locale is a result of "create object". Two uses:
>  * a particular value is known to be an object, not just
>   a boxed string
>  * when the last reference is released, a custom destructor
>   is called automatically, by default release_locnum_''
>   if exists
>
> This would allow to call destructors automatically when an
> object goes out of scope. It also provides the object identity
> that needs to be passed around, and automatically maintains
> references.

The references would also have to be flagged.

This could get complicated.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to