Calling Functions with Var Parameters

Product Version(s): 3.20
Operating System:   MS-DOS
Flags: ENDUSER | TAR15705 buglist3.20 fixlist3.30
Last Modified:  3-OCT-1988    ArticleIdent: Q10379

Problem:

The program shown below exhibits a problem when calling transcendental
functions with var parameters. The address is improperly set for the
argument that was defined as a formal reference (var) parameter.

The following is a short code example:

   program fu(output);
   var  X : real8;

   PROCEDURE A1(VAR T: real8);
   begin
      T := exp(T)
   end;

   begin
      X := 1.0;
      A1(X);
      writeln('X = ',X)
   end.

Response:

Microsoft has confirmed this to be a problem in Version 3.20. This
problem was corrected in Version 3.30.

