[Scilab-users] %mlistType_clear overloading of clear() for mlist custom types

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Jul 1 18:53:20 CEST 2020


Le 01/07/2020 à 18:46, Samuel Gougeon a écrit :
> 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"
>>
>
> Thank you, Alain. I did not pay attention to the example.
>
> I will fix the page to indicate that at least one argin is required,
>
I think that exactly one argin is required.
>
> provided that this requirement is intentional.
>
> Samuel
>
>
> _______________________________________________
> 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/d1aefeb5/attachment.htm>


More information about the users mailing list