[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue with vector-constants
From: |
Michael Riedl |
Subject: |
Issue with vector-constants |
Date: |
Thu, 27 Jul 2023 12:34:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
Gaius,
may I ask yout to have a look on the short sample below - I do not see
why this should be syntactical not OK.
Thanks
Michael
MODULE MayBeBuggy;
TYPE V5 = ARRAY [1.. 5] OF LONGREAL;
CONST wg10 = V5{
6.66713443086881375935688098933317928579E-02,
1.49451349150580593145776339657697332403E-01,
2.19086362515982043995534934228163192459E-01,
2.69266719309996355091226921569469352860E-01,
2.95524224714752870173892994651338329421E-01
}; (* weights of the 10-point Gauss-Konrod rule *)
CONST WG = wg10;
VAR x : LONGREAL;
BEGIN
x := wg10[3]; (* OK *)
x := WG[3]; (* NOT OK *)
END MayBeBuggy.
- Issue with vector-constants,
Michael Riedl <=