Hi all,

Lazarus auto generated the following code for my class:

procedure TPainter.SetFont(AValue: TFont);
begin
  if FFont=AValue then Exit;
  FFont:=AValue;
end;

My question is, why the "if" clause needed? Is there any performance benefits?

Thanks,
Shannon
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to