Ogwaros Iwenâl

Into the depths of the fiery abyss

Archive for the ‘infinity’ tag

Ouroboros

without comments

struct serpent
{
    public:
        serpent* tail;

        void swallow(serpent* s) { /* ... */ }
};

serpent* ouroboros = new serpent();

ouroboros->swallow(ouroboros->tail);

Written by Brian Upton

February 28th, 2008 at 1:38 am