bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] Syntax error: display {1..10};


From: Heinrich Schuchardt
Subject: Re: [Bug-glpk] Syntax error: display {1..10};
Date: Wed, 5 Aug 2015 08:53:56 +0200

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 <address@hidden>schrieb:
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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-glpk
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]