D
Language
Phobos
Comparisons
object
std
std.base64
std.boxer
std.compiler
std.conv
std.cover
std.ctype
std.date
std.demangle
std.file
std.format
std.gc
std.intrinsic
std.math
std.md5
std.mmfile
std.openrj
std.outbuffer
std.path
std.process
std.random
std.recls
std.regexp
std.socket
std.socketstream
std.stdint
std.stdio
std.cstream
std.stream
std.string
std.system
std.thread
std.uri
std.utf
std.zip
std.zlib
std.c.fenv
std.c.math
std.c.process
std.c.stdarg
std.c.stddef
std.c.stdio
std.c.stdlib
std.c.string
std.c.time
std.c.wcharh
std.windows.charset
std.windows
std.linux
std.c.windows
std.c.linux
|
object
Forms the symbols available to all D programs. Includes
Object, which is the root of the class object heirarchy.
This module is implicitly imported.
- alias bit;
- Standard boolean type. Implemented as a bit type.
- class Object;
- All D class objects inherit from Object.
- char[] toString();
- Convert Object to a human readable string.
- uint toHash();
- Compute hash function for Object.
- int opCmp(Object o);
- Compare with another Object obj.
Returns:
this < obj | < 0 |
this == obj | 0 |
this > obj | > 0 |
- int opEquals(Object o);
- Returns !=0 if this object does have the same contents as obj.
- struct Interface;
- Information about an interface.
- ClassInfo classinfo;
- .classinfo for this interface
- class ClassInfo;
- Runtime type information about a class. Can be retrieved for any class type
or instance by using the .classinfo property.
- byte[] init;
- class static initializer
(init.length gives size in bytes of class)
- char[] name;
- class name
- void*[] vtbl;
- virtual function pointer table
- Interface [] interfaces;
- interfaces this class implements
- ClassInfo base;
- base class
- class TypeInfo;
- Runtime type information about a type.
Can be retrieved for any type using a
TypeidExpression.
- uint getHash(void* p);
- Returns a hash of the instance of a type.
- int equals(void* p1, void* p2);
- Compares two instances for equality.
- int compare(void* p1, void* p2);
- Compares two instances for <, ==, or >.
- uint tsize();
- Returns size of the type.
- void swap(void* p1, void* p2);
- Swaps two instances of the type.
- class Exception;
- All recoverable exceptions should be derived from class Exception.
- this(char[] msg);
- Constructor; msg is a descriptive message for the exception.
- class Error: object.Exception;
- All irrecoverable exceptions should be derived from class Error.
- this(char[] msg);
- Constructor; msg is a descriptive message for the exception.
|