From c5bdd290029d2bb790a2130d066eab6018264890 Mon Sep 17 00:00:00 2001 From: anonymous Date: Mon, 13 Mar 2017 12:33:30 +0100 Subject: [PATCH 1/2] @disable TypeInfo.init --- changelog/disable-TypeInfo.init.dd | 6 ++++++ src/object.d | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 changelog/disable-TypeInfo.init.dd diff --git a/changelog/disable-TypeInfo.init.dd b/changelog/disable-TypeInfo.init.dd new file mode 100644 index 0000000000..5cd5decc19 --- /dev/null +++ b/changelog/disable-TypeInfo.init.dd @@ -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. diff --git a/src/object.d b/src/object.d index fb1709450b..0838124d88 100644 --- a/src/object.d +++ b/src/object.d @@ -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, From 47f9fe25f1967a7b235e0e13b0a9553456e78cf0 Mon Sep 17 00:00:00 2001 From: anonymous Date: Mon, 13 Mar 2017 17:09:25 +0100 Subject: [PATCH 2/2] changelog tweaks --- changelog/disable-TypeInfo.init.dd | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/changelog/disable-TypeInfo.init.dd b/changelog/disable-TypeInfo.init.dd index 5cd5decc19..824635eae3 100644 --- a/changelog/disable-TypeInfo.init.dd +++ b/changelog/disable-TypeInfo.init.dd @@ -1,6 +1,12 @@ -TypeInfo.init has been `@disable`d. +`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). +$(REF_OBJECT_SHORT TypeInfo.init) has been `@disable`d. Use +$(REF_OBJECT_SHORT TypeInfo.initializer) instead. -Use $(REF_OBJECT_SHORT TypeInfo.initializer) instead. +`TypeInfo.init` is a legacy alias of the method that is now called +$(REF_OBJECT_SHORT TypeInfo.initializer). The name change is necessary because +the name "init" clashes with the type property of the same name +($(GLINK2 property, init)). + +The legacy alias has been deprecated since 2.072.0. It's going to be removed in +2.075.0.