I thought I had them working in FPC before... tried to do it in one of my programs and it's a no-go; so I went right to the horses mouth.
http://www.freepascal.org/docs-html/...2-14200011.4.1
Their example code
Will NOT compile here in 2.4.4 -- Win 7 x64 in either the x64 or x86 versions of the compiler.Code:program testp; Const MyConst = 20; Procedure MyRealFunc(I : Integer = MyConst); begin Writeln('Function received : ',I); end; begin MyRealFunc; end.
test.pas(6,34) Fatal: Syntax error, ")" expected but "=" found
I really don't want to have to write two versions of the same function on this.
Bookmarks