Package smjg.libs.d12comp

D 1.x/2.x compatibility data types. More...


Classes

class  CArray< T >
 General array. Defined as const(T)[] under D 2.x. More...
class  CPtr< T >
 General pointer. Defined as const(T)* under D 2.x. More...

Typedefs

typedef bool intBool
 Data type returned by certain Phobos functions with boolean return semantics.
typedef char[] cstring
 Character array. Defined as const(char)[] under D 2.x.

Functions

 mixin ("alias const(char)[] cstring;")

Variables

const string RETURN_THIS = "return this;"
 Mixin to return the 'this' object from a struct member function.


Detailed Description

D 1.x/2.x compatibility data types.

The smjg.libs.d12comp module contains definitions to facilitate compatibility of libraries between D versions 1.x and 2.x.


Typedef Documentation

typedef char [] smjg::libs::d12comp.cstring

Character array. Defined as const(char)[] under D 2.x.

typedef int smjg::libs::d12comp::intBool

Data type returned by certain Phobos functions with boolean return semantics.

Some functions, such as Object.opEquals, return int in D 1.x, but the more sensible bool in D 2.x. This alias is used to override such functions.


Function Documentation

smjg.libs.d12comp.mixin ( "alias const(char) []cstring;"   ) 


Variable Documentation

const string smjg::libs::d12comp::RETURN_THIS = "return this;"

Mixin to return the 'this' object from a struct member function.


Generated on Sun Jan 11 21:54:08 2009 for Stewart's D Windows Framework by  doxygen 1.5.4