gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Error while passing a constant array as open array


From: Martin Kalbfuß
Subject: [Gm2] Error while passing a constant array as open array
Date: Sun, 20 Sep 2009 16:47:03 +0200

Hi,

I maybe found a bug. I'm not sure.

I have a type:

Vector = ARRAY[0..2] OF REAL

And a procedure:

PROCEDURE ScalarMultiplication(Vector : ARRAY OF REAL; Scalar : REAL;
VAR Result : ARRAY OF REAL);

I can do:

AVector := Vector{1.0, 2.0, 3.0};
ScalarMultiplication(AVector, 5.0, Result);

But not:

ScalarMultiplication(Vector{1.0, 2.0, 3.0}, 5.0, Result);

The compiler tells that the type cannot converted into a pointer type.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]