Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Using Objects

Part of CommonErrorsCategory

Description

Objects have to be initialized before they are used.

Example

void main()
{  
   Object o;

    /* An access violation will occur if the following statement is omitted. */

    o = new Object(); 

   printf("%.*s", o.toString);
}