Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ca856ef

Browse files
committedJul 28, 2020
Change name from RTTypeid to __typeid
1 parent 1a76c5b commit ca856ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/object.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class TypeInfo
427427
/*
428428
Run-time type information for scalar types (int for now).
429429
*/
430-
template RTTypeid(T)
430+
template __typeid(T)
431431
if (is(T == int))
432432
{
433433
class Impl : TypeInfo
@@ -490,12 +490,12 @@ if (is(T == int))
490490
}
491491

492492
// On-demand singleton object in static storage
493-
immutable RTTypeid = new Impl;
493+
immutable __typeid = new Impl;
494494
}
495495

496496
unittest
497497
{
498-
alias id = RTTypeid!int;
498+
alias id = __typeid!int;
499499
static assert(id == id && id <= id && id >= id);
500500
static assert(id.toString == "int");
501501
int a = 42, b = 42, c = 43;

0 commit comments

Comments
 (0)
This repository has been archived.