Message directive

by Radek Červinka 20. December 2010 00:22

Sometimes is important to insert information to source code that displays during compilation. For this Delphi has $Message directive surprisingly with the parameters.

Syntax: {$MESSAGE HINT|WARN|ERROR|FATAL 'string' }

More...

Tags:

Language

Again inline optimalization

by Radek Červinka 25. September 2010 00:12

So small comment for inline optimalization. This time inspired by Allen Bauer and I never know about this before..

For example this "good" code:

    1program InlineTest;
    2{$APPTYPE CONSOLE}
    3{$O+}
    4uses
    5  SysUtils;
    6
    7var
    8  s : string;
    9begin
   10  s:= 'Test';
   11  writeln(s);
   12  writeln(Length(s));
   13end.

More...

Tags: , ,

Optimalization