Curiously recursive pattern-what is that???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • papi1976

    Curiously recursive pattern-what is that???

    Hello to everyone

    I heard about a strange thing about wich i have'nt find anything on the net
    or
    books, someone called this "Curiously recursive pattern" or a strange trick
    to play with templates and inheritance...
    Dunno what is that or how it works :(

    Does someone has any idea about this thing???

    Thank 2 everyone in advance


  • Victor Bazarov

    #2
    Re: Curiously recursive pattern-what is that???

    "papi1976" <papi1976@fastw ebnet.it> wrote...[color=blue]
    > I heard about a strange thing about wich i have'nt find anything on the[/color]
    net[color=blue]
    > or
    > books, someone called this "Curiously recursive pattern" or a strange[/color]
    trick[color=blue]
    > to play with templates and inheritance...
    > Dunno what is that or how it works :(
    >
    > Does someone has any idea about this thing???[/color]

    A quick search on Google for it (in double quotes, so it uses the phrase)
    gives 3 links. Try it.


    Comment

    • Phlip

      #3
      Re: Curiously recursive pattern-what is that???

      papi1976 wrote:
      [color=blue]
      > Hello to everyone
      >
      > I heard about a strange thing about wich i have'nt find anything on the[/color]
      net[color=blue]
      > or
      > books, someone called this "Curiously recursive pattern" or a strange[/color]
      trick[color=blue]
      > to play with templates and inheritance...[/color]

      Thank the dieties it's not "recursive" !

      It's James O. Coplien's "A Curiously Recurring Template Pattern." In Stanley
      B. Lippman's /C++ Gems/, 135-144. Cambridge University Press, New York, New
      York, 1996.



      ATL and WTL use it like it's going out of style, as a form of inheritance
      and near-polymorphism that binds entirely at compile time.

      --
      Phlip



      Comment

      • Jonathan Turkanis

        #4
        Re: Curiously recursive pattern-what is that???

        "Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
        news:XPvUb.1831 67$5V2.888103@a ttbi_s53...[color=blue]
        > "papi1976" <papi1976@fastw ebnet.it> wrote...[color=green]
        > > I heard about a strange thing about wich i have'nt find anything[/color][/color]
        on the[color=blue]
        > net[color=green]
        > > or
        > > books, someone called this "Curiously recursive pattern" or a[/color][/color]
        strange[color=blue]
        > trick[color=green]
        > > to play with templates and inheritance...
        > > Dunno what is that or how it works :(
        > >
        > > Does someone has any idea about this thing???[/color]
        >
        > A quick search on Google for it (in double quotes, so it uses the[/color]
        phrase)[color=blue]
        > gives 3 links. Try it.
        >[/color]

        Amen to google. But try "Curiously recurring template pattern".

        Jonathan


        Comment

        • Jonathan Turkanis

          #5
          Re: Curiously recursive pattern-what is that???


          "Phlip" <phlip_cpp@yaho o.com> wrote in message
          news:LSvUb.3223 5$J%1.31536@new ssvr33.news.pro digy.com...[color=blue]
          > papi1976 wrote:
          >[color=green]
          > > Hello to everyone
          > >
          > > I heard about a strange thing about wich i have'nt find anything[/color][/color]
          on the[color=blue]
          > net[color=green]
          > > or
          > > books, someone called this "Curiously recursive pattern" or a[/color][/color]
          strange[color=blue]
          > trick[color=green]
          > > to play with templates and inheritance...[/color]
          >
          > Thank the dieties it's not "recursive" !
          >[/color]

          Well, it *is* recursive in that it uses an entity being defined in its
          own definition.

          Thank the deities it's a 'virtuous circle' not a 'vicious circle.'

          Jonathan


          Comment

          • papi1976

            #6
            Curiously recurring template pattern

            yeeaahhh!!

            Thanks a lot and thank you to everyone even 4 the hints on the book!!!

            Yep!

            "Jonathan Turkanis" <technews@kanga roologic.com> wrote in message
            news:bvu2pr$10l eme$1@ID-216073.news.uni-berlin.de...[color=blue]
            > "Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
            > news:XPvUb.1831 67$5V2.888103@a ttbi_s53...[color=green]
            > > "papi1976" <papi1976@fastw ebnet.it> wrote...[color=darkred]
            > > > I heard about a strange thing about wich i have'nt find anything[/color][/color]
            > on the[color=green]
            > > net[color=darkred]
            > > > or
            > > > books, someone called this "Curiously recursive pattern" or a[/color][/color]
            > strange[color=green]
            > > trick[color=darkred]
            > > > to play with templates and inheritance...
            > > > Dunno what is that or how it works :(
            > > >
            > > > Does someone has any idea about this thing???[/color]
            > >
            > > A quick search on Google for it (in double quotes, so it uses the[/color]
            > phrase)[color=green]
            > > gives 3 links. Try it.
            > >[/color]
            >
            > Amen to google. But try "Curiously recurring template pattern".
            >
            > Jonathan
            >
            >[/color]


            Comment

            Working...