This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mutually-recursive types and an old puzzle


On Wed, Jun 30, 2004 at 02:43:06AM +0200, Gabriel Dos Reis wrote:
> Yes, C does not has a fixpoint combinator.  C++ does.
> 
> struct T {
>    T operator()() const { return T(); }
> };

That doesn't quite suffice, but it looks like it can be made to do so (we
need a set of function-objects that can return references to each other).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]