Question: Compiler:-Compile & arrays

I want to use Compiler:-Compile for a function with a numerical vector v:= [1.0,2.0,3.0,4.0]; as initialized variable. The help refers to CodeGeneration/Details where it says: "The CodeGeneration functions can analyze some rtable type declarations and constructors within procedures. Data types, dimensions and ranges are recognized, but most options are ignored. The only initializer accepted is a list. Dimensions and ranges must have integer values ..." I did:
foo:=proc(x::float)
local v::Vector(1..4,datatype=float[8], order= Fortran_order);
v:= [1.0,2.0,3.0,4.0];
return x*v[1];
end proc;

but:

Compiler:-Compile(foo);

  Error, (in printtab[CodeGeneration:-Names:-Declaration]) local variables cannot have Array types
Any suggestions? I can not find it out (and have 'large' arrays ) ...
Please Wait...