You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise you could get into situations where e.g. a Word-typed argument has to reject all aliases since one of them could later expand to more than a word, or a Text-typed argument has an alias that then expands into commands etc.
The underlying reason for this is because every alias has the type Content:
\def_alias[
key: Word;
val: Content;
] -> None
The val is the newly defined alias' value, which has type Content. So we have to resolve the alias first to verify the actual type matches.
The text was updated successfully, but these errors were encountered:
Infernio
changed the title
Aliases must be evaluated before we check command argument types
Aliases must be resolved before we check command argument types
Jun 1, 2022
Otherwise you could get into situations where e.g. a
Word
-typed argument has to reject all aliases since one of them could later expand to more than a word, or aText
-typed argument has an alias that then expands into commands etc.The underlying reason for this is because every alias has the type
Content
:The
val
is the newly defined alias' value, which has typeContent
. So we have to resolve the alias first to verify the actual type matches.The text was updated successfully, but these errors were encountered: