View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000715 | MetaPost | bug | public | 2011-09-13 13:25 | 2012-12-10 12:13 |
Reporter | Taco | Assigned To | Taco | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.504 | ||||
Summary | 0000715: Error on using implicit suffix parameter (mpost 1.504) | ||||
Description | From Nicola: Hi, feeding mpost 1.504 (from TeX Live 2011) with the following code vardef XYZ.test = for i = incr(#@) downto 0 : message decimal(i); endfor enddef; XYZ = 5; XYZ.test; results in ! A statement can't begin with `:='. <to be read again> := downto->begingroup(SUFFIX2):= (SUFFIX2)+1;(SUFFIX2)endgroup <to be read again> step downto->step -1until implicit_suffix_param->....i=incr((SUFFIX0))downto 0:message.decimal(i);endfo... l.12 XYZ.test ; ? I'm pretty sure that this used to work previously. Can anyone confirm and/or reproduce this? The bug only occurs under the following conditions: - incr (or decr) is used in a for loop with upto or downto; - incr/decr's argument is enclosed in parentheses. Both incr #@ and (incr(#@)) are ok. Nicola | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-09-13 13:25 | Taco | New Issue | |
2011-09-13 13:25 | Taco | Status | new => assigned |
2011-09-13 13:25 | Taco | Assigned To | => Taco |
2011-09-13 14:13 | nicola | Note Added: 0000907 | |
2012-11-17 14:23 | Taco | Status | assigned => resolved |
2012-11-17 14:23 | Taco | Resolution | open => fixed |
2012-12-10 12:13 | Taco | Status | resolved => closed |