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