[metapost] Bug? Parsing def := := enddef;
Boguslaw Jackowski
B_Jackowski at GUST.org.pl
Thu Jan 21 13:11:01 CET 2010
Hi,
Nicola:
> according to The METAFONTbook, a macro definition can be 'def' followed
> by a symbolic token followed by either = or :=.
[...]
> But the following gives an error:
> This is MetaPost, version 1.208 (kpathsea version 3.5.7dev)
> **\relax
>
> *def := := enddef;
> ! Missing `=' has been inserted.
> <to be read again>
> :=
> <*> def := :=
> enddef;
> ?
> That looks like a small bug.
Not sure. MF behaves similarly:
This is METAFONT, Version 2.71828 (Web2c 7.5.2) (base=mf 2006.4.9) 21 JAN 2010 13:06
(c:\TeXLive/texmf/web2c/cp8bit.tcx)
**zz.mf
(zz.mf
! Missing `=' has been inserted.
<to be read again>
:=
l.1 def := :=
enddef;
Was this behavior reported to Knuth?
Cheers -- Jacko
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Bogus\l{}aw Jackowski: B_Jackowski at GUST.ORG.PL
----------------------------------------------------------------
Hofstadter's Law: It always takes longer than you expect, even
when you take into account Hofstadter's Law.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the metapost
mailing list