Код: Выделить всё
type TMyRecord = record
b: TSomeEnum;
c: TSomeOtherEnum;
d: integer;
end;
procedure proc(v: TMyRecord);
....
//вызов:
proc(????); Модератор: Модераторы
Код: Выделить всё
type TMyRecord = record
b: TSomeEnum;
c: TSomeOtherEnum;
d: integer;
end;
procedure proc(v: TMyRecord);
....
//вызов:
proc(????); Код: Выделить всё
type
rt = record
a,b: Integer;
end;
var
rv: rt;
procedure v(pr: rt);
begin
pr.a:= pr.b;
end;
begin
rv.a:= 15;
v(rv);
writeln(rv.a);
end.
Код: Выделить всё
procedure foo(const a: array of integer);
...
foo([12, 23, 34]);
Код: Выделить всё
TPoint=record
x,y:integer;
end;
function Point(x,y):TPoint;
begin result.x:=x;result.y:=y; end;
//и использовать так
SetPoint(Point(10,20));