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

Commit

Permalink
@disable TypeInfo.init
Browse files Browse the repository at this point in the history
  • Loading branch information
aG0aep6G committed Feb 18, 2017
1 parent 9be31c4 commit aca7193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions changelog/disable-TypeInfo.init.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TypeInfo.init has been `@disable`d.

This is a step towards removal of `TypeInfo.init`, which is necessary to resolve
a name clash with the type property $(GLINK2 property, init).

Use $(REF_OBJECT_SHORT TypeInfo.initializer) instead.
8 changes: 3 additions & 5 deletions src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,9 @@ class TypeInfo
*/
abstract const(void)[] initializer() nothrow pure const @safe @nogc;

/// $(RED Scheduled for deprecation.) Please use `initializer` instead.
deprecated("Please use initializer instead.") alias init = initializer;
// since 2.072
version(none) @disable static const(void)[] init(); // planned for 2.073
/* Planned for 2.074: Remove init, making way for the init type property,
/// $(RED Removed.) Please use `initializer` instead.
@disable static const(void)[] init(); // since 2.074
/* Planned for 2.075: Remove init, making way for the init type property,
fixing issue 12233. */

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

0 comments on commit aca7193

Please sign in to comment.