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

Commit 6ff706c

Browse files
committed
Move _d_newclass closer to TypeInfo_Class where it is used
1 parent ed48e1e commit 6ff706c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/object.d

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public import core.internal.array.capacity: assumeSafeAppend;
4848
/// See $(REF destroy, core,internal,destruction)
4949
public import core.internal.destruction: destroy;
5050

51-
private
52-
{
53-
extern (C) Object _d_newclass(const TypeInfo_Class ci);
54-
}
55-
5651
/**
5752
* All D class objects inherit from Object.
5853
*/
@@ -973,6 +968,8 @@ class TypeInfo_Delegate : TypeInfo
973968
override @property immutable(void)* rtInfo() nothrow pure const @safe { return RTInfo!(int delegate()); }
974969
}
975970

971+
private extern (C) Object _d_newclass(const TypeInfo_Class ci);
972+
976973
/**
977974
* Runtime type information about a class.
978975
* Can be retrieved from an object instance by using the

0 commit comments

Comments
 (0)