[fpc-pascal] deprecated syntax is inconsistent.
    Graeme Geldenhuys 
    graemeg.lists at gmail.com
       
    Thu Apr 29 10:41:57 CEST 2010
    
    
  
Hi,
Why is the usage of 'deprecated' inconsistent, depending where you use it.
I'm using the ObjFPC compiler mode.
  TRGBTriple = record
    Red: word;
    Green: word;
    Blue: word;
    Alpha: word;
  end deprecated;        // <<- Note: no semi-colon after 'end'.
vs
  TRGBTriple = record
    Red: word;
    Green: word;
    Blue: word;
    Alpha: word;
  end; deprecated;
The last example makes more sense because it is a type of hint/modifier
(similar to override, virtual etc), and that is how it is used in
functions/procedures?
eg:
  procedure MyProc; deprecated;
  function CalcMe(AParam: integer): boolean; deprecated;
Regards,
  - Graeme -
-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
    
    
More information about the fpc-pascal
mailing list