[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

Luiz Americo Pereira Camara luizmed at oi.com.br
Mon Nov 7 17:02:59 CET 2011


On 7/11/2011 07:28, Martin Schreiber wrote:
>
> > One reason is to make it easy for FPC users to reuse existing Delphi
>
> > code that is out there without having to rewrite it in an "FPC-
>
> > compatible way".
>
> >
>
> Is there a big demand? Examples?
>

I speak only for myself.

This is a component that i'd like to see compiled with fpc

http://code.google.com/p/emballo/

The problems
  - generic support: bugs.freepascal.org/view.php?id=20503 . Can be 
workaround by type casting
  - reflection/rtti support to call constructor of a given TClass. Can 
be work around by registering a function that returns an instance or 
using AfterConstruction to setup object instead of the constructor directly

BTW: i will take the old version version of emballo and rewrite it in an 
"FPC compatible way" to get things done in the meantime.

Looking also to http://code.google.com/p/delphi-spring-framework/ and 
http://code.google.com/p/delphi-orm/

Luiz






More information about the fpc-pascal mailing list