[lazarus] Stange error message

Marc Weustink Marc.Weustink at cuperus.nl
Thu Jun 22 11:43:04 EDT 2000


+ From: Robert Scott Horning [mailto:roberth at ise-tlx.com]

+ I'm kinda curious about this construct.  In Delphi, when you
+ declare something
+ like:
+
+ type
+    TMyControl = class(TControl);
+
+ this is a forward class reference, so you can use a reference
+ to a class that hasn't been defined yet.

Nope. A forward declaration is

 type
    TMyControl = class;

[snip]

+ All of these objects have all of the properties and methods
+ of the Exception class (which is a TObject decedent), but
+ there is no need for defining any additional properties
+ or methods (even though you COULD if you really wanted
+ to).

Thats what i wanted.

But the funny thing is the fpc compiler doesnt complain about this. It looks
like it treats your whole implementation as classmembers, and complains that
you can't create vars.

Im working on a example to verify what I think.

Marc






More information about the Lazarus mailing list