axiom-developer
[Top][All Lists]
Advanced

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

Re: [Axiom-developer] is there any specification about how to use Lisp o


From: Mike Dewar
Subject: Re: [Axiom-developer] is there any specification about how to use Lisp operations in AXIOM
Date: Fri, 16 Jul 2004 10:04:46 +0100
User-agent: Mutt/1.4.1i

You can't provide optional parameters to Lisp functions using $Lisp
because the Axiom interpreter doesn't understand the syntactic meaning
of ":".  You must either provide a Lisp cover function like e.g.:
)lisp (defun myarray (dims in-el) (make-array dims :initial-element in-el))
MYARRAY(10,1)$Lisp
or alternatively try to find an Axiom equivalent.  In this case it is
quite likely that the domain PrimitiveArray has the functionality you
need, for example the result of:
new(10,1)$PrimitiveArray(Integer)
is identical to that of myarray above.

Regards, Mike.

On Fri, Jul 16, 2004 at 12:43:27AM -0400, address@hidden wrote:
> Dear all,
> 
> for example,
> I can make a 10 element array by using MAKE_-ARRAY(10)$Lisp
> but how to specify those arguments?
> 
> make-array dimensions &key :element-type :initial-element :initial-contents
> :adjustable :fill-pointer :displaced-to :displaced-index-offset
> 
> Thanks
> 
> 
> 
> _______________________________________________
> 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]