Thanks for the quick answer, jamie.
I tried:
{$mode objfpc}{$H+}
{$modeswitch advancedrecords}
...
type
tfoo = record
v : byte;
procedure init;
function getit : byte;
class operator Implicit(a : byte) : tfoo;
end;
But received the error msg : "Error, it is not possible to overload this operator" (pointing to line 10 above).
So I'm still missing something.
Also, if I understand the implicit operator, it is like:
rather than
cheers
S.