Bill Page wrote:
>
> On 3 February 2015 at 07:41, Ralf Hemmecke <[email protected]> wrote:
> >
> > In fact, also the treatment of scripted symbols in Symbol is somewhat
> > strange. It encodes the numbers of sub/super/presuper/presub scripts
> > into the name of the symbol, and then concats all scripts into a flat
> > list. Why not storing something like script('a, [[x1,x2],[y1],[z1,z2]]) as
> >
> > (a (x1 x2) (y1) (z1 z2))
> >
> > ? If that is a performance issue when comparing symbols then we should
> > think of creating a hashtable for scripted symbols (indexed by Lisp
> > symbols). So all elements of Symbol are lisp symbols but some of them
> > appear in the hash table and would have to be translated into scripted
> > symbols at output time.
> >
>
> How would you propose to assign a value to something like
>
> (a (x1 x2) (y1) (z1 z2))
>
> Isn't assigning a value something you can only do to a symbol in Lisp?
Currently assignment to scripted symbols is not supported. That is
in Spad and in interpreter you must use ordinary (unscripted)
symbols. In principle we could add support for such symbols to
serve as Spad/interpreter variable names. But I see no point.
Namely, main strenth of scripted symbols is that names can be
generated at runtime. But in Spad/interpreter we need names which
are known befor runtime...
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.