gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: [Maxima] compile( ) bug


From: Camm Maguire
Subject: [Gcl-devel] Re: [Maxima] compile( ) bug
Date: Thu, 22 Apr 2010 11:10:26 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Greetings!  All I have is the latest 5.21.0, but on my Debian system:

address@hidden:~/debian/gcl/gcl-2.6.8pre/o$ maxima

Maxima 5.21.0 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (a.k.a. GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) g(x):=is(x>10);
(%o1)                         g(x) := is(x > 10)
(%i2) f(x):=if g(x) then 1 else 2;
(%o2)                    f(x) := if g(x) then 1 else 2
(%i3) f(11);
(%o3)                                  1
(%i4) compile(f);

Compiling /tmp/gazonk_6854_0.lsp.
End of Pass 1.  
End of Pass 2.  
OPTIMIZE levels: Safety=2, Space=3, Speed=3
Finished compiling /tmp/gazonk_6854_0.lsp.
(%o4)                                 [f]
(%i5) 

Is this Windows?

Take care,


Jaime Villate <address@hidden> writes:

> On Wed, 2010-04-21 at 22:34 -0700, Richard Fateman wrote:
>> g(x):=is(x>10);
>> 
>> f(x):=if g(x) then 1 else 2;
>> 
>> f(11);  works ... but
>> 
>> compile(f);
>> f(11);  crashes with "the variable $g is unbound"
>> 
>> on GCL maxima 5.20.1
>
> It seems to be a GCL problem, because it works fine for me in 5.20.1
> with either CLisp, SBCL or Clozure Lisp.
> Regards,
> Jaime
>
>
> _______________________________________________
> Maxima mailing list
> address@hidden
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
>

-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]