[fpc-pascal]how to assign a value to an untyped variable

Evergray evergray at pisem.net
Fri Jul 11 14:26:10 CEST 2003


Hello Gerhard,

Friday, July 11, 2003, 3:18:58 PM, you wrote:

ZG> hello list members,

ZG> could anyone of you give me a hint how to assign a value to an untyped
ZG> variable parameter of a procedure. E.G. in the following procedure:

ZG> procedure test(var value);
ZG> var r : real;
ZG> begin
ZG>   r := 1.0;
ZG>   value := real;        // does not work
      value := r;           // didn't ã mean so?
ZG> end;

ZG> which type to be used for a type cast (that is not allowed for the left
ZG> side) or how to use an address operator to manage it?

     real(value) := r
     
ZG> any help would be welcome
ZG> gerhard

ZG> -------------------------------
ZG> Gerhard Zintel
ZG> Faurecia Abgastechnik GmbH
ZG> Abt.: EGA
ZG> Tel.: +49 911 7610171
ZG> Fax.: +49 911 7610350
ZG> e-mail: GZintel-AT-Stadeln.Faurecia.com



WBR, Evergray
--
Words mean nothing...





More information about the fpc-pascal mailing list