home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 33,017 of 33,346   
   DeMarcus to All   
   Re: Independently partial interface impl   
   04 May 13 05:33:26   
   
   From: demarcus_at_hotmail_com@tellus.orb.dotsrc.org   
      
   > Many people believe that mixing Generic Programming with Polymorphism   
   > is a bad idea, because these concepts are very different, orthogonal.   
   > Many programmers are quite sure these two just do not work together.   
   > However, I think I know at least one case when Generic Programming   
   > extends Polymorphism.   
   > I have created a new pattern allows to implement not full interface,   
   > but by parts. Then, combining the partial implementation you can   
   > easily create specific types you need.   
   >   
      
   [...]   
      
   >   
   > Now we can construct new types combining partial implementations of   
   > AB interface:   
   >   
   > typedef ImplA1>  A1B1;   
   > typedef ImplA2>  A2B1;   
   > typedef ImplA1>  A1B2;   
   > typedef ImplA2>  A2B2;   
   >   
   > Any feedback very appreciated.   
   >   
      
   I came to think of that I was doing something similar to you not so long   
   ago. Maybe the following could be something that you can take ideas from.   
      
   https://groups.google.com/group/comp.lang.c++.moderated/browse_t   
   read/thread/4939f2da36e7fb88   
      
   Best regards,   
   Daniel   
      
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca