Sign in Join
Wiki copytemporary

Hint Directives/fi

English · Français · Suomi

Kääntäjän ohjeet (Hint Directives)

Aina kun kääntäjä myöhemmin havaitsee tunnisteen joka oli merkitty kääntäjän ohjeella, näyttöön tulee varoitus, joka vastaa määritettyä vihjettä.

Seuraavassa on esimerkkejä:

pascal
Const  
  AConst = 12 deprecated;  
 
var  
  p : integer platform;  
 
Function Something : Integer; experimental;  
 
begin  
  Something:=P+AConst;  
end;  
 
begin  
  Something;  
end.

Tälläinen koodi johtaa seuraaviin tuloksiin:

pascal
testhd.pp(11,15) Warning: Symbol "p" is not portable  
testhd.pp(11,22) Warning: Symbol "AConst" is deprecated  
testhd.pp(15,3) Warning: Symbol "Something" is experimental

Kääntäjän ohjeet (Hint Directives) voivat seurata kaikenlaisia ​​tunnisteita: käännösyksiköitä (unit),vakioita (constant), tyyppejä (type), muuttujia (variable), funktioita (function) ja aliohjelmia (procedure).


From the Free Pascal wiki, page "Hint Directives/fi", as it stood on 2020-02-17 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.