"multi morphic" classes
Russell Lewis
webmaster at villagersonline.com
Thu May 1 16:38:25 PDT 2008
I apologize if I'm missing some subtlety, but it seems to me that this
would be pretty straightforward...
How about just building a class by hand using a struct? You declare a
struct type which contains a bunch of function pointers, and each
instance struct has a pointer to that common vtbl. Then you write
wrappers as member functions of the struct, which call the vtbl
functions, pass "this" as the first argument.
More information about the Digitalmars-d
mailing list