User loginNavigation |
archivesDynamic inheritance?Consider class C that inherits from class B in a (statically) typed language. I would like to extend, at runtime, an instance of type B to type C:
B b = new B();
Assert(b is B);
b.Method(); // invokes B.Method()
extend b to C(); // partial constructor for C
Assert(b is B);
Assert(b is C);
b.Method(); // invokes C.Method() override
Is there any reason why this should not be allowed in terms of type safety? If not, what is it called and is there any language out there that supports this? Heap space analysis for garbage collected languagesHeap space analysis for garbage collected languages, by Elvira Albert, Samir Genaim, Miguel Gómez-Zamalloa:
Similar work has been covered here in the past. By naasking at 2013-06-29 15:01 | Implementation | Theory | login or register to post comments | other blogs | 14979 reads
|
Browse archivesActive forum topics |
Recent comments
2 days 20 hours ago
3 days 16 hours ago
4 days 21 hours ago
4 days 21 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
4 weeks 3 days ago
5 weeks 1 day ago
5 weeks 2 days ago