[Scilab-Dev] Scilab need a way to track variable deletion.

Jonathan Blanchard BlanchardJ at ieee.org
Fri Jan 23 14:38:11 CET 2009


Thanks for your reply,

I was indeed talking about the new kernel, as a replacement I'm
currently using some sort of crude garbage collection.

Jonathan Blanchard



On Fri, Jan 23, 2009 at 6:08 AM, Antoine ELIAS <antoine.elias at scilab.org> wrote:
> Hi Jonathan,
>
> My understanding :
>
> a = your_custom_function_returns_pointer_to_scilab();
> //this function allocates custom data and returns a pointer
> typeof(a)
> ans  =
>
> pointer
>
> //...
> //do something
> //...
> a = 1;
>
> At this moment you want to be inform of data removal for delete your data ?
>
> I don't see any way to "overload" data removal mechanism in Scilab 5.x.
> For the new kernel, we can keep in mind this feature to provide mechanism to
> delete "external data".
>
> Regards,
> ELIAS Antoine
> antoine.elias at scilab.org
>
> Jonathan Blanchard a écrit :
>>
>> Hi all,
>>
>> While working on a toolbox for using multi precision numbers in Scilab
>> it as become clear that a way of tracking Scilab variable destruction
>> would be ideal.
>>
>> Why is it needed is when a Scilab variable has some anonymous memory(
>> i.e. not in the scilab stack) associated with it.
>>
>> Especially useful would be a way to hook against variable removal or
>> overwrite with a custom function for the structure.
>>
>> Would it be possible to see such function in a future version of Scilab?
>>
>>
>> Jonathan Blanchard
>>
>
>



More information about the dev mailing list