2012/1/26 Paul Ishenin <[email protected]>: > 26.01.2012 10:13, silvioprog пишет: > >> In the last test: >> >> function Max<T>(A, B: T): T; >> begin >> if A< B then >> Result := B >> else >> Result := A; >> end; >> >> The error is: unit1.pas(30,13) Fatal: Syntax error, ":" expected but "<" >> found. >> >> What is the syntax for implementing a generic function? I'm trying to >> implement an faster iif function. > > This is not yet implemented in the compiler. > > Best regards, > Paul Ishenin.
Thanks. -- Silvio Clécio ==================================== Site - <silvioprog.com.br> LazSolutions - <code.google.com/p/lazsolutions> ==================================== -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
