Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Issue 2990 - TypeInfo.init() returns invalid array
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 5, 2011
1 parent 0b03afd commit a771c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/object_.d
Expand Up @@ -283,7 +283,8 @@ class TypeInfo
/// null if none.
TypeInfo next() { return null; }

/// Return default initializer, null if default initialize to 0
/// Return default initializer. If the type should be initialized to all zeros,
/// an array with a null ptr and a length equal to the type size will be returned.
void[] init() { return null; }

/// Get flags for type: 1 means GC should scan for pointers
Expand Down

0 comments on commit a771c11

Please sign in to comment.