axiom-developer
[Top][All Lists]
Advanced

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

Re: [Axiom-developer] Re: coerce to SEX


From: Mike Dewar
Subject: Re: [Axiom-developer] Re: coerce to SEX
Date: Fri, 2 Jul 2004 10:03:37 +0100
User-agent: Mutt/1.4.1i

You can use any Lisp function in the current Lisp package from the Axiom
interpreter using `$Lisp', but you need to bear in mind some slight
syntactic differences.  For instance your example can be done as:
a:=any(['Integer]$Lisp,3::None) -- use [ ... ] as shorthand for list(...)
a:=any(LIST('Integer)$Lisp,3::None) -- apply LIST from Lisp
Note that although the lisp interpreter will upper-case everything,
Axiom doesn't so e.g. list(1)$Lisp won't work.

I thought that you could package-qualify lisp calls in the interpreter
by doing e.g. BOOT_:_:GENVAR()$Lisp, but this doesn't work in my version.

I hope this helps.

Mike.

On Fri, Jul 02, 2004 at 12:21:05AM -0400, William Sit wrote:
> What threw me off the track was the very suggestive way to construct an ANY
> object using the function any: (SExpression, None)->ANY.
> 
> None of the functions exported by SEX, SEXCAT, SEXOF provide any way to input 
> a
> SExpression from the interpreter. Typing "(Integer)" (with or without quotes) 
> in
> place of the identifier d above will not work.
> 
> Is there any documentation for all the Lisp code that can be used in Axiom?
> (Lisp is NOT a domain despite the $Lisp notation). Are the commands part of 
> the
> Boot language? (this may be a very stupid question).
> 
> William
> 
> 
> _______________________________________________
> Axiom-developer mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/axiom-developer
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




reply via email to

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