On 07/11/2018 03:15 PM, Bill Page wrote:
If I use the names 'first' and 'last' in a spad file I get a message:
Semantic Errors:
[1] last is BOTH a variable and a literal
[2] first is BOTH a variable and a literal
...
What does this mean? In spite of the "semantic error" the code
compiles and runs as expected.
If I replace 'first' with a different name e.g. 'first2' and 'last'
with 'last2' then there are no such errors. So far as I know 'first'
and 'last' are not reserved words in spad.
In other contexts "first" and "last" are list operators, getting the
first and last item; or in some cases a pointer. They work as
operators in fricas. I would avoid trying to use them as literals and
think they should be/reserved/ and /defined/. Personally I wouldn't
trust "overloading" them either. Basically I think that they come down
(up?) from Lisp.
Ray
--
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 https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.