You cannot do this:

Code:
function myfunction(somecrazyinputthingy: array [0..154] of Integer): Integer;
You can only use simple pre-defined types for your arguments. To solve this, just define the type you want:

Code:
TMyCrazyArrayType = array [0..154] of Integer;

function myfunction(somecrazyinputthingy: TMyCrazyArrayType): Integer;
Have a nice day.