[fpc-pascal] fpc 2.3.1 doesn't allow to pass literal constants as formal const parameter

Vincent Snijders vsnijders at quicknet.nl
Wed Mar 5 23:29:44 CET 2008


Currently fpc 2.3.1 cannot build lazarus anymore. It fails on lines like
MyStream.Write(' ',1);

The write method is declared as
   function Write(const Buffer; Count: Longint): Longint

Why isn't passing literal constant to a formal const parameter allowed 
anymore?

Vincent



More information about the fpc-pascal mailing list