compiling and undefined variables



That's not it.  I checked it, there are 2 unnecessary parentheses around the block.

Rich





 ------------Original Message------------
From: Raymond Toy <toy.raymond at gmail.com>
To: pdl at johnlapeyre.com
Cc: "maxima list" <maxima at math.utexas.edu>
Date: Sat, Sep-6-2008 0:41 AM
Subject: Re: [Maxima] 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

_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima