> So, at this moment I know that I can:
>
> 1. Use a safe, magic and efficient way, but I need to know if it exists;
> 2. Create a "light" instance using vfooclass.NewInstance method;
> 3. hack the vmt.
>
> Which approach do you use?
I have worked with a bespoke OPF a few years ago. The way we got
Hello Matt, thanks for your fast input.
Matt Emson wrote:
Any idea how I know if a class, in a class pointer, overrides a virtual
method? Eg:
vfooclass := tboo1;
// vfooclass doesn't implement sample.
vfooclass := tboo2;
// vfooclass implements sample.
You need to implement a virtual m
> Any idea how I know if a class, in a class pointer, overrides a virtual
> method? Eg:
> vfooclass := tboo1;
> // vfooclass doesn't implement sample.
>
> vfooclass := tboo2;
> // vfooclass implements sample.
You need to implement a virtual method, even if it does nothing. Are you
sure you're
Hello,
Any idea how I know if a class, in a class pointer, overrides a virtual
method? Eg:
tfooclass = class of tfoo;
tfoo = class
procedure sample; virtual;
end;
tboo1 = class(tfoo)
end;
tboo2 = class(tfoo)
procedure sample; override;
end;
...
vfooclass := tboo1;
// vfooclass doesn'