Re: Calling class methods by pointers

2010-11-22 Thread wrzosk
On 23.11.2010 01:22, Jesse Phillips wrote: wrzosk Wrote: The problem i see is that in funcptr there is real entry point for method used, not the index in virtual table, so the polymorphism can't work with that. As I have written - i don't know whether it is correct use for delegate. Possibly t

Re: Calling class methods by pointers

2010-11-22 Thread Jesse Phillips
wrzosk Wrote: > The problem i see is that in funcptr there is real entry point for > method used, not the index in virtual table, so the polymorphism can't > work with that. > > As I have written - i don't know whether it is correct use for delegate. > Possibly the ptr, funcptr should be both

Calling class methods by pointers

2010-11-22 Thread wrzosk
Is there any way to save pointer to class method, and call it later? I know about ptr, and funcptr properties of delegates. I tried to change ptr and or funcptr manually after delegate was obtained. It worked in some situations. I don't know if it is a correct use of delegate: import std.writ