Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-02

Compiler warning

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink

HI,

Maybe it's time to go to bed and am I missing something... but can someone explain why the compiler warns if I want to create a virtual constructor in a class derived from TObject ?

debugger.pp(71,6) Warning: An inherited method is hidden by TDEBUGGER.CREATE

Marc

Reply by email

Shane Miller
to Marc Weustink

Shouldn't you do an override or is that what you are trying to do?

Shane

Earlier message 24 lines
----- Original Message ----- From: "Marc Weustink" To: Sent: Wednesday, February 28, 2001 5:44 PM Subject: [lazarus] Compiler warning > HI, > > Maybe it's time to go to bed and am I missing something... but can someone > explain why the compiler warns if I want to create a virtual constructor in > a class derived from TObject ? > > debugger.pp(71,6) Warning: An inherited method is hidden by TDEBUGGER.CREATE > > Marc > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Marc Weustink
to Shane Miller

+ From: Shane Miller
+
+
+ Shouldn't you do an override or is that what you are trying to do?

AFAIK the constructor of TObject isn't virtual.

Now I think of it, maybe it is consequent and does Delphi not complain on this.

Marc

+
+ Shane
+
+ ----- Original Message -----
+ From: "Marc Weustink"
+ To:
+ Sent: Wednesday, February 28, 2001 5:44 PM
+ Subject: [lazarus] Compiler warning
+
+
+ > HI,
+ >
+ > Maybe it's time to go to bed and am I missing something...
+ but can someone
+ > explain why the compiler warns if I want to create a
+ virtual constructor
+ in
+ > a class derived from TObject ?
+ >
+ > debugger.pp(71,6) Warning: An inherited method is hidden by
+ TDEBUGGER.CREATE
+ >
+ > Marc
+ >
+ > _________________________________________________________________
+ > To unsubscribe: mail with
+ > "unsubscribe" as the Subject
+ > archives at http://www.miraclec.com/list_archives/lazarus
+ >
+
+ _________________________________________________________________
+ To unsubscribe: mail with
+ "unsubscribe" as the Subject
+ archives at http://www.miraclec.com/list_archives/lazarus +

Reply by email