You can declare all kind of methods for normal records in Delphi now.
The implicit operator is called when you try to assign a type to another like this:
[pascal]
var a: type1;
b: type2;
begin
a := b;
end;
[/pascal]
Here either class operator type1.implicit(right: type2): type1; or type2.implicit(right: type2): type1; will be called
Explicit will be called when you try to cast a type to another in the same style. Naturally explicit will be easier to control and predict but it'll be more work using it
Bookmarks