[Scilab-Dev] vector^scalar allowed again in Scilab 6?
Pierre-Aimé Agnel
pierre-aime.agnel at scilab-enterprises.com
Wed Aug 10 17:56:59 CEST 2016
Hello,
It was changed at resolution of
http://bugzilla.scilab.org/show_bug.cgi?id=14316
I am not sure though whether enforcing the 'vector ^ scalar' error
should be reintroduced. My 2-cents: there are many operations that have
the same behaviour that their dot-operation counterpart when used with a
scalar.
I think the operation should remain available, but I can also enforce
the obsolescence in the release for 6.0.0.
Best regards
Le 05/08/2016 à 17:24, Samuel Gougeon a écrit :
> Hello,
>
> The warning message about the vector^scalar operation yielded in
> Scilab 5.5
> has been removed from Scilab 6.0, as if this operation would become
> again allowed instead of becoming actually forbidden:
>
> Scilab 5:
>
> -->x = 1:3
> x =
> 1. 2. 3.
>
> -->x^2
> !
> Warning: Syntax "vector ^ scalar" is obsolete. It will be removed in
> Scilab 6.0.
> Use "vector .^ scalar" instead.
> ans =
> 1. 4. 9.
>
> Scilab 6.0.0-b2:
> --> warning("on")
>
> --> x = 1:3
> x =
> 1. 2. 3.
>
> --> x^2
> ans =
> 1. 4. 9.
>
> Is it on purpose? Is this shortcut restored?
>
>
>
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/dev
--
Pierre-Aimé Agnel
R&D Projects Manager
Phone: +33.1.80.77.04.67
Mobile: +33.6.82.49.35.23
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.60
http://www.scilab-enterprises.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160810/751b8f5c/attachment.htm>
More information about the dev
mailing list