[fpc-pascal] deprecated syntax is inconsistent.

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Apr 29 11:38:37 CEST 2010

Jonas Maebe het geskryf:
> Conversely, adding it before the semicolon in case of procedure/ 
> function declarations would be inconsistent with how other modifiers  
> have always been used there.

I don't have problems with it's usage in procedures, functions or methods.
The modifier appearing after the semicolon seems like the correct syntax,
and that is how 'virtual', 'override' etc is used. This I think is correct
and should stay as is.

The issue I do have is using deprecated in a type declaration, where it
appears *before* the semicolon. This just doesn't look or feel right. It
affects variable, class and record declarations. This is what I was talking
about and think should be fixed in objfpc mode and inconsistent usage
limited to only delphi mode.

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list