Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# core.internal.array.construction

This module contains compiler support for constructing dynamic arrays
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Source core/internal/array/construction.d

@trusted Tarr `_d_arrayctor`(Tarr : T[], T)(return scope Tarr `to`, scope Tarr `from`);
  Does array initialization (not assignment) from another array of the same element type.
  Parameters:

  Tarr `to` | what array to initialize
  Tarr `from` | what data the array should be initialized with

  Returns:
  The constructed `to`
  Bugs:
  This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted until the implementation can be brought up to modern D expectations.
@trusted void `_d_arraysetctor`(Tarr : T[], T)(scope Tarr `p`, ref scope T `value`);
  Do construction of an array. ti[count] p = value;
  Parameters:

  Tarr `p` | what array to initialize
  T `value` | what data to construct the array with

  Bugs:
  This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted until the implementation can be brought up to modern D expectations.

Copyright © 1999-2019 by the D Language Foundation | Page generated by Ddoc on Fri Oct 11 06:43:28 2019