I believe that something like that, in C++ at least, is referred to as the
"curiously recurring template pattern."


On Fri, Jun 19, 2009 at 1:18 AM, Eric Bowman <> wrote:

> The basic trick where a superclass has its subclass as a type parameter,
> e.g.
> class User extends MegaProtoUser[User]
> I've run into this before, I remember struggling to "get it", then
> getting it, but I can't recall the epiphany.  But obviously this is a
> relatively common technique, so something to google is much appreciated.
> Thanks,
> Eric
> --
> Eric Bowman
> Boboco Ltd
> +35318394189/+353872801532<>
> >

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to