Autor Beitrag
Maweki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 197

Ubuntu Linux
Lazarus
BeitragVerfasst: Mi 11.05.05 17:40 
Hallo
Ich hab mal in System.Pas reingeschnarcht, und dabei fiel mir folgendes auf:
dort ist, obwohl die InlineHilfe von Delphi mir das sagt, die prozedur Inc() und die prozedur Dec() nicht deklariert.

Werden dir direkt vom Compiler interpretiert oder stehen die wo ganz woanders??
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Mi 11.05.05 17:43 
Es gibt keine konkrete Implementierung von Inc und Dec in der system.pas. Das ist "Compiler-Magic". Der Befehl wird nach Möglichkeit durch den direkten Assembler-Befehl ersetzt. Ein echter Funktionsaufruf würde das Programm unnötig verlangsamen.