[metapost] Bug? Parsing def := := enddef;

luigi scarso luigi.scarso at gmail.com
Thu Jan 21 14:20:19 CET 2010


On Thu, Jan 21, 2010 at 1:11 PM, Boguslaw Jackowski
<B_Jackowski at gust.org.pl> wrote:
>
> 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

hm, not sure here
I must see sec. 697 of MF the program

-- 
luigi



More information about the metapost mailing list