Re: [fpc-pascal] Published -> Public

2010-04-17 Thread Marc Weustink
Martin wrote: procedure TChild.Foo; begin inherited; // or: inerithed Foo; // do more end; I thought that in this last case, the compiler would know, that inherited points to TBase.Foo; and the compiler would optimize the code, to call directly (skipping the VMT) ? But I guess I am wro

Re: [fpc-pascal] Published -> Public

2010-04-17 Thread Mattias Gaertner
On Sat, 17 Apr 2010 14:28:16 +0200 Zaher Dirkey wrote: > On Sat, Apr 17, 2010 at 1:08 PM, Mattias Gaertner > wrote: > > On Sat, 17 Apr 2010 13:05:07 +0200 > > Zaher Dirkey wrote: > > > >> 2010/4/17 Flávio Etrusco : > >> > On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: > >> >> Hello FPC-Pa

Re: [fpc-pascal] Published -> Public

2010-04-17 Thread Zaher Dirkey
On Sat, Apr 17, 2010 at 1:08 PM, Mattias Gaertner wrote: > On Sat, 17 Apr 2010 13:05:07 +0200 > Zaher Dirkey wrote: > >> 2010/4/17 Flávio Etrusco : >> > On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: >> >> Hello FPC-Pascal, >> >> >> >> Friday, April 16, 2010, 9:06:45 PM, you wrote: >> >> >>

Re: [fpc-pascal] Published -> Public

2010-04-17 Thread Mattias Gaertner
On Sat, 17 Apr 2010 13:05:07 +0200 Zaher Dirkey wrote: > 2010/4/17 Flávio Etrusco : > > On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: > >> Hello FPC-Pascal, > >> > >> Friday, April 16, 2010, 9:06:45 PM, you wrote: > >> > >> FE> Published methods can be found with TObject.MethodAddress, tha

Re: Re[6]: [fpc-pascal] Published -> Public

2010-04-17 Thread Zaher Dirkey
2010/4/17 Flávio Etrusco : > On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: >> Hello FPC-Pascal, >> >> Friday, April 16, 2010, 9:06:45 PM, you wrote: >> >> FE> Published methods can be found with TObject.MethodAddress, that's how >> FE> the lfm hook event handlers (and why Form event handlers

Re: [fpc-pascal] Published -> Public

2010-04-16 Thread Martin
On 17/04/2010 00:29, Marc Weustink wrote: Flávio Etrusco wrote: On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: Hello FPC-Pascal, Friday, April 16, 2010, 9:06:45 PM, you wrote: FE> Published methods can be found with TObject.MethodAddress, that's how FE> the lfm hook event handlers (an

Re: [fpc-pascal] Published -> Public

2010-04-16 Thread Marc Weustink
Flávio Etrusco wrote: On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: Hello FPC-Pascal, Friday, April 16, 2010, 9:06:45 PM, you wrote: FE> Published methods can be found with TObject.MethodAddress, that's how FE> the lfm hook event handlers (and why Form event handlers are FE> published).

Re: Re[6]: [fpc-pascal] Published -> Public

2010-04-16 Thread Flávio Etrusco
On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: > Hello FPC-Pascal, > > Friday, April 16, 2010, 9:06:45 PM, you wrote: > > FE> Published methods can be found with TObject.MethodAddress, that's how > FE> the lfm hook event handlers (and why Form event handlers are > FE> published). > > Yes, but

Re[6]: [fpc-pascal] Published -> Public

2010-04-16 Thread José Mejuto
Hello FPC-Pascal, Friday, April 16, 2010, 9:06:45 PM, you wrote: FE> Published methods can be found with TObject.MethodAddress, that's how FE> the lfm hook event handlers (and why Form event handlers are FE> published). Yes, but thats for streamable objects like TForm, or any component, but I th

Re: Re[4]: [fpc-pascal] Published -> Public

2010-04-16 Thread Flávio Etrusco
On Fri, Apr 16, 2010 at 8:32 AM, José Mejuto wrote: > Hello FPC-Pascal, > > Friday, April 16, 2010, 8:42:32 AM, you wrote: > > ZD> What useful for put procedure in Publish? > > I do not know :-? I'll ask in the Lazarus list. > > -- > Best regards, >  José > Published methods can be found with TOb

Re[4]: [fpc-pascal] Published -> Public

2010-04-16 Thread José Mejuto
Hello FPC-Pascal, Friday, April 16, 2010, 8:42:32 AM, you wrote: ZD> What useful for put procedure in Publish? I do not know :-? I'll ask in the Lazarus list. -- Best regards, José ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: Re[2]: [fpc-pascal] Published -> Public

2010-04-15 Thread Zaher Dirkey
What useful for put procedure in Publish? On Fri, Apr 16, 2010 at 12:06 AM, José Mejuto wrote: > Hello FPC-Pascal, > > Thursday, April 15, 2010, 11:57:01 PM, you wrote: > >>> TMyClassPublished=class(TObject) >>> published >>>   procedure MyProcedure; virtual; >>> end; >>> And a derived one: >>> T

Re[2]: [fpc-pascal] Published -> Public

2010-04-15 Thread José Mejuto
Hello FPC-Pascal, Thursday, April 15, 2010, 11:57:01 PM, you wrote: >> TMyClassPublished=class(TObject) >> published >> procedure MyProcedure; virtual; >> end; >> And a derived one: >> TMyClassDerived=class(TMyClassPublished) >> public >> procedure MyProcedure; override; >> end; >> Is there a

Re: [fpc-pascal] Published -> Public

2010-04-15 Thread Marc Weustink
José Mejuto wrote: Hello FPC-Pascal, If I have a class like: TMyClassPublished=class(TObject) published procedure MyProcedure; virtual; end; And a derived one: TMyClassDerived=class(TMyClassPublished) public procedure MyProcedure; override; end; Is there any difference in the derived one

[fpc-pascal] Published -> Public

2010-04-15 Thread José Mejuto
Hello FPC-Pascal, If I have a class like: TMyClassPublished=class(TObject) published procedure MyProcedure; virtual; end; And a derived one: TMyClassDerived=class(TMyClassPublished) public procedure MyProcedure; override; end; Is there any difference in the derived one with less visibility