On 27/07/18 07:36, Michael Van Canneyt wrote:
It is by design.
And - OMG !! - it is even documented:
https://www.freepascal.org/docs-html/current/rtl/system/tobject.free.html
There is no need to search the docs, it is even more quick just jump to
the implementation of free and see what it doe
On Thu, 26 Jul 2018, Ryan Joseph wrote:
I was doing some testing today (Mac) and discovered that calling Free on a nil
object didn’t cause a EAccessViolation exception. Why doesn’t that crash?
It is by design.
And - OMG !! - it is even documented:
https://www.freepascal.org/docs-html/curr
I was doing some testing today (Mac) and discovered that calling Free on a nil
object didn’t cause a EAccessViolation exception. Why doesn’t that crash?
var
c: TObject;
begin
c := nil;
c.Free;
Regards,
Ryan Joseph
___
Vojtěch Čihák schrieb am Do., 26. Juli 2018, 13:40:
> Thanks for reply.
>
>
>
> Ad 2) I opened issue: https://bugs.freepascal.org/view.php?id=34037
>
>
>
> Ad 1) Are there any plans for improvement of generic inheritance? Related
> to my example, instead of
>
>
>
> generic TFPGObjectListEx =
Thanks for reply.
Ad 2) I opened issue: https://bugs.freepascal.org/view.php?id=34037
Ad 1) Are there any plans for improvement of generic inheritance? Related to my
example, instead of
generic TFPGObjectListEx = class (specialize TFPGObjectList)
I would prefer simplier and more strai
On Mon, Jul 23, 2018 at 11:11 AM, Ryan Joseph
wrote:
>
>
>> On Jul 22, 2018, at 4:54 AM, Sven Barth via fpc-pascal
>> wrote:
>>
>> And that's why there are people who *do* care about it. Of course you can
>> put everything and the kitchen think into a language. But if it doesn't fit
>> the lan