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.

This is mainly due to using the same name for variables and record
fields.  Original authors of Spad compiler for same reason decided
that this is an error.  But AFAICS there are no problems due to
this so this is accepted, but still produces an error message.

-- 
                              Waldek Hebisch

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

Reply via email to