[fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Graeme Geldenhuys
Hi, I searched the ref.pdf document, especially under the class definition section. It doesn't mention anywhere in that document that the Object Pascal language supports the deprecated keyword. PS: Can you mark a whole class as deprecated? As far as I know the deprecated keyword can only be

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Paul Ishenin
Graeme Geldenhuys wrote: I searched the ref.pdf document, especially under the class definition section. It doesn't mention anywhere in that document that the Object Pascal language supports the deprecated keyword. PS: Can you mark a whole class as deprecated? As far as I know the deprecated

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Graeme Geldenhuys
2009/6/1 Paul Ishenin i...@kmiac.ru: I am wondering why not to try? type  TMyClass = class(TObject)  end deprecated; I tried, but get a compiler error. :-( It would be very handy though. Especially in tiOPF (and probably FPC and LCL as well), we have old classes that have since been

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Daniël Mantione
Op Mon, 1 Jun 2009, schreef Graeme Geldenhuys: How do you mark a unit as deprecated? In the user.pdf I have seen many references to units being deprecated (eg: graph, oldlinux, etc), but I have only seen that being mentioned in the documentation. There doesn't seem to be any compiler

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Paul Ishenin
Graeme Geldenhuys wrote: type TMyClass = class(TObject) end deprecated; I tried, but get a compiler error. :-( It would be very handy though. Especially in tiOPF (and probably FPC and LCL as well), we have old classes that have since been renamed or refactored that they are not needed

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Marco van de Voort
In our previous episode, Dani?l Mantione said: How do you mark a unit as deprecated? In the user.pdf I have seen many references to units being deprecated (eg: graph, oldlinux, etc), but I have only seen that being mentioned in the documentation. There doesn't seem to be any compiler

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: As I know you can deprecate any symbol and even unit. http://bugs.freepascal.org/view.php?id=13373 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Ref documentation doesn't mention deprecated keyword

2009-06-01 Thread Graeme Geldenhuys
2009/6/1 Paul Ishenin i...@kmiac.ru: Have you tried as I wrote? My mistake, I typed... type TMyClass = class(TObject) end; deprecated; instead of... type TMyClass = class(TObject) end deprecated; I used deprecated like you do for methods... after the last semi-colon. Seems for