[fpc-devel] RTTI and Attributes in Delphi 2010

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Aug 16 13:16:05 CEST 2009


2009/8/16 Michael Van Canneyt <michael at freepascal.org>:
>
> But that needs to be registered separately anyway, because this varies on
> the storage back-end. The object-db mapping should never be in the object
> itself, that is bad design.

+1

And what about classes that can be stored in various backends? For
example, in tiOPF the same class can be stored in CSV, Tab delimited,
XML or any SQL DB - all with a compiler define or parameter to the
application at runtime. Also, foreign keys and primary keys don't mean
anything to XML, CSV etc...


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list