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

Commit ceb6f5d

Browse files
authored
Merge pull request #2771 from JinShil/undocument
Undocument public templates in object.d that are only intended for use by the compiler merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents 0217604 + e424178 commit ceb6f5d

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
@@ -3196,43 +3196,37 @@ private void _doPostblit(T)(T[] arr)
31963196
auto a = arr.dup; // dup does escape
31973197
}
31983198

3199-
/// See $(REF _d_cmain, core,internal,entrypoint)
3199+
/* ************************************************************************
3200+
COMPILER SUPPORT
3201+
The compiler lowers certain expressions to instantiations of the following
3202+
templates. They must be implicitly imported, which is why they are here
3203+
in this file. They must also be `public` as they must be visible from the
3204+
scope in which they are instantiated. They are explicitly undocumented as
3205+
they are only intended to be instantiated by the compiler, not the user.
3206+
**************************************************************************/
3207+
32003208
public import core.internal.entrypoint : _d_cmain;
32013209

3202-
/// See $(REF _d_arrayappendTImpl, core,internal,array,appending)
32033210
public import core.internal.array.appending : _d_arrayappendTImpl;
3204-
/// See $(REF _d_arrayappendcTXImpl, core,internal,array,appending)
32053211
public import core.internal.array.appending : _d_arrayappendcTXImpl;
3206-
/// See $(REF __cmp, core,internal,array,comparison)
32073212
public import core.internal.array.comparison : __cmp;
3208-
/// See $(REF __equals, core,internal,array,equality)
32093213
public import core.internal.array.equality : __equals;
3210-
/// See $(REF __ArrayEq, core,internal,array,equality)
32113214
public import core.internal.array.equality : __ArrayEq;
3212-
/// See $(REF __ArrayCast, core,internal,array,casting)
32133215
public import core.internal.array.casting: __ArrayCast;
3214-
/// See $(REF _d_arraycatnTXImpl, core,internal,array,concatenation)
32153216
public import core.internal.array.concatenation : _d_arraycatnTXImpl;
3216-
/// See $(REF _d_arrayctor, core,internal,array,construction)
32173217
public import core.internal.array.construction : _d_arrayctor;
3218-
/// See $(REF _d_arraysetctor, core,internal,array,construction)
32193218
public import core.internal.array.construction : _d_arraysetctor;
3220-
/// See $(REF _d_arraysetlengthTImpl, core,internal,array,capacity)
32213219
public import core.internal.array.capacity: _d_arraysetlengthTImpl;
32223220

3223-
/// See $(REF _d_assert_fail, core,internal,dassert)
32243221
public import core.internal.dassert: _d_assert_fail;
32253222

32263223
public import core.internal.destruction: __ArrayDtor;
32273224

3228-
/// See $(REF __move_post_blt, core,internal,moving)
32293225
public import core.internal.moving: __move_post_blt;
32303226

32313227
public import core.internal.postblit: __ArrayPostblit;
32323228

3233-
/// See $(REF __switch, core,internal,switch_)
32343229
public import core.internal.switch_: __switch;
3235-
/// See $(REF __switch_error, core,internal,switch_)
32363230
public import core.internal.switch_: __switch_error;
32373231

32383232
// Compare class and interface objects for ordering.

0 commit comments

Comments
 (0)