[Scilab-users] xdel replaced by close()
Stéphane Mottelet
stephane.mottelet at utc.fr
Sat Jan 22 14:24:20 CET 2022
Hi,
This is fixed for the next release:
https://codereview.scilab.org/#/c/21803/
In the meantime, if you really need it you can download the patched version of findobj.
S.
> Le 21 janv. 2022 à 23:54, Samuel Gougeon <sgougeon at free.fr> a écrit :
>
>
> Hello Claus,
>
>> Le 21/01/2022 à 20:58, Claus Futtrup a écrit :
>> Hi Scilabers
>>
>> Today I tried to replace xdel(winsid()) in one of my scripts with close(winsid()) because Scilab shows a warning in the console:
>>
>> Warning: Feature xdel(...) is obsolete and will be permanently removed in Scilab 6.2
>>
>> Warning: Please use close(...) instead.
>>
>> I am negatively surprised that the close() command takes a long time to execute with 5-10 windows open (a few seconds per window). The xdel() command can do it in a split second.
>>
>
> The issue comes not from close() but from the change of findobj() that it calls, noticeably to perform findobj("figure_id",id) in 6.1.1.
> It does not impact only close() for this case, that was processed as a special accelerated case in the former findobj().
> This downgrading was reported 7 months before releasing 6.1.1, and knowingly ignored, while it is perfectly fixable by restoring the fast special case.
>
>
>>
>> What is the motivation for replacing xdel with close?
>
> Both do the same thing. Scilab does not need duplicates.
>
> Regards
> Samuel
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220122/1a05edc6/attachment.htm>
More information about the users
mailing list