[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] pointers
From: |
Tim Daly |
Subject: |
[Axiom-developer] pointers |
Date: |
Mon, 09 Nov 2009 19:51:45 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
You can get a memory pointer to a lisp object.
a:=Fraction(Integer)
returns the "memory location of Fraction(Integer)"
You can prove this with
b:=Fraction(Integer)
EQ(a,b)$Lisp
The lisp function EQ compares memory pointers.
There is a lisp function to get the hash value of any object
call sxhash. You can call it.
SXHASH(a)$Lisp
Note that if
c:=Integer
then
EQ(a,c)$Lisp is false
SXHASH(a)$Lisp is not equal to SXHASH(c)$Lisp
Thus the hash function you seek already exists.
You just have to accept the fact that Spad is only syntactic
sugar for lisp code and lisp is not evil.
Tim
- [Axiom-developer] listOfTerms, Tim Daly, 2009/11/01
- [Axiom-developer] listOfTerms, Bertfried Fauser, 2009/11/02
- Re: [Axiom-developer] listOfTerms, Franz Lehner, 2009/11/02
- [Axiom-developer] pointers,
Tim Daly <=
- Re: [Axiom-developer] pointers, William Sit, 2009/11/09
- Re: [Axiom-developer] pointers, Tim Daly, 2009/11/09
- Re: [Axiom-developer] pointers, William Sit, 2009/11/10
- Re: [Axiom-developer] pointers, William Sit, 2009/11/10
- Re: [Axiom-developer] pointers, William Sit, 2009/11/10
- Re: [Axiom-developer] pointers, Tim Daly, 2009/11/10
- Re: [Axiom-developer] pointers//Decontructing domains, William Sit, 2009/11/10
- Re: [Axiom-developer] pointers//Decontructing domains, Tim Daly, 2009/11/10
- Re: [Axiom-developer] pointers, Gabriel Dos Reis, 2009/11/09
- Re: [Axiom-developer] pointers, William Sit, 2009/11/10