Emil Jerabek wrote:
There are still some problems with packed arrays of subrange types.
(1) Initializers don't work properly.
I see the problem, but unfortunately it's not easy to fix it. For now, I can only put it on the to-do list, sorry. (emil5.pas)
(2) In certain situations, assignment statements work incorrectly when the same subscribed packed array variable is accessed on both sides of the assignment.
[...]
The problem is in the statement "A[N] := F (A[N]);" in the body of F. During its execution, A[N] is _cleared_ before the function call, in particular the argument passed to F is always 0. The debugger session below illustrates this behavior.
Fixed. (emil6.pas) Thanks for the reports. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html