On Dec 31, 2010, at 10:43 AM, Paul Ishenin wrote: > 31.12.2010 7:53, Darius Blaszyk wrote: >> I installed 2.5.1 just to test if it was possible to use static class >> methods or not. Apparently not so it seems. It was a good try, but it >> failed. Thanks anyway for the help and explanation Jonas. > Try {$mode delphi}. > Thanks for the tip Paul. Unfortunately it did not help. See for the results below.
Delphi mode: class -> Error: Incompatible types: got "class TfpgGLApplication.CDisplayFunc; CDecl;" expected "<procedure variable type of procedure;CDecl>" static -> Error: Incompatible types: got "class TfpgGLApplication.CDisplayFunc; CDecl; Static;" expected "<procedure variable type of procedure;CDecl>" ObjFPC mode: class -> Error: Incompatible types: got "<class method type of procedure of object;CDecl>" expected "<procedure variable type of procedure;CDecl>" static -> Error: Incompatible types: got "<class method type of procedure of object;CDecl>" expected "<procedure variable type of procedure;CDecl>" I was surprised that under objfpc there is no difference in error message. Regards, Darius_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal