|
From: | Domingo Alvarez Duarte |
Subject: | Re: Is this the expected behavior with "default" ? |
Date: | Thu, 6 Aug 2020 15:52:02 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
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 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)==== [...]
[Prev in Thread] | Current Thread | [Next in Thread] |