> 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
- [DUG]: Advanced Delphi course Antony Gardiner
- RE: [DUG]: Advanced Delphi course Jason Coley
- [DUG]: Declare const object leigh
- Re: [DUG]: Declare const object Aaron Scott-Boddendijk
- Re: [DUG]: Declare const object leigh
- Re: [DUG]: Declare const obj... Aaron Scott-Boddendijk
- Re: [DUG]: Declare const... leigh
- RE: [DUG]: Declare c... Dennis Chuah
- Re: [DUG]: Declare c... Nic Wise
- Re: [DUG]: Declare c... Aaron Scott-Boddendijk
- Re: [DUG]: Declare const obj... Aaron Scott-Boddendijk
- RE: [DUG]: Declare const obj... Cory Shanks
- Re: [DUG]: Advanced Delphi course patrick . dunford
- RE: [DUG]: Advanced Delphi course Cory Shanks
- RE: [DUG]: Advanced Delphi course Tony Sinclair
- RE: [DUG]: Advanced Delphi course Antony Gardiner
- Re: [DUG]: Advanced Delphi course Eamon Reyn
- RE: [DUG]: Advanced Delphi course Nahum Wild
- RE: [DUG]: Advanced Delphi course Blackie, Nikolai