object

Forms the symbols available to all D programs. Includes Object, which is the root of the class object hierarchy. This module is implicitly imported.

Members

Aliases

ClassInfo
alias ClassInfo = TypeInfo_Class
Undocumented in source.
__va_list
alias __va_list = ldc.internal.vararg.std.__va_list
Undocumented in source.
__va_list
alias __va_list = ldc.internal.vararg.std.__va_list
Undocumented in source.
dstring
alias dstring = immutable(dchar)[]
Undocumented in source.
equals_t
alias equals_t = bool
Undocumented in source.
hash_t
alias hash_t = size_t
Undocumented in source.
ptrdiff_t
alias ptrdiff_t = long
Undocumented in source.
ptrdiff_t
alias ptrdiff_t = int
Undocumented in source.
size_t
alias size_t = ulong
Undocumented in source.
size_t
alias size_t = uint
Undocumented in source.
sizediff_t
alias sizediff_t = ptrdiff_t
Undocumented in source.
string
alias string = immutable(char)[]
Undocumented in source.
wstring
alias wstring = immutable(wchar)[]
Undocumented in source.

Classes

Error
class Error

The base class of all unrecoverable runtime errors.

Exception
class Exception

The base class of all errors that are safe to catch and handle.

Object
class Object

All D class objects inherit from Object.

Throwable
class Throwable

The base class of all thrown objects.

TypeInfo
class TypeInfo

Runtime type information about a type. Can be retrieved for any type using a $(GLINK2 expression,TypeidExpression, TypeidExpression).

TypeInfo_Class
class TypeInfo_Class

Runtime type information about a class. Can be retrieved from an object instance by using the .classinfo property.

TypeInfo_Const
class TypeInfo_Const
Undocumented in source.

Functions

__ArrayCast
TTo[] __ArrayCast(TFrom[] from)

The compiler lowers expressions of cast(TTo[])TFrom[] to this implementation.

__ArrayDtor
void __ArrayDtor(T[] a)
Undocumented in source. Be warned that the author may not have intended to support it.
__ArrayEq
bool __ArrayEq(T1[] a, T2[] b)
Undocumented in source. Be warned that the author may not have intended to support it.
__ArrayPostblit
void __ArrayPostblit(T[] a)
Undocumented in source. Be warned that the author may not have intended to support it.
__cmp
int __cmp(T[] lhs, T[] rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
__cmp
int __cmp(T1[] s1, T2[] s2)
Undocumented in source. Be warned that the author may not have intended to support it.
__ctfeWrite
void __ctfeWrite(const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
__equals
bool __equals(T1[] lhs, T2[] rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
__switch
int __switch(T[] condition)
Undocumented in source. Be warned that the author may not have intended to support it.
__switch_error
void __switch_error(string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_assert_fail
string _d_assert_fail(A a, B b)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_delThrowable
void _d_delThrowable(Throwable )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_postblitRecurse
void _postblitRecurse(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
_postblitRecurse
void _postblitRecurse(E[n] arr)
Undocumented in source. Be warned that the author may not have intended to support it.
_xopCmp
bool _xopCmp(void* , void* )
Undocumented in source. Be warned that the author may not have intended to support it.
_xopEquals
bool _xopEquals(void* , void* )
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(T obj)

Destroys the given object and optionally resets to initial state. It's used to destroy an object, calling its destructor or finalizer so it no longer references any other objects. It does not initiate a GC cycle or free any GC memory. If initialize is supplied false, the object is considered invalid after destruction, and should not be referenced.

Imports

hashOf (from core.internal.hash)
public import core.internal.hash : hashOf;
Undocumented in source.
selector (from core.attribute)
public import core.attribute : selector;
Undocumented in source.

Structs

Interface
struct Interface

Information about an interface. When an object is accessed via an interface, an Interface* appears as the first entry in its vtbl.

OffsetTypeInfo
struct OffsetTypeInfo

Array of pairs giving the offset and type information for each member in an aggregate.

__va_list_tag
struct __va_list_tag
Undocumented in source.

Templates

_arrayOp
template _arrayOp(Args...)
Undocumented in source.
_isStaticArray
template _isStaticArray(T : U[N], U, size_t N)
Undocumented in source.
_isStaticArray
template _isStaticArray(T)
Undocumented in source.

Variables

rtinfoHasPointers
enum immutable(void)* rtinfoHasPointers;
Undocumented in source.
rtinfoNoPointers
enum immutable(void)* rtinfoNoPointers;

shortcuts for the precise GC, also generated by the compiler used instead of the actual pointer bitmap

Meta

Authors

Walter Bright, Sean Kelly