Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

ddmd.init

Compiler implementation of the D programming language.
Authors:

Source: init.d

abstract class Initializer: ddmd.root.rootobject.RootObject;
class VoidInitializer: ddmd.init.Initializer;
class ErrorInitializer: ddmd.init.Initializer;
class StructInitializer: ddmd.init.Initializer;
Expression toExpression(Type t = null);
This works by transforming a struct initializer into a struct literal. In the future, the two should be the same thing.
class ArrayInitializer: ddmd.init.Initializer;
Expression toExpression(Type tx = null);
If possible, convert array initializer to array literal. Otherwise return NULL.
Expression toAssocArrayLiteral();
If possible, convert array initializer to associative array initializer.
class ExpInitializer: ddmd.init.Initializer;