How using funmake with strings



Hi robert

Thank you very much for your reply,  Stavros Macrakis gave me a good 
remark about the type of variable, now my code runs.

r_aa(x):=block([],x*x);
name:"a";
racine:r_; /* necessary for keeping the variable type and not string*/
cname:concat(racine,name,name);
cname(2);
    ------> 4

like that, it is possible to drive the treatement without if then else 
action.
thank
john

Robert Dodier wrote:

> John,
> 
> Not sure what this is about, but I'll give it a try anyway ...
> Does the following yield the result you want?
> 
> aa(x) := x^2;    /* you can omit the block([], ...) */
> d : concat ('a, 'a);    /* concat('a, ...) => symbol, concat("a", ...)
> => string */
>  => aa
> d(2);
>  => 4
> 
> Hope this helps
> Robert Dodier
> --------------------------------------------------------------------------------------- 
> 
> Orange vous informe que cet  e-mail a ete controle par l'anti-virus 
> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 
> 
>