From ca856ef4cd50dcf4a745efa0e7516062a7c6eb7e Mon Sep 17 00:00:00 2001 From: Andrei Alexandrescu Date: Mon, 27 Jul 2020 23:17:35 -0400 Subject: [PATCH] Change name from RTTypeid to __typeid --- src/object.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object.d b/src/object.d index 7acbdaa528a..e43d76c060a 100644 --- a/src/object.d +++ b/src/object.d @@ -427,7 +427,7 @@ class TypeInfo /* Run-time type information for scalar types (int for now). */ -template RTTypeid(T) +template __typeid(T) if (is(T == int)) { class Impl : TypeInfo @@ -490,12 +490,12 @@ if (is(T == int)) } // On-demand singleton object in static storage - immutable RTTypeid = new Impl; + immutable __typeid = new Impl; } unittest { - alias id = RTTypeid!int; + alias id = __typeid!int; static assert(id == id && id <= id && id >= id); static assert(id.toString == "int"); int a = 42, b = 42, c = 43;