Subject: get name of variable as string in function?
From: Edwin Woollett
Date: Mon, 27 Feb 2012 10:55:33 -0800
On Feb. 27, 2012, Eric Reyssat wrote:
------------------------
>It may depend on the maxima (or lisp ?) version :
[snip]
--------------
On Feb 27, 2012, Stavros Macrakis wrote:
--------------------
>This is (was?) a bug. It works fine in Maxima 5.25.1 on GCL 2.6.8.
>What version are you on?
-----------------------------------
(%i5) build_info()$
Maxima version: 5.26.0
Maxima build date: 22:48 1/15/2012
Host type: i686-pc-mingw32
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.8
-------------------------------
Ted
P.S.
I agree that 5.25.1 gives 'false' instead of 'nil'
--------------------
(%i1) [a:false,b:true]$
(%i2) mprintx(name,val) := print(sconcat(" ",name," = "),val)$
(%i3) mprintx('a,a);
a = false
(%o3) false
(%i4) mprintx('b,b);
b = true
(%o4) true
(%i5) build_info()$
Maxima version: 5.25.1
Maxima build date: 10:2 9/6/2011
Host type: i686-pc-mingw32
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.8
------------