Variable type casts
Thu, 19 Jun 1997 03:22:57 +0200
Would it be possible to implement type casts of variables (like
in BP) into gpc? Currently, it only seems to know value type casts.
What I mean is the following (works in BP):
type x=record lo,hi:shortint end;
var a:integer;
begin
with x(a) do begin lo:=10; hi:=1 end;
writeln(a)
end.
--
Frank Heckenbach, Erlangen, Germany
heckenb@mi.uni-erlangen.de
Turbo Pascal: http://www.mi.uni-erlangen.de/~heckenb/programs.htm
Internet links: http://www.mi.uni-erlangen.de/~heckenb/links.htm
Frank Heckenbach (heckenb@mi.uni-erlangen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es