Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Michael Van Canneyt
On Sun, 16 Aug 2009, Graeme Geldenhuys wrote: Just thought I would let you know... http://www.malcolmgroves.com/blog/?p=476 Hm Website not accessible. Can you give us the gist of what is so interesting ? Michael. ___ fpc-devel maillist -

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Just thought I would let you know... http://www.malcolmgroves.com/blog/?p=476 Hm Website not accessible. Can you give us the gist of what is so interesting ? Has been hinted at several times, so I can make an educated guess: The

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Michael Van Canneyt mich...@freepascal.org: Website not accessible. Can you give us the gist of what is so interesting ? Weird. Anyway, I placed the web page content in a OpenDocument Text format available at: http://opensoft.homeip.net/~graemeg/rtti_and_attributes.odt Hope that

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Paul Ishenin
Graeme Geldenhuys wrote: Just thought I would let you know... http://www.malcolmgroves.com/blog/?p=476 This reminds me our previos discussion about property attributes: http://wiki.lazarus.freepascal.org/Property_attributes Best regards, Paul Ishenin.

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Just thought I would let you know... http://www.malcolmgroves.com/blog/?p=476 Hm Website not accessible. Can you give us the gist of what is so interesting ? I had that too, but later it worked. Now I've also seen the syntax, and I

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Marco van de Voort mar...@stack.nl: I had that too, but later it worked. Now I've also seen the syntax, and I think sb should explain those Delphi devels that in C-like languages function modifiers come BEFORE the declaration, and in Pascal AFTER :-) Very true! Now lets see what

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Michael Van Canneyt
On Sun, 16 Aug 2009, Graeme Geldenhuys wrote: 2009/8/16 Michael Van Canneyt mich...@freepascal.org: Website not accessible. Can you give us the gist of what is so interesting ? Weird. Anyway, I placed the web page content in a OpenDocument Text format available at:

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: It does, thank you. However, it's not so spectacular: Attributes are simply old .NET stuff they ported to Win32. Seems they had to use a workaround through an attribute class. I never understood the need for it. RTTI is more than

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Michael Van Canneyt mich...@freepascal.org: I never understood the need for it. RTTI is more than enough for 99.99% of the cases. I agree 100%. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Paul Ishenin
Michael Van Canneyt wrote: I never understood the need for it. RTTI is more than enough for 99.99% of the cases. Imagine you have a db framework which maps delphi classes to database tables. It reads class properties from the rtti and creates db tables automatically. For example: TStudent =

[fpc-devel] patch to call DoneKeyboard in the exitproc of the drivers unit

2009-08-16 Thread Nikolay Nikolov
Does anyone have an idea why the call to DoneKeyboard was previously commented? It leaves the keyboard in a bad state if the IDE crashes. Index: packages/fv/src/drivers.pas === --- packages/fv/src/drivers.pas (revision 13526) +++

Re: [fpc-devel] patch to call DoneKeyboard in the exitproc of the drivers unit

2009-08-16 Thread Jonas Maebe
On 16 Aug 2009, at 12:15, Nikolay Nikolov wrote: Does anyone have an idea why the call to DoneKeyboard was previously commented? It leaves the keyboard in a bad state if the IDE crashes. It was changed in revision 3443, whose log message says: r3443 | daniel | 2006-05-07 00:57:20 +0200

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: I never understood the need for it. RTTI is more than enough for 99.99% of the cases. Imagine you have a db framework which maps delphi classes to database tables. It reads class properties from the rtti and creates db tables automatically.

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Michael Van Canneyt
On Sun, 16 Aug 2009, Paul Ishenin wrote: Michael Van Canneyt wrote: I never understood the need for it. RTTI is more than enough for 99.99% of the cases. Imagine you have a db framework which maps delphi classes to database tables. It reads class properties from the rtti and creates db

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Paul Ishenin webpi...@mail.ru: Imagine you have a db framework which maps delphi classes to database tables. It reads class properties from the rtti and creates db tables automatically. tiOPF has metadata classes to do just this, but in both cases they work only well if you have

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Michael Van Canneyt mich...@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

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Paul Ishenin
Marco van de Voort wrote: I know what .NET uses it for, but that was not the question. The question is why does this have to be solved using a language construct? Why can't you simply register the Object-Relation mapping somewhere else? Because it is a more natural way. I want to give full

Re: [fpc-devel] patch to call DoneKeyboard in the exitproc of the drivers unit

2009-08-16 Thread Daniël Mantione
Op Sun, 16 Aug 2009, schreef Jonas Maebe: On 16 Aug 2009, at 12:15, Nikolay Nikolov wrote: Does anyone have an idea why the call to DoneKeyboard was previously commented? It leaves the keyboard in a bad state if the IDE crashes. It was changed in revision 3443, whose log message says:

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Michael Van Canneyt
On Sun, 16 Aug 2009, Graeme Geldenhuys wrote: 2009/8/16 Michael Van Canneyt mich...@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

Re: [fpc-devel] patch to call DoneKeyboard in the exitproc of the drivers unit

2009-08-16 Thread Nikolay Nikolov
On 08/16/2009 03:22 PM, Daniël Mantione wrote: Op Sun, 16 Aug 2009, schreef Jonas Maebe: On 16 Aug 2009, at 12:15, Nikolay Nikolov wrote: Does anyone have an idea why the call to DoneKeyboard was previously commented? It leaves the keyboard in a bad state if the IDE crashes. It was

Re: [fpc-devel] patch to call DoneKeyboard in the exitproc of the drivers unit

2009-08-16 Thread Daniël Mantione
Op Sun, 16 Aug 2009, schreef Nikolay Nikolov: On 08/16/2009 03:22 PM, Daniël Mantione wrote: Op Sun, 16 Aug 2009, schreef Jonas Maebe: On 16 Aug 2009, at 12:15, Nikolay Nikolov wrote: Does anyone have an idea why the call to DoneKeyboard was previously commented? It leaves the

Re: [fpc-devel] Questions regarding PostgreSQL support in SqlDB

2009-08-16 Thread Joost van der Sluis
Op zaterdag 08-08-2009 om 19:03 uur [tijdzone +0200], schreef Graeme Geldenhuys: 1..) In the function TPQConnection.GetSchemaInfoSQL(..) there is the following SQL statements. * First off, this statement doesn't return a single row when I run it directly in psql or pgAdmin III. * Why are

[fpc-devel] csInlin how is it suppossed to work?

2009-08-16 Thread Martin
Paul Ishenin wrote: Martin wrote: http://bugs.freepascal.org/view.php?id=14364 saving frames with anchorsides (or rather the inability of doing so) Either we do something wrong with csInline flag or it is a but in the FPC. Best regards, Paul Ishenin. Yes it is strange. I

Re: [fpc-devel] Questions regarding PostgreSQL support in SqlDB

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Joost van der Sluis jo...@cnoc.nl: But it's this way because nobody looked at it before, and all those things like column_datatype are effectively used by no-body, afaik. But patches are welcome. (The only reason this function is implemented at all is that it is used by

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Michael Van Canneyt mich...@freepascal.org: That's what I meant with 'this varies on the storage back-end.'... :-) I was agreeing with you. I simple wanted to explain it a bit clearer to other readers. Many always assume RDBMS are used - which is not always the case. Regards, -

Re: [fpc-devel] RTTI and Attributes in Delphi 2010

2009-08-16 Thread Graeme Geldenhuys
2009/8/16 Paul Ishenin webpi...@mail.ru: Currently RTTI is very limited - using it you can only enumerate published members, learn their types and default values (for properties). Attributes completely eliminates limitations. Explain limitations? Surely you do not want any foreign class to