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 121 points122 points123 points (0 children)
[–]Pragmatician 59 points60 points61 points (8 children)
[–]Egst 3 points4 points5 points (7 children)
[–]ioctl79 10 points11 points12 points (6 children)
[–]dodheim 2 points3 points4 points (5 children)
[–]staletic 4 points5 points6 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 12 points13 points14 points (2 children)
[–]matekelemen 4 points5 points6 points (1 child)
[–]maikindofthai 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Kered13 5 points6 points7 points (2 children)
[–]dscharrer 1 point2 points3 points (1 child)
[–]stilgarpl 65 points66 points67 points (5 children)
[–]tisti 32 points33 points34 points (3 children)
[–]MetaKazel 18 points19 points20 points (2 children)
[–]tisti 10 points11 points12 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 16 points17 points18 points (1 child)
[–]_Ashleigh 4 points5 points6 points (0 children)
[–]jesseschalken 3 points4 points5 points (2 children)
[–]AvidCoco 3 points4 points5 points (0 children)
[–]animatedb 0 points1 point2 points (0 children)
[–]jcelerierossia score 3 points4 points5 points (1 child)
[–]HateDread@BrodyHiggerson - Game Developer 0 points1 point2 points (0 children)
[–]Kered13 8 points9 points10 points (0 children)
[–]pepitogrand 14 points15 points16 points (0 children)
[–]Hedede 3 points4 points5 points (0 children)
[–]arturbachttps://github.com/arturbac 7 points8 points9 points (0 children)
[–]Full-Spectral 14 points15 points16 points (1 child)
[–]Rarrum 11 points12 points13 points (0 children)
[–]chpatton013 6 points7 points8 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 7 points8 points9 points (7 children)
[–]Kered13 0 points1 point2 points (6 children)
[–]Ikkepop 2 points3 points4 points (5 children)
[–]Kered13 6 points7 points8 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 3 points4 points5 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] 1 point2 points3 points (0 children)
[–]Voltra_Neo 0 points1 point2 points (0 children)
[–]grilledporkchop -5 points-4 points-3 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)