Ralf Hemmecke wrote:
> 
> Interesting...
> 
> https://github.com/fricas/fricas/blob/master/src/algebra/fs2ups.spad#L1348
> 
>   Result  ==> Union(%series : UPS, %problem : Problem)
> 
> I thought that identifiers starting with % are a speciality in the
> interpreter.

They have equal rights with other identifiers.

> What happens, if I had written SPAD code with
> 
>   Record(%pi: Integer, %e, Integer)
> 
> ?

You will have trouble accessing fields because interpreter
macros take precedence.  If you undefine builting macros
nothing special will happen.  Well, actually this could
be good test of printing routines, because printing routines
use '%' as special char, and may get confused by such names.

> Can this %series go away?

I am not a fan of such names.  But changing name one have
to avoid name clashes.  This record is used in quite large
area of code and I am not sure if there exist good names
which do not collide we other names used in the code.
After recent changes FriCAS allows more overloading,
so change may work, but this is notrivial work with little
payoff.

-- 
                              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.

Reply via email to