[fpc-pascal] Quick Modern Object Pascal Introduction, for Programmers

Michalis Kamburelis michalis.kambi at gmail.com
Tue Jun 21 09:02:10 CEST 2016

2016-06-20 6:16 GMT+02:00 Dennis Poon <dennis at avidsoft.com.hk>:
> May I suggest the addition of :
> 1) user defined operator?

Added. I had it on my TODO list already:) See it here:

I documented also overriding operators for classes and records, and
mentioned the need for "class operator" on records to be able to work
with TFPGList and such.

> 2) use of ClassType function for cloning objects

I added two things:

- A section about TPersistent.Assign. This is the "basic approach to
cloning" that should probably be shown first. See it here:
. I mentioned the special rules when calling the "inherited" from
Assign overrides, and AssignTo, and the fact that TPersistent makes
the default visibility "published".

- And the ClassType, with the example of Clone method using it, is
added at the desciption of "class references" on


More information about the fpc-pascal mailing list