Marc Weustink schrieb:
> Michael Van Canneyt wrote:
>>
>> On Thu, 30 Nov 2006, ht wrote:
>>
>>> Trying to transfer a Program from kylix to lazarus i have the
>>> following problem:
>>>
>>> I declared:
>>>     hListe: TList;
>>>
>>> and then
>>>         GetElement := hListe.Items[1];
>>>
>>> Trying to compile I got the Error-merssage:
>>>     ERROR: Incompatible Types: Got "P0inter" expected "TObject"
>>>
>>> in kylix, the program worked
>>
>> This is a bug in Kylix. You shouldn't be able to assign a pointer to a
>> TObject.
> 
> Not really a bug in Kylix imo, delphi has the same behaviour.
> FPC has a stricter syntax.

Well, simply use -Sd if you want Delphi/Kylix behaviour.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to