4 ms·
No, using function pointers does not necessarily mean implementing a vtable.
by kgabis 12y ago
No, using function pointers does not necessarily mean implementing a vtable.
- pjmlp 12y agoNo, but it feels like it. Oberon and Modula-3 only provide record extensions for OOP, with methods being done via function pointers. In case you aren't familiar with these languages, here is some info. http://www.inf.ethz.ch/personal/wirth/ProgInOberon.pdf http://www.inf.ethz.ch/personal/wirth/ProgInOberon.pdf (Chapter 23) http://en.wikipedia.org/wiki/Modula-3#Object_Oriented http://en.wikipedia.org/wiki/Modula-3#Object_Oriented In Oberon's case, which was lucky to have survived longer at ETHZ than Modula-3 did at DEC/Olivetti, all successors (Oberon-2, Active Oberon, Component Pascal, Zonnon) ended up adding support for method declarations.