compiling and undefined variables



John Lapeyre wrote:
> Here I compile two functions
> (the source is given below)
>
> (%i2) compile(integerdigits,fromdigits);
>
> Warning-> block is an undefined global variable.
> Warning-> m is an undefined global variable.
> Warning-> diff is an undefined global variable.
> Warning-> b is an undefined global variable.
> Warning-> r is an undefined global variable.
> Warning-> pad is an undefined global variable.
> Warning-> i is an undefined global variable.
> Warning-> s is an undefined global variable.
>
> I wonder why these warnings appear ?
> The functions still seem to work, but I haven't
> tested them thoroughly.
>
> ------code
>
>
> integerdigits(n,[ib]) := (block[m,r:[],b:10,pad:0,diff],
>   
I think you meant to write block([m,r:[],...], instead of (block[...]

Ray