[fpc-pascal] variant part of a record

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Sep 19 17:29:07 CEST 2006


On 19 sep 2006, at 17:21, Пётр Косаревский wrote:

> Do I get it right, that a construction like
>     record
>     Something: byte;
>      case Something of
>       1: (x,y: word);
>       2: (z: longword);
>     end;
> Is impossible in FPC?

You have to write

     record
      case Something: byte of
       1: (x,y: word);
       2: (z: longword);
     end;


Jonas


More information about the fpc-pascal mailing list