2 /* Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
3 * written by Walter Bright
4 * https://www.digitalmars.com
5 * Distributed under the Boost Software License, Version 1.0.
6 * https://www.boost.org/LICENSE_1_0.txt
7 * https://github.com/dlang/dmd/blob/master/src/dmd/root/object.h
15 typedef size_t hash_t
;
30 DYNCAST_TEMPLATEPARAMETER
,
35 * Root of our class library.
42 virtual bool equals(const RootObject
* const o
) const;
45 * Pretty-print an Object. Useful for debugging the old-fashioned way.
47 virtual const char *toChars() const;
48 /// This function is `extern(D)` and should not be called from C++,
49 /// as the ABI does not match on some platforms
50 virtual DString
toString();
53 * Used as a replacement for dynamic_cast. Returns a unique number
54 * defined by the library user. For Object, the return value is 0.
56 virtual DYNCAST
dyncast() const;