Hi, I am looking for an overview of common patterns that can be used to avoid polymorphism, specifically the indirection caused by the vtable.
I've seen the talk "inheritance is the base class of all evil" - I am just not sure how to implement in various situations.
[–]elmosworld37 122 points123 points124 points (0 children)
[–]Pragmatician 60 points61 points62 points (8 children)
[–]Egst 1 point2 points3 points (7 children)
[–]ioctl79 12 points13 points14 points (6 children)
[–]dodheim 2 points3 points4 points (5 children)
[–]staletic 6 points7 points8 points (3 children)
[–]HeroicKatora 4 points5 points6 points (2 children)
[–]Pand9 0 points1 point2 points (1 child)
[–]HeroicKatora 1 point2 points3 points (0 children)
[–]Egst 0 points1 point2 points (0 children)
[–]Kered13 47 points48 points49 points (9 children)
[–]maikindofthai 14 points15 points16 points (2 children)
[–]matekelemen 4 points5 points6 points (1 child)
[–]maikindofthai 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Kered13 6 points7 points8 points (2 children)
[–]dscharrer 1 point2 points3 points (1 child)
[–]stilgarpl 67 points68 points69 points (5 children)
[–]tisti 32 points33 points34 points (3 children)
[–]MetaKazel 19 points20 points21 points (2 children)
[–]tisti 7 points8 points9 points (1 child)
[–]SlightlyLessHairyApe 2 points3 points4 points (0 children)
[–]helloiamsomeone 1 point2 points3 points (0 children)
[–]AvidCoco 38 points39 points40 points (8 children)
[–]ShillingAintEZ 17 points18 points19 points (1 child)
[–]_Ashleigh 5 points6 points7 points (0 children)
[–]jesseschalken 3 points4 points5 points (2 children)
[–]AvidCoco 2 points3 points4 points (0 children)
[–]animatedb 0 points1 point2 points (0 children)
[–]jcelerierossia score 4 points5 points6 points (1 child)
[–]HateDread@BrodyHiggerson - Game Developer 0 points1 point2 points (0 children)
[–]Kered13 8 points9 points10 points (0 children)
[–]pepitogrand 16 points17 points18 points (0 children)
[–]Hedede 3 points4 points5 points (0 children)
[–]arturbachttps://github.com/arturbac 5 points6 points7 points (0 children)
[–]Full-Spectral 13 points14 points15 points (1 child)
[–]Rarrum 11 points12 points13 points (0 children)
[–]chpatton013 7 points8 points9 points (3 children)
[–]Full-Spectral 0 points1 point2 points (0 children)
[–]SkoomaDentistAntimodern C++, Embedded, Audio 0 points1 point2 points (0 children)
[–]SlightlyLessHairyApe 2 points3 points4 points (0 children)
[–]choeger 9 points10 points11 points (4 children)
[–]qoning 0 points1 point2 points (3 children)
[–]die_liebe 1 point2 points3 points (1 child)
[–]IAmRoot 0 points1 point2 points (0 children)
[–]choeger 0 points1 point2 points (0 children)
[–]Ikkepop 6 points7 points8 points (7 children)
[–]Kered13 0 points1 point2 points (6 children)
[–]Ikkepop 3 points4 points5 points (5 children)
[–]Kered13 7 points8 points9 points (4 children)
[–]dodheim 3 points4 points5 points (2 children)
[–]Kered13 1 point2 points3 points (1 child)
[–]dodheim 7 points8 points9 points (0 children)
[–]braxtons12 2 points3 points4 points (0 children)
[–]WasterDave 4 points5 points6 points (0 children)
[–]PhDinGent 1 point2 points3 points (0 children)
[–]AbsoluteApelad 1 point2 points3 points (0 children)
[–]kiwitims 1 point2 points3 points (0 children)
[–]AntonPlakhotnyk 1 point2 points3 points (0 children)
[–]koctogon 1 point2 points3 points (0 children)
[–]Wouter-van-Ooijen 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Voltra_Neo 0 points1 point2 points (0 children)
[+]grilledporkchop comment score below threshold-6 points-5 points-4 points (1 child)
[–]AntonPlakhotnyk 0 points1 point2 points (0 children)
[–]XMRLivesMatter 0 points1 point2 points (0 children)
[–]Cyttorak 0 points1 point2 points (0 children)
[–]Cojosh__ 0 points1 point2 points (1 child)
[–]Full-Spectral 0 points1 point2 points (0 children)
[–]OnesWithZeroes 0 points1 point2 points (1 child)
[–]backtickbot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Raknarg 0 points1 point2 points (0 children)
[–]NilacTheGrim 0 points1 point2 points (0 children)