bg5
2014-06-21 16:36:27
I'm not familiar with Lape, so it's my first try:
bam!
It looks like Self.property works on local copy, not on object itself? How can I do what I want?
program new;
type TCol = record
col, tol, cts :integer;
hue, sat : extended;
end;
procedure TCol.Create(Col, Tol, CTS : integer; hue, sat: extended);
begin
Self.col := Col;
Self.Tol := Tol;
Self.cts := CTS;
Self.hue := hue;
Self.sat := sat;
end;
procedure TCol.Create(Col, Tol, CTS : integer); overload;
begin
Self.col := Col;
Self.Tol := Tol;
Self.cts := CTS;
end;
var
CopperCl : TCol;
begin
CopperCl.Create( 3880739 , 7 , 2 , 0.37 , 0.64 );
writeln(CopperCl);
end. bam!
Compiled successfully in 468 ms.
{COL = 0, TOL = 0, CTS = 0, HUE = 0, SAT = 0}
Successfully executed.It looks like Self.property works on local copy, not on object itself? How can I do what I want?