[lazarus] Is NIL constant?

DMo2 madarzoo at o2.pl
Thu Sep 25 10:05:32 EDT 2003



----- Original Message ----- 
From: "Marc Weustink" <marc.weustink at cuperus.nl>
To: <lazarus at miraclec.com>
Sent: Thursday, September 25, 2003 1:30 PM
Subject: RE: [lazarus] Is NIL constant?


> + 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.

But why not with TBitmap, with other properties  I may use default value
> 
> + (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.

Maybe TBitmap is different, I can't see it

> 
>  
> + I can remove this, but I want know why?
> + 
> 
> Marc
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives


Darek






More information about the Lazarus mailing list