Use a "real" function or do as in (2) ...
Recommended reading 6.16 Free and Local Variables ;)

f():Void==(free x; x:=1; local y; y:= 1; output( sin(x+y)); output("ciao"));y


(2) -> L:=():Void+->(free x; x:=1; local y; y:= 1; output( sin(x+y));
output("ciao"))

   (2)  theMap(*0;anonymousFunction;2;initial;internal)
                                                           Type: (() -> Void)
(3) -> L();y
   sin(2)
   ciao

   (3)  y
                                                            Type: Variable(y)


On 19.06.2018 20:09, Riccardo GUIDA wrote:
> I tried also with more parentheses but same message
> 
> 
> (3) -> (():Void +-> {free x; x:=1; local y; y:= 1; output( sin(x+y));
> output("ciao")})(());y
>    sin(2)
>    ciao
>  
>    y is declared as being in PositiveInteger but has not been given a
>       value.
> 
> (3) -> ( (():Void +-> {free x; x:=1; local y; y:= 1; output( sin(x+y));
> output("ciao")})(()) );y
>    sin(2)
>    ciao
>  
>    y is declared as being in PositiveInteger but has not been given a
>       value.
> 
> 
> ric
> 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to