madTypes Unit 

Content / madBasic /...
www.madshi.net

You surely know these situations where you create a new function, which needs e.g. a "^whatever" type. But the only such predefined type (I know of) is windows.PInt, which is "^integer". So if you need any other type, you have to define it yourself. And that in every unit over and over again. Being tired of that I decided to make a collection of the most useful type variations. The unit "madTypes" consists of nothing but such standard type definitions.

The madTypes Reference contains a list of all types I've defined.

The names of the types follow a specific logic, which is:

type
  TPWhatever   = ^whatever;

  TSWhatever   = set of whatever;
  TPSWhatever  = ^TSWhatever;

  TAWhatever   = array [0..highestPossibleIndex] of whatever;
  TPAWhatever  = ^TAWhatever;

  TDAWhatever  = array of whatever;
  TPDAWhatever = ^TDAWhatever;

I've sorted the types into the following categories:

Categories
Boolean Char Unsigned Ordinal Signed Ordinal Pointer String IUnknown