Seems like codetools parser bug. Try writing it type by type:
type
Tp2pMessageClass = class of Tp2pMessage;
Tp2pMessageClassArray = array [0 .. 1] of Tp2pMessageClass;
const
MsgTypes: Tp2pMessageClassArray = (
...
);
--
View this message in context:
http://free-pascal-lazarus.989080
On 12.07.2011 18:38, leledumbo wrote:
Seems like codetools parser bug. Try writing it type by type:
type
Tp2pMessageClass = class of Tp2pMessage;
Tp2pMessageClassArray = array [0 .. 1] of Tp2pMessageClass;
const
MsgTypes: Tp2pMessageClassArray = (
...
);
Free Pascal supports "
Sven Barth schrieb:
On 12.07.2011 18:38, leledumbo wrote:
Seems like codetools parser bug. Try writing it type by type:
type
Tp2pMessageClass = class of Tp2pMessage;
Tp2pMessageClassArray = array [0 .. 1] of Tp2pMessageClass;
const
MsgTypes: Tp2pMessageClassArray = (
...
);
F
On Tue, Jul 12, 2011 at 7:53 PM, Hans-Peter Diettrich
wrote:
> Sven Barth schrieb:
>>
>> On 12.07.2011 18:38, leledumbo wrote:
>>>
>>> Seems like codetools parser bug. Try writing it type by type:
>>>
>>> type
>>> Tp2pMessageClass = class of Tp2pMessage;
>>> Tp2pMessageClassArray = array [0 ..
Flávio Etrusco schrieb:
Err, why pollute the namespace with an identifier you'll only refer
once?
For clarity? Code is not only written for the compiler, but also for
human readers. Look at the C syntax for type declarations, where some
constructs are nearly unparsable by humans (without pen
On Wed, Jul 13, 2011 at 6:36 AM, Hans-Peter Diettrich
wrote:
> Flávio Etrusco schrieb:
>
>> Err, why pollute the namespace with an identifier you'll only refer
>> once?
>
> For clarity? Code is not only written for the compiler, but also for human
> readers. Look at the C syntax for type declarati
Hans-Peter Diettrich wrote:
Flávio Etrusco schrieb:
Err, why pollute the namespace with an identifier you'll only refer
once?
For clarity? Code is not only written for the compiler, but also for
human readers.
As are comments. Particularly for a rarely-used construct like 'class
of' I thi