revert nformat



Weird:

MAXIMA> (aliaslookup '$true)
T
MAXIMA> (aliaslookup '$false)
$FALSE

Likely I can monitor my code for an output of $true or $false and take care of this--I'll need to study the nformat code to see
what other changes it makes.

--Barton

________________________________________
From: maxima-bounces at math.utexas.edu [maxima-bounces at math.utexas.edu] on behalf of Raymond Toy [toy.raymond at gmail.com]
Sent: Thursday, August 01, 2013 10:57
To: maxima at math.utexas.edu
Subject: Re: [Maxima] revert nformat

>>>>> "Barton" == Barton Willis <willisb at unk.edu> writes:

    Barton> The function nformat converts t to $true. What function
    Barton> reverts $true to t? More generally, what function reverts
    Barton> nformat?

I'm pretty sure the parser (nparse.lisp) converts $true to T, but I no
longer remember how it's done.  Perhaps it uses ALIASLOOKUP to get the
ALIAS property that is defined for $TRUE?

For general nformat, I don't know what would reverse it.  Maybe run
the parser over the output?

Ray

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