[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Spad and its object model
From: |
Stephen Wilson |
Subject: |
Re: [Axiom-developer] Spad and its object model |
Date: |
11 Jun 2007 18:05:58 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Gabriel Dos Reis <address@hidden> writes:
> | If the vtable can be interrogated with a variety of keys, allowing
> | useful mapping of elements, I dont see how a hash is any more
> | flexible. Perhaps you could provide an example?
>
> Did I say "more flexible"?
>
> When you have an array and you index it with value 2, what does "2"
> means?
As I said, you are not limited to using an integer. You could use
any key which makes sense. You suffer slight cost of indirection, but
cost comparable to a hash I suspect.
> [...]
>
> | > | I dont think of the integer index as having anything to do with the
> | > | order of declarations.
> | >
> | > Please elaborate on its semantics then.
> |
> | Nothing fancy. Its just a key, no more, no less.
>
> Sorry, "nothing fancy" is not an executable semantics.
Like most bytes, one needs to infer the meaning by context. An
integer index is fast because it does not carry more information than
the context can provide. For other situations, a different key can be
used.
Steve
- Re: [Axiom-developer] Spad and its object model, (continued)
Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11
- Re: [Axiom-developer] Spad and its object model,
Stephen Wilson <=
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/12
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/12
- Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/12
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/12
Re: [Axiom-developer] Spad and its object model, Waldek Hebisch, 2007/06/11