> In any case,
>
> type
>       TTest = object
>         public
>             AValue: Integer;
>         end;
>
> implementation
> const
>     TTest_Null: TTest
>         = (AValue: 0);
>
> Does not create an object that is readonly.  It is merely a form of
> initialization for the object.  You can still assign to it -
> because you can
> assign to typed constants.

Please note that having a const object with a "long" string in it will cause
an internal compiler error in delphi 5. Softtech had exactly the same
problem, and there is no fix for it to date. Its also stated in the manuals
that the Object "declaration" is no longer supported, and is only there for
legacy support.

N

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to