Connecting Tech Pros Worldwide Forums | Help | Site Map

Curiously recursive pattern-what is that???

papi1976
Guest
 
Posts: n/a
#1: Jul 22 '05
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
Guest
 
Posts: n/a
#2: Jul 22 '05

re: Curiously recursive pattern-what is that???


"papi1976" <papi1976@fastwebnet.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.


Phlip
Guest
 
Posts: n/a
#3: Jul 22 '05

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.

http://quantlib.org/html/a00993.html

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
http://www.xpsd.org/cgi-bin/wiki?Tes...UserInterfaces


Jonathan Turkanis
Guest
 
Posts: n/a
#4: Jul 22 '05

re: Curiously recursive pattern-what is that???


"Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
news:XPvUb.183167$5V2.888103@attbi_s53...[color=blue]
> "papi1976" <papi1976@fastwebnet.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


Jonathan Turkanis
Guest
 
Posts: n/a
#5: Jul 22 '05

re: Curiously recursive pattern-what is that???



"Phlip" <phlip_cpp@yahoo.com> wrote in message
news:LSvUb.32235$J%1.31536@newssvr33.news.prodigy. 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


papi1976
Guest
 
Posts: n/a
#6: Jul 22 '05

re: Curiously recursive pattern-what is that???


yeeaahhh!!

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

Yep!

"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message
news:bvu2pr$10leme$1@ID-216073.news.uni-berlin.de...[color=blue]
> "Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
> news:XPvUb.183167$5V2.888103@attbi_s53...[color=green]
> > "papi1976" <papi1976@fastwebnet.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]


Closed Thread