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

Commit

Permalink
deprecate TypeInfo.init
Browse files Browse the repository at this point in the history
As planned.
  • Loading branch information
aG0aep6G committed Apr 21, 2016
1 parent 323046c commit e32673d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions changelog.dd
Expand Up @@ -5,10 +5,23 @@ $(COMMENT Pending changelog for 2.072.0.

$(BUGSTITLE Library Changes,

$(LI $(RELATIVE_LINK2 TypeInfo.init-deprecated, `TypeInfo.init` has been
deprecated.))

)

$(BUGSTITLE Library Changes,

$(LI $(LNAME2 TypeInfo.init-deprecated, `TypeInfo.init` has been
deprecated.)

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

$(P Use $(NOXREF TypeInfo.initializer, TypeInfo.initializer) instead.)
)

)

Macros:
Expand Down
4 changes: 2 additions & 2 deletions src/object.d
Expand Up @@ -290,8 +290,8 @@ class TypeInfo
abstract const(void)[] initializer() nothrow pure const @safe @nogc;

/// $(RED Scheduled for deprecation.) Please use `initializer` instead.
alias init = initializer; // added in 2.070, to stay in 2.071
version(none) deprecated alias init = initializer; // planned for 2.072
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,
fixing issue 12233. */
Expand Down

0 comments on commit e32673d

Please sign in to comment.