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

2016-06-21 Thread Michalis Kamburelis
2016-06-21 12:14 GMT+02:00 Marco van de Voort : > In our previous episode, Michalis Kamburelis said: >> >> - A section about TPersistent.Assign. This is the "basic approach to >> cloning" that should probably be shown first. See it here: >> http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_int

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

2016-06-21 Thread Marco van de Voort
In our previous episode, Michalis Kamburelis said: > > - A section about TPersistent.Assign. This is the "basic approach to > cloning" that should probably be shown first. See it here: > http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html#_cloning_tp

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

2016-06-21 Thread Michalis Kamburelis
> |I remember someone once asked whether we should override the method Assign > or AssignTo.| > |I am worried, choosing the wrong method to override will produce unexpected > result.| The AssignTo is only used by TPersistent.Assign, so it's a "fallback" --- if class A cannot copy *from* B, then As

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

2016-06-21 Thread Dennis Poon
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: http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.ht

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

2016-06-21 Thread Michalis Kamburelis
2016-06-20 14:30 GMT+02:00 Marcos Douglas : > Don't agree with "Ugly (COM) interfaces". Yeah, _AddRef, _Release, > QueryInterface is ugly implementation but reference-counting mechanism > is nice. > Reference-counting is a useful concept, but "entangling" it with interfaces is somewhat ugly IMHO.

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

2016-06-21 Thread Michalis Kamburelis
2016-06-20 11:44 GMT+02:00 Mark Morgan Lloyd : [...] > I'd suggest warning readers early about "dangling else", and using otherwise > rather than else in the case examples. As for dangling else - good idea, I added a text and example mentioning it briefly at the of http://michalis.ii.uni.wroc.

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

2016-06-21 Thread Michalis Kamburelis
2016-06-20 6:16 GMT+02:00 Dennis Poon : > May I suggest the addition of : > 1) user defined operator? Added. I had it on my TODO list already:) See it here: http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html#_operator_overloading . I documented als

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

2016-06-20 Thread Marcos Douglas
On Sun, Jun 19, 2016 at 3:26 AM, Michalis Kamburelis wrote: > > Hi, > > So, I wrote a document describing (quickly!) many features of the > modern Object Pascal:) > > Read on: > > http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html > > http://michali

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

2016-06-20 Thread Sven Barth
Am 20.06.2016 11:56 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: > There's a few places where a native English author would have done things a bit differently. For example, in most places "Castle Game Engine" would probably be prefixed by "the", and also "it allows [something,

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

2016-06-20 Thread Mark Morgan Lloyd
Michalis Kamburelis wrote: Hi, So, I wrote a document describing (quickly!) many features of the modern Object Pascal:) Read on: http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduct

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

2016-06-19 Thread Dennis Poon
May I suggest the addition of : 1) user defined operator? 2) use of ClassType function for cloning objects Dennis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2016-06-19 Thread Dennis Poon
Michalis Kamburelis wrote: Hi, So, I wrote a document describing (quickly!) many features of the modern Object Pascal:) Read on: http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introdu

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

2016-06-19 Thread Sandro Cumerlato
Thank you Michalis, I really appreciated your work. Well done! Sandro Cumerlato ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal