On Sun, 29 Nov 2026 20:36:18 +0100, Bonita Montero wrote:
> Am 29.11.2026 um 20:21 schrieb Lawrence D’Oliveiro:
>
>> On Sun, 29 Nov 2026 20:08:10 +0100, Bonita Montero wrote:
>
>>> Virtual functions in C++ need less storage since you need only one
>>> virtual method table pointer per baseclass.
>
>> That’s actually a limitation, because it disallows
>> “monkey-patching”.
>
> When do you need to change the polymorphic type of a class at
> runtime. In OOP languages no one has missed that feature so far.
On the contrary. True OO languages at least offer it as an option,
best used sparingly.
<https://stackoverflow.com/questions/5626193/what-is-monkey-patching>
<https://www.reddit.com/r/ruby/comments/n0n6e/whats_the_deal_with_monkeypatching_and_why_is/>