-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

why exactly is this legal in omc?

model Test

  record R
    Real x;
  end R;

  R r[4];
  equation
  r.x = time .* {1,2,3,4};
end Test;

I cannot find any sentence in the spec suggesting that r.x should be
legal. All I found was:

"
If the first identifier denotes a component, the rest of the name [e.g.,
B or B.C] is looked up among the declared named component elements of
the component.
"

That seems to not allow access of x here, since x is not a component
of R[4], right?

- -- 
Christoph Höger

Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen

Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin

Tel.: +49 (30) 314-24890
E-Mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6vzJkACgkQhMBO4cVSGS/0FACePEOZelE0so2E4fiMYgYrc1+a
3YIAn2bT+8zy4kNNvPU1zP++IwhMeAiN
=FhSJ
-----END PGP SIGNATURE-----

Reply via email to