[lazarus] Is NIL constant?

Marc Weustink marc.weustink at cuperus.nl
Thu Sep 25 08:23:53 EDT 2003


+ From: DMo2 [mailto:madarzoo at o2.pl]
+ Sent: woensdag 24 september 2003 20:58
+ 
+ I can't compile program like this
+ LINE 218:
+     property Bitmap: TBitmap read FBitmap write SetBitmap default nil;
+ 
+ (218,67) Error: Property can't have a default value

If I recall it correctly, you can't use the default clause.

+ (218,70) Error: The default value of a property must be constant
+ 
+ I suppose that declaration of  NIL is different

It has nothing to do with nil.

 
+ I can remove this, but I want know why?
+ 

Marc






More information about the Lazarus mailing list