Hello, FPC-Pascal users discussions

I want to notify you that fpc trunk has extensions for the class syntax.

Class can have now the next sections:

1. 'var' sections to start regular fields declaration. 'var' can be used after other sections and after methods 2. 'class var' sections to start static fields declaration. Fields delcared in the 'class var' section are static fields 3. 'type' sections to declare types local to a class. It is allowed now to declare nested classes too.
4. 'const' section to declare constants local to a class.
5. 'class property' - similar to regular property but works with static fields and methods

Some examples:
http://wiki.lazarus.freepascal.org/class_extensions_examples

Please test and report bugs found.

Best regards,
Paul Ishenin.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to