Hi, this is a MetaPost limitation; s41p actually means s[41].p in MetaPost, not a simple variable name.

M.


On Sun, Jan 14, 2024, 20:54 Rodrigo Severo via Therion <therion@speleo.sk> wrote:
Hi,


Just trying to set a "line u:s41p" symbol on latest Therion and getting strange metapost errors:

! Missing `=' has been inserted.
<to be read again>
                   51
l.6846 let l_u_s51
                  p = l_u;
You should have said `let symbol = something'.
But don't worry; I'll pretend that an equals sign
was present. The next token I read will be `something'.

! Missing symbolic token inserted.
<inserted text>
                 INACCESSIBLE
l.6846 let l_u_s51
                  p = l_u;
Sorry: You can't redefine a number, string, or expr.
I've inserted an inaccessible symbol so that your
definition will be completed without mixing me up too badly.

! Extra tokens will be flushed.
<to be read again>
                   p
l.6846 let l_u_s51p
                    = l_u;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)

! Missing `=' has been inserted.
<to be read again>
                   51
l.6847 def l_u_s51
                  p_legend = l_u_s51p(((-.3,0.5) .. (.3,.3) .. (.7,.7) .. (1...
The next thing in this `def' should have been `=',
because I've already looked at the definition heading.
But don't worry; I'll pretend that an equals sign
was present. Everything from here to `enddef'
will be the replacement text of this macro.

I believe that subtypes aren´t supporting all chars allowed by <keyword>  as defined in THBook page 13 (Data types).

Is it a bug or am I misreading something?


Regards,

Rodrigo

_______________________________________________
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion