Hello Andrew !

Thank you again for replying !

For me the "key" on your last answer was "*display is intended mainly for debugging*", which is not mentioned on the manual.

Cheers !

On 6/8/20 15:48, Andrew Makhorin wrote:
On Thu, 2020-08-06 at 15:28 +0200, Domingo Alvarez Duarte wrote:
Hello Andrew !

It seems to an inconsistent behavior see example bellow, if display
do
not reference/instantiate model entities I would not expect any
output
for "display {(a,b) in S} (a,b);".
The display statement is intended mainly for model debugging, in
particular, to see which object members were actually referenced.

In your case you specify an expression, not an object, so that
expression is evaluated as usual.

For example, in Fortran this difference would look like follows:

    print *, a

    print *, (a(i), i = 3, 7)



====
[...]

Reply via email to