Quantcast

Re: [Localization] size or type

classic Classic list List threaded Threaded
2 messages Options
Yuri Chornoivan Yuri Chornoivan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Localization] size or type

п'ятниця, 11-жов-2013 05:38:53 ви написали:

Hi


I found in atoms this string:

"%s: Wrong size for input argument #%d: A boolean or single string expected."


And i have question:

"size", not "type"?


_______________________________________________
localization mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/localization



If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Localization-size-or-type-tp4027583.html

To start a new topic under Scilab localization - Mailing Lists Archives, email [hidden email]
To unsubscribe from Scilab localization - Mailing Lists Archives,
click here.
NAML



Hi,

 

The code is (from atomsRemove.sci):

 

if typeof(section) <> "string" & typeof(section) <> "boolean" then

error(msprintf(gettext("%s: Wrong type for input argument #%d: A boolean or single string expected.\n"),"atomsRemove",2));

end

 

if size(section, "*") <> 1 then

error(msprintf(gettext("%s: Wrong size for input argument #%d: A boolean or single string expected.\n"),"atomsRemove",2));

end

 

 

So I think that everything is in its right place.

 

Best regards,

Yuri

Serge Steer-2 Serge Steer-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Localization] size or type

Le 11/10/2013 15:28, Yuri Chornoivan a écrit :

п'ятниця, 11-жов-2013 05:38:53 ви написали:

Hi


I found in atoms this string:

"%s: Wrong size for input argument #%d: A boolean or single string expected."


And i have question:

"size", not "type"?


It is really size. This message is used when a boolean or a string of size 1 by 1 is expected.

Serge

_______________________________________________
localization mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/localization






_______________________________________________
localization mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/localization
Loading...