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
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
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:
>> >>
>>
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
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
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
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).
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
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
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
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://
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
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
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
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
15 matches
Mail list logo