[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] Syntax error: display {1..10};
From: |
Andrew Makhorin |
Subject: |
Re: [Bug-glpk] Syntax error: display {1..10}; |
Date: |
Wed, 05 Aug 2015 08:29:48 +0300 |
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
>