compile


compilation

compile
message
See also

compile

compile func

        Compile all functions.

compile(1)func

        Compile all functions without parenthesizings.
Can be used in case of error in parentheses, to force a particular bracketing.

compile func("foo")

       Compile the function foo

compile message

compile message("mes")

       runs mes (which must be an expression evaluable) and returns the string of characters assessment of "mes".
The idea is:
1) put a command line in a strin: ch1="com1(p1)com2(p2)...";
2) then varying the parameters p1 p2 ...
3) finally ch2=compile message(ch1); product a variable string ch2 which can be displayed, for example:
text(ch2)poi(x,y)rectangle(0,0,0);
Example in anyflo:
a()
{
extern A,dA,EXEC;
       A=0;dA=.02*PI;cube(7);
       interaction func(5,"a5");
}
a5()
{
extern A,dA,EXEC;
       x=100*cos(A);y=100*sin(A);A+=dA;num=number vol;
       EXEC=compile message("tran(x,y,0)matrix vol(num)");
       text(EXEC)poi(-200,-200)rectangle(0,0,0);
}

puts the string estimating x,y,num in place of x y num.
text(EXEC) display unsettled values.

Important note:
Any expression should be fully parenthesized, for example:
compile message("X[0],-1,X[2]"); is illegal, but
compile message("((X[0]),-1,(X[2]))"); is correct.
Such scripts are in most demos anyflo.

See also

yes compile
no compile