Want to see what people are talking about? See the latest forum posts.

View \TEST1.PAS

Dumps TP 6.0 and TPW 1.0 format files.

Submitted By: Unknown
Rating: (Not rated) (Rate It)


{$N+} unit test1;

interface

type
  type1 = array[1..5] of byte;

  type2 = record
    b1 : byte;
    b2 : byte;
  end;

  type3 = object
    b1 : byte;
    b2 : byte;
    constructor c(a1,a2:byte);
    destructor  d;
    procedure m;
    procedure v; virtual;

    private

    pb1 : byte;
    procedure pm;
    procedure pv; virtual;
  end;

  type4 = file of byte;

  type5 = text;

  type6 = function : byte;

  type7 = set of byte;

  type8 = ^byte;

  type9 = string;

  type10 = comp;

  type11 = real;

  type12 = 1..6;

  type13 = boolean;

  type14 = char;

  type15 = (red, green, blue);

var
  v : byte;
  a : word absolute v;
const
  tc : byte = 1;
  { These constants should all be printable }
  i = 1;
  b = true;
  s = 'This is a string';
  f = 1.23;
  c = 'A';

procedure proc(v : byte; var r : byte);

function  fun(v : byte; var r : byte) : byte;

implementation
    constructor type3.cbegin write('1') end;
    destructor  type3.dbegin write('12') end;
    procedure   type3.mbegin write('123') end;
    procedure   type3.vbegin end;
    procedure   type3.pm; begin end;
    procedure   type3.pv; begin end;
    procedure   proc;
    var
      a : word absolute v;
    begin end;
{$i test1.inc}
end.
 
corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.