Re: [fpc-pascal] Errors using Extended Class Syntax

2012-11-24 Thread Jonas Maebe
On 24 Nov 2012, at 17:55, bsquared wrote: > I followed the example on the wiki page, but the compiler disallowed both of > the following attempts. On which wiki page did you find this code? > {$mode objfpc}{$H+} > > TExample1 = class > private > const >CN_CONST = 'EXAMPLE CONSTANT'; > pu

[fpc-pascal] Errors using Extended Class Syntax

2012-11-24 Thread bsquared
Hello, I followed the example on the wiki page, but the compiler disallowed both of the following attempts. {$mode objfpc}{$H+} TExample1 = class private const CN_CONST = 'EXAMPLE CONSTANT'; published property Example: string read CN_CONST; end; Error: Unknown class field or meth