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 "
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;
Martin Friebe wrote:
> try
>
> type
> foo = Object
> a : integer;
> Procedure b;
> end;
>
>
>
I like to have feature for inherit Object from a Class
type
Tfoo = Class
a : integer;
procedure b;
end;
Tfoo2 = Object(TFoo);
var
foo: TFoo2;
begin
foo.b;
end;
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.fre
Ah.
Thank you all!
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Howard Page-Clark wrote:
> On Sun, 25 Jan 2009 00:22:09 +0200
> Dave Coventry wrote:
>
>
>> type
>> TNameValueRecord = record
>> private
>> FNames: array of string;
>> FTypes: array of string;
>> function GetCount: integer; inline;
>>
> ... end;
>
> Delphi 2006 introduced
On Sun, 25 Jan 2009 00:22:09 +0200
Dave Coventry wrote:
> I'm following a suggestion for producing my own records
> so that I can define a custom TStringlist as detailed in this
> article:
> http://dn.codegear.com/article/33423
>
> However, I am unsure of where to post this code and am
> wonderi
On Sun, 25 Jan 2009, Dave Coventry wrote:
> Hi,
>
> I'm following a suggestion for producing my own records
> so that I can define a custom TStringlist as detailed in this
> article:
> http://dn.codegear.com/article/33423
>
> However, I am unsure of where to post this code and am
> wondering i
Hi,
I'm following a suggestion for producing my own records
so that I can define a custom TStringlist as detailed in this
article:
http://dn.codegear.com/article/33423
However, I am unsure of where to post this code and am
wondering if someone would advise me.
=== snip ===