I've written this piece of code
...
type
def_dip_value=record
dip_val:word;
dip_name:string;
end;
tdef_dip=record
mask:word;
name:string;
number:byte;
dip:array of def_dip_value;
end;
...
Everything goes fine, but when I try to declare some const like this...
const
my_dip:array [0..1] of tdef_dip=(
(mask:$f;name:'name1';number:16;dip:[(dip_val:$2;dip_name:'name1'),(dip_val:$5;dip_name:'name2')]),
(mask:$10;name:'name2';number:2;dip:[(dip_val:$10;dip_name:'name3'),(dip_val:$0;dip_name:'name4')])
);
...
Cannot compile, delphi fails with error 'Undeclared identifier: 'dip_val'
I've tested the same code on Free Pascal and works fine, so, what I'm doing wrong? Any idea?