[fpc-pascal] TypInfo Error: type identifier not allowed here

2006-10-27 Thread Graeme Geldenhuys
Why do I get this error? /tiOPF/UnitTests/Common/tiDUnitUtils.pas(231,32) Error: type identifier not allowed here It works on other enumerated declarations, but not on this one. I am pretty sure this code worked before, as I have been using tiOPF under FPC since December 2005. I marked the loca

[fpc-pascal] Re: TypInfo Error: type identifier not allowed here

2006-10-27 Thread Graeme Geldenhuys
Yet if I don't use the GetEnumName inline, it works!?!? For example, I call GetEnumName and store the result in a string variable, and then use it in the Check() method. Oh, and Check() is define as follows; class procedure Check(pValue: boolean; pMessage: string = ''); procedure TtiTestCas

Re: [fpc-pascal] Order of {$H+} and OBJFPC

2006-10-27 Thread Peter Vreman
>> I have noticed that too.. >> >> I changed the order in about 60 files in my project... :) >> >> It would be nice if {$mode objfpc} makes {$H+} automatic... > > It has been considered once, but I can't remember why it was > not put in effect, there was some reason, but I don't recall why :( Brea