[fpc-devel] comparing methods

Sergei Gorelkin sergei_gorelkin at mail.ru
Thu Sep 10 20:03:30 CEST 2009


Michael Van Canneyt wrote:
> 
> 
> On Thu, 10 Sep 2009, Florian Klaempfl wrote:
> 
>> Mattias Gaertner schrieb:
>>> On Thu, 10 Sep 2009 17:52:44 +0200
>>> Florian Klaempfl <florian at freepascal.org> wrote:
>>>
>>>> Ivo Steinmann schrieb:
>>>>> 1. Using =nil or Assigned should result in the same.
>>>> Afaik not, this was one of the reasons for assigned.
>>>
>>> Are there any other reasons for assigned?
>>
>> Distinction between f=nil and f=nil ;)? When it was introduced, I guess
>> f()=nil was not possible.
> 
> Another idea was that Assigned() could test if a pointer was within
> range of the heap.
> 
To my knowledge, in Delphi Assigned() tests only the high-order word of 
the pointer, thus returning False for everything below 64k.

Sergei



More information about the fpc-devel mailing list