Hello Andrew,
I understand what the coding is doing, but if I strictly follow the documentation, the following is true:
{1..10} is a legal format both for a domain as well as for an item. As the domain is optional and item is not optional it can only be an item if it is the only term following the display command.
So the documentation does not match the code. Adding a clarifying sentence in the documentation is probably the easiest fix.
The error message dos not explain that a item is missing.
Best regards
Heinrich
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.
Andrew Makhorin m...@gnu.orgschrieb:
On Tue, 2015-08-04 at 23:21 +0200, Heinrich Schuchardt wrote:
Hello Andrew,
the syntax error thrown in line 6 contradicts the documentation in
gmpl.pdf. Here you describe that both the domain and the colon are optional.
set I := 1..10;
display 1..10;
set J := {1..10};
display J;
display : {1..10};
display {1..10};
The syntax error happens because the display statement above has no
items to display; it should have at least one.
Note that display : {1..10} is correct, because it has empty domain
and the item to display is the set {1..10}.
end;
Best regards
Heinrich Schuchardt
___
Bug-glpk mailing list
Bug-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-glpk
___
Bug-glpk mailing list
Bug-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-glpk