[metapost] metapost 1.999 Semicolon Weirdness

Hartmut Henkel hartmut_henkel at gmx.de
Tue May 13 23:00:41 CEST 2014


Hi,

the following program runs fine with MetaPost Version 1.999:

prologues:=3;
  beginfig(1);
  path p;
  z1 = (0.000000,0.000000);
z2 = (10.000000,0.000000);
z3 = (10.000000,10.000000);
z4 = (0.000000,0.000000);
p := z1 .. controls z2 and z3 .. z4;
  message(decimal(arclength(p)));
  pickup pencircle scaled 0.050000;  drawdot z1 withcolor red;
  drawdot z2 withcolor red;
  drawdot z3 withcolor red;
  drawdot z4 withcolor red;
  pickup pencircle scaled 0.010000   draw (z1--z2--z3--z4) withcolor red;
  draw p;
  currentpicture := currentpicture scaled 10;
  endfig;
  end;

Now i wonder why, since by accident there is no semicolon in line 14
between "pickup pencircle scaled 0.010000" and "draw (z1--z2...".
Shouldn't this give an error?

Regards, Hartmut



More information about the metapost mailing list