Ignore:
Timestamp:
Aug 9, 2010, 12:48:14 PM (14 years ago)
Author:
george
Message:

Support for function definition with result type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/Example.pas

    r46 r47  
    33uses System, Crt;
    44
    5 procedure Pokus(A: Byte);
     5function Max(A, B: Byte): Byte;
    66var
    77  S: Byte;
    88begin
    9   WriteLn;
    10   WriteLn;
     9  if A > B then Result := A
     10  else Result := B;
    1111end;
    1212
Note: See TracChangeset for help on using the changeset viewer.