[fpc-pascal] Re: Initialization of class field

2012-07-31 Thread leledumbo
I think the fast point from OP point of view is the less typing, less source code. Not from executable point of view. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Initialization-of-class-field-tp5710475p5710478.html Sent from the Free Pascal - General mailin

Re: [fpc-pascal] Initialization of class field

2012-07-31 Thread Sven Barth
On 31.07.2012 14:56, michael.vancann...@wisa.be wrote: On Tue, 31 Jul 2012, Krzysztof wrote: Hi, I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class private FSomeField:

Re: [fpc-pascal] Initialization of class field

2012-07-31 Thread michael . vancanneyt
On Tue, 31 Jul 2012, Krzysztof wrote: Hi, I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class private FSomeField: Integer = 123; end; I always initialize this in overrid

[fpc-pascal] Initialization of class field

2012-07-31 Thread Krzysztof
Hi, I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class private FSomeField: Integer = 123; end; I always initialize this in overrided constructor, but above example is muc