[Scilab-Dev] Issue with CheckLhs/CheckRhs ?

Yann Collette yann.collette at scilab.org
Sun Nov 8 08:36:39 CET 2009


Hi,

I thinks that the problem comes from the fact that it is not possible to 
have 0 Lhs.
gInit() is equivalent to ans = gInit().

add

sciprint('Lhs = %d Rhs = %s\n', Lhs, Rhs)

To test

and replace CheckLhs(0,0) by CheckLhs(0,1)

YC

Vincent Lejeune a écrit :
> Hi,
>
> with the following code, I have a strange behavior (on Scilab 5.2 beta 
> 1 windows) :
>
> int sci_gpuInit(char* fname)
> {
>    CheckRhs(0,0);
>    CheckLhs(0,0);
>
>   return 0;
> }
>
> when I called the function, I have the following errormessage :
> gInit()
> gInit : Mauvais nombre d'argument(s) de sortie : 0 attendu.
> A=gInit()
> gInit : Mauvais nombre d'argument(s) de sortie : 0 attendu.
>
> The last one is expectable...but the following code works :
> A=gInit
>
> without parentheses...But with only :
> gInit
> I have the same error as previously.
>
> Is it a bug ?
>
>
>




More information about the dev mailing list