Re: [fpc-pascal] access violation?

2018-07-26 Thread Victor Campillo
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

Re: [fpc-pascal] access violation?

2018-07-26 Thread Michael Van Canneyt
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

[fpc-pascal] access violation?

2018-07-26 Thread Ryan Joseph
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 ___

Re: [fpc-pascal] Generics - extending TFPGObjectList

2018-07-26 Thread Sven Barth via fpc-pascal
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 =

Re: [fpc-pascal] Generics - extending TFPGObjectList

2018-07-26 Thread Vojtěch Čihák
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

Re: [fpc-pascal] Syntax changes suggestions

2018-07-26 Thread R0b0t1
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