17 Jan
2021
17 Jan
'21
11:17 a.m.
Hi, I have some troubles with understanding metafun's macro mechanism. Given this MWE: \starttext \startMPpage vardef Test (expr ab,cd)= %numeric ab; %numeric cd; draw unitsquare scaled 10 xshifted ab; draw unitsquare scaled 10 yshifted cd; enddef; Test (50,100); \stopMPpage \stoptext Uncommenting the two declarations makes me run intro a silent error. I was lucky enough yesterday to get an explicit error message with a more complex macro. It made me figure out where my problems came from. So here are my two questions: - Why shouldn't we tell metafun if expr is a path, a pair or so on? - Would it be possible to issue an error message each time this wrong declaration is made? Thanks, Damien Thiriet