-------- Original-Nachricht --------
Betreff: FPC class syntax was extended to support delphi code
Datum: Wed, 13 Jan 2010 21:51:28 +0700
Von: Paul Ishenin <webpirat-JGs/UdohzUI@public.gmane.org>
Antwort an: FPC-Pascal users discussions <fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org>
An: FPC-Pascal users discussions <fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org>
Newsgruppen: gmane.comp.compilers.free-pascal.general
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/clas ... s_examples
Please test and report bugs found.
Best regards,
Paul Ishenin.
_______________________________________________
fpc-pascal maillist - fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk ... .gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal