> Hi > > FPC seems to allow the 'deprecated' keyword after a method > declaration, but what exactly does the compiler do with that keyword? > I don't see any special messages or anything from the compiler. > > I think at compile time the compiler should raise a warning wherever > that deprecated method is used somewhere. > > The deprecated keyword could be used in frameworks or libraries > designed with Free Pascal and that get maintained over many years. As > code evolves, things change. I think this will be very handy for > developers giving them a early warning to update their code without > breaking it.
The compiler should emit a warning when the identifier is used. If it doesn't then it is a bug. Example output: dos.pp(407,57) Warning: Symbol "StatFS" is deprecated Peter _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
