[fpc-devel] RTTI generating

2014-09-19 Thread Adriaan van Os
This is a copy of a post on the macpascal mailing list, where it was suggested to re-ask on the fpc-devel list. - The RTTI generating logic in the FPC compiler puzzles me Chapter 40 of FreePascal Run-Time Library Reference guide describes the typinfo unit. It says ; The TypeInfo

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Michael Van Canneyt
On Fri, 19 Sep 2014, Adriaan van Os wrote: This is a copy of a post on the macpascal mailing list, where it was suggested to re-ask on the fpc-devel list. - The RTTI generating logic in the FPC compiler puzzles me Chapter 40 of FreePascal Run-Time Library Reference guide

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
On Fri, 19 Sep 2014, Adriaan van Os wrote: Your remarks seem to imply that you think RTTI can be used to inspect any aspect of an object. It was/is not meant for that. Quite incorrect. All languages with modern RTTI allow for full object inspection, and that includes Delphi 2010 and

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Jonas Maebe
On 19/09/14 22:49, Boian Mitov wrote: On Fri, 19 Sep 2014, Adriaan van Os wrote: Your remarks seem to imply that you think RTTI can be used to inspect any aspect of an object. It was/is not meant for that. Quite incorrect. All languages with modern RTTI allow for full object

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hi Jonas, I am sorry if I have misinterpreted the meaning of the message. I am just terribly frustrated with the overall state of the FPC :-( . I even offered to donate our enhanced RTTI API to the FPC community with very little interest so far :-( . I really want FPC/Lazarus to become a real

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hi Silvio, That was not the case when I checked last time ~3-4 months ago :-( . With best regards, Boian Mitov --- Mitov Software www.mitov.com --- From: silvioprog Sent: Friday,

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Ralf Quint
On 9/19/2014 2:38 PM, Boian Mitov wrote: Hi Jonas, I am sorry if I have misinterpreted the meaning of the message. I am just terribly frustrated with the overall state of the FPC :-( . Well, what frustrates me is that there are always people that come up with all kinds of fancy

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hmm I read the original message again, and I see it exactly in the same way. It simply seems to state that the RTTI in FPC is what it is, because at the time when they looked at Delphi ( D7 ? ), it was how the RTTI was done. A lot has changed since then however in Delphi, and FPC seems to

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Me too! With best regards, Boian Mitov --- Mitov Software www.mitov.com --- -Original Message- From: Ralf Quint Sent: Friday, September 19, 2014 2:50 PM To:

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Sven Barth
Am 19.09.2014 23:39 schrieb Boian Mitov mi...@mitov.com: I even offered to donate our enhanced RTTI API to the FPC community with very little interest so far :-( . Your API would be welcome, but it's of no use when we don't yet generate the data your API relies on. And implementing that takes a

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hi Sven, Thank you! This is all great news. I perfectly understand, and I also support some open source projects. However the dynamic packages have been in the works for at least 5-6 years if I recall. If the product does not catch up on at least some of those items, it simply will become

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Hans-Peter Diettrich
Boian Mitov schrieb: On Fri, 19 Sep 2014, Adriaan van Os wrote: Your remarks seem to imply that you think RTTI can be used to inspect any aspect of an object. It was/is not meant for that. Quite incorrect. All languages with modern RTTI allow for full object inspection, and that includes

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hi Hans, I am sorry to disagree with you. The attributes in particular allow you to do real magic, and reduce your code by at least 4 times, and speed up your development up to 10 times. We have done that in Delphi. I actually did a session in the PasCon few days on that. Here is example:

[fpc-devel] Question about local variables initialization

2014-09-19 Thread Gennady Agranov
Hi, I do not have clear picture about initialization of local variables - are they initialized to some default value or not - and is there a way to assure that every local variable (including record types) is set to some default? Of course the safest approach is to assume that everything

Re: [fpc-devel] RTTI generating

2014-09-19 Thread silvioprog
On Fri, Sep 19, 2014 at 9:08 PM, Boian Mitov mi...@mitov.com wrote: Hi Hans, I am sorry to disagree with you. +1. The attributes in particular allow you to do real magic, and reduce your code by at least 4 times, and speed up your development up to 10 times. I tested the new RTTI in

Re: [fpc-devel] RTTI generating

2014-09-19 Thread Boian Mitov
Hi Silvio, Please contact me at mi...@mitov.com, and I will send it to you. It is for XE4 and higher only however since older XE versions have some compiler issues. It is a new API design from the ground up, making everything extremely easy to do, fixing some hierarchy design bugs in the Emb.

Re: [fpc-devel] RTTI generating

2014-09-19 Thread silvioprog
On Sat, Sep 20, 2014 at 12:56 AM, Boian Mitov mi...@mitov.com wrote: Hi Silvio, Please contact me at mi...@mitov.com, and I will send it to you. It is for XE4 and higher only however since older XE versions have some compiler issues. It is a new API design from the ground up, making