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

Commit e424178

Browse files
committed
Undocument public templates in object.d that are only intended for use by the compiler
1 parent 70e0ad3 commit e424178

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

src/object.d

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,43 +3229,37 @@ private void _doPostblit(T)(T[] arr)
32293229
auto a = arr.dup; // dup does escape
32303230
}
32313231

3232-
/// See $(REF _d_cmain, core,internal,entrypoint)
3232+
/* ************************************************************************
3233+
COMPILER SUPPORT
3234+
The compiler lowers certain expressions to instantiations of the following
3235+
templates. They must be implicitly imported, which is why they are here
3236+
in this file. They must also be `public` as they must be visible from the
3237+
scope in which they are instantiated. They are explicitly undocumented as
3238+
they are only intended to be instantiated by the compiler, not the user.
3239+
**************************************************************************/
3240+
32333241
public import core.internal.entrypoint : _d_cmain;
32343242

3235-
/// See $(REF _d_arrayappendTImpl, core,internal,array,appending)
32363243
public import core.internal.array.appending : _d_arrayappendTImpl;
3237-
/// See $(REF _d_arrayappendcTXImpl, core,internal,array,appending)
32383244
public import core.internal.array.appending : _d_arrayappendcTXImpl;
3239-
/// See $(REF __cmp, core,internal,array,comparison)
32403245
public import core.internal.array.comparison : __cmp;
3241-
/// See $(REF __equals, core,internal,array,equality)
32423246
public import core.internal.array.equality : __equals;
3243-
/// See $(REF __ArrayEq, core,internal,array,equality)
32443247
public import core.internal.array.equality : __ArrayEq;
3245-
/// See $(REF __ArrayCast, core,internal,array,casting)
32463248
public import core.internal.array.casting: __ArrayCast;
3247-
/// See $(REF _d_arraycatnTXImpl, core,internal,array,concatenation)
32483249
public import core.internal.array.concatenation : _d_arraycatnTXImpl;
3249-
/// See $(REF _d_arrayctor, core,internal,array,construction)
32503250
public import core.internal.array.construction : _d_arrayctor;
3251-
/// See $(REF _d_arraysetctor, core,internal,array,construction)
32523251
public import core.internal.array.construction : _d_arraysetctor;
3253-
/// See $(REF _d_arraysetlengthTImpl, core,internal,array,capacity)
32543252
public import core.internal.array.capacity: _d_arraysetlengthTImpl;
32553253

3256-
/// See $(REF _d_assert_fail, core,internal,dassert)
32573254
public import core.internal.dassert: _d_assert_fail;
32583255

32593256
public import core.internal.destruction: __ArrayDtor;
32603257

3261-
/// See $(REF __move_post_blt, core,internal,moving)
32623258
public import core.internal.moving: __move_post_blt;
32633259

32643260
public import core.internal.postblit: __ArrayPostblit;
32653261

3266-
/// See $(REF __switch, core,internal,switch_)
32673262
public import core.internal.switch_: __switch;
3268-
/// See $(REF __switch_error, core,internal,switch_)
32693263
public import core.internal.switch_: __switch_error;
32703264

32713265
// Compare class and interface objects for ordering.

0 commit comments

Comments
 (0)