On 1 July 2010 10:06, Marco van de Voort wrote: >> code in 2.4.x should FIRST be marked as deprecated for one release (maybe >> even as soon as FPC 2.4.2 seeing that the 'deprecated' hint directive >> doesn't break anything). > > We all know that, but we don't do that for a reason: > > Unit level deprecated is 2.5.1 functionality (r14767 , Mantis 13373)
My apologies, I didn't know unit level deprecated doesn't work in fixes branch. I was just about to comment on this (after I tried it myself and it failed), when I saw your reply. > Still, comments could be added and procedures/methods flagged. I'll take > care of this. I also added to user changes trunk. Maybe adding it as a {$warning This unit is deprecated} will suffice for now, until r14767 is merged with 2.4.x. I just tested {$warning ...} below the 'unit ...;' line, and indeed it does output a warning in the compiler output. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal