Skip to content

Instantly share code, notes, and snippets.

@Antol
Created December 23, 2012 12:11

Revisions

  1. Antol created this gist Dec 23, 2012.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    class Object : public Node
    {
    private:
    // It helps to typedef super & self so if you change the name
    // of the class or super class, you don't have to replace all
    // the references
    typedef Node super;
    typedef Object self;
    }