[Scilab-users] %mlistType_clear overloading of clear() for mlist custom types
Stéphane Mottelet
stephane.mottelet at utc.fr
Wed Jul 1 13:47:25 CEST 2020
Right, sorry for my previous message.
But, at the user level there are very few use cases: the clear overload
is only useful if some mlist fields contain some pointers to allocated
data. For example sparse LU factors or Java objects.
S.
Le 01/07/2020 à 13:29, Lamy Alain a écrit :
>
> Hello Samuel,
>
> Comparing with the example in the « clear » page, the “%test_clear”
> function must have one argument :
>
> --> m = mlist("test");
>
> --> function %test_clear(x)
>
> > disp("mlist test cleared")
>
> > endfunction
>
> --> clear m;
>
> "mlist test cleared"
>
> Alain
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200701/97156325/attachment.htm>
More information about the users
mailing list