1 /**
2  * Compiler implementation of the D programming language
3  * http://dlang.org
4  *
5  * Copyright: Copyright (c) 1999-2016 by Digital Mars, All Rights Reserved
6  * Authors:   Walter Bright, http://www.digitalmars.com
7  * License:   $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
8  * Source:    $(DMDSRC root/_rootobject.d)
9  */
10 
11 module ddmd.root.rootobject;
12 
13 import core.stdc.stdio;
14 
15 import ddmd.root.outbuffer;
16 
17 /***********************************************************
18  */
19 extern (C++) class RootObject
20 {
21     this()
22     {
23     }
24 
25     bool equals(RootObject o)
26     {
27         return o is this;
28     }
29 
30     int compare(RootObject)
31     {
32         assert(0);
33     }
34 
35     void print()
36     {
37         printf("%s %p\n", toChars(), this);
38     }
39 
40     const(char)* toChars()
41     {
42         assert(0);
43     }
44 
45     void toBuffer(OutBuffer* buf)
46     {
47         assert(0);
48     }
49 
50     int dyncast()
51     {
52         assert(0);
53     }
54 }