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/current/rtl/system/tobject.free.html

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to