[metapost] dependencies bug

Vadim Radionov vadim.radionov at gmail.com
Tue Jul 15 18:03:16 CEST 2014


Dear all,

My colleague found a bug in Metapost 1.803 which I would lile to report.
 In the following minimal example, showdependencies shows something
inappropriate, which gives "This can't happen (dep)" error later.  But if I
move the third s-relation after setting z[4,6,8], everything works fine.

Vadim

def s(expr A,B,C,D)=
D-C=B-A=((B-D) rotated 90)
enddef;

beginfig(1);
s(z3,z4,z7,z8);
s(z4,z5,z6,z11);
s(z6,z12,z8,z10);

showdependencies;

z4 = (0,0);
z6 = (1cm,0);
z8 = (0,1cm);


endfig;
bye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20140715/f23b4eed/attachment.html>


More information about the metapost mailing list