[Lazarus] Where to place definition of a record?

Marc Weustink marc.weustink at cuperus.nl
Tue Jan 27 09:58:25 CET 2009


Andreas Berger wrote:
> But unfortunately an object is not totally record compatible. It can not 
> do this:
> 
> foo = object
>   a : integer
>   case boolean of
>     true:{...};
>     fasle: {...}
>   end;
>   procedure b;
> end;

You cant do this in a record either (if you replace "proc b" by "b: 
integer") . You need to define a separate type for the union.

Marc




More information about the Lazarus mailing list