Free Consulting
Free Consulting

Reputation: 4402

Syntax specification for hint directives

Everyone knows about hint directives. However from reviewing various modules, i learned what, for example, deprecated accepts string -literal- to be emitted in the same manner $MESSAGE does:

procedure StinkStr(S: string); deprecated 'You are unemployed now.'; 

However, documentation being modestly silent about that (highest version i have my hands on is D2010) and i hate guesswork in exact sciences - the questions are:

Correction: accepts string literals only, refuses constants (a la external).


Current findings: D210 chokes on string literals accompanying any hint directive other than deprecated, also eats the hint if unit is marked with it.

Upvotes: 5

Views: 1544

Answers (1)

Malcolm Groves
Malcolm Groves

Reputation: 781

It's documented here http://docwiki.embarcadero.com/RADStudio/en/Deprecated

As the comments mention above, it seems to have been introduced in Delphi 2009. Another reference is http://www.tindex.net/Language/deprecatedwithcomment.html

Upvotes: 4

Related Questions