[metapost] dependencies bug

Vadim Radionov vadim.radionov at gmail.com
Tue Jul 15 19:00:41 CEST 2014


Sorry, I quoted the wrong file.  Can you check this:

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);

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

showdependencies;

endfig;
bye


I've got:

vadim at vadim-X230:~/work/shen$ mpost test
This is MetaPost, version 1.803 (kpathsea version 6.1.1)
(mpost.mp (/home/vadim/texlive/2013/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) ) (./test.mp
y7=-0.08333
! This can't happen (dep).
l.14 showdependencies
                     ;
Transcript written on test.log.



On Tue, Jul 15, 2014 at 8:56 PM, Daniel H. Luecking <luecking at uark.edu>
wrote:

>
> In case it is important, Metapost 1.902 (TeX Live 2014)
> has the same behavior.
>
> Dan
>
>  Daniel H. Luecking
> Department of Mathematical Sciences
> University of Arkansas
> Fayetteville, Arkansas
>   ------------------------------
> *From:* metapost [metapost-bounces at tug.org] on behalf of Vadim Radionov [
> vadim.radionov at gmail.com]
> *Sent:* Tuesday, July 15, 2014 11:03 AM
> *To:* metapost at tug.org
> *Subject:* [metapost] dependencies bug
>
>   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
>
> --
> http://tug.org/metapost/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20140715/3d06898a/attachment-0001.html>


More information about the metapost mailing list