Daniel White wrote:
However, for many people who don't have these readers (and don't want
to try one yet)
Waitin' 'til '91 or so to see if this whole "Internet" thing pans out?
- Gregor Richards
hings to be in
the vtable that aren't functions (but are, for example, a pointer to
some area of globally-accessible-and-writable memory). Then you could
effectively have a sub-vtable. But alas, 'tis not possible :)
- Gregor Richards
Robert Fraser wrote:
Gregor Richards wrote:
I ran into a situation where I needed (essentially) the visitor
pattern, but the visitor pattern sucks, so I wanted to make something
like class extensions instead (that is, methods added to a class
outside of the class definition).
Of course
w B()), if you call
doFoo(new C()) the call will become B_doFoo(new C()).
If anybody has some improvements, that'd be cool. Maybe you can get rid of the
dependence on string mixins ... but I don't think templates quite cut it.
- Gregor Richards
/**
* A lightweight system for class ext
the original post was anything but spam)
- Gregor Richards