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 = (
     ...
   );

Free Pascal supports "class of" in declarations while Delphi does not, but it's a seldom used feature so the developers of the code tools might not have noticed that problem at all :)

IMO this "comfort" is a misfeature, that bloats the compiler and all other parsers. It has not been introduced in Delphi for good reason.

DoDi


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to