Prepare V2 corpus, editorial journal and reproducible publication boundary

This commit is contained in:
huncode committed 2026-10-26 17:46:00 +03:00
1 parent 7b3f49788d
commit 69607c52fd
498 files changed
+97671 -468

No files matched your search

@@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../includes/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../includes/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="../includes/widget.js"></script>
<script language="javascript" type="text/javascript" src="https://dlang.org/js/hyphenate.js"></script>
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="../includes/iefix.css" />
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="../includes/ie8.css" />
<![endif]-->
<link href="../../2015/images/favicon.ico" rel="shortcut icon" />
<title >DConf 2017 speaker: Gerald Nunn</title>
</head>
<body>
<script language="javascript" type="text/javascript" src="../includes/facebook.js"></script>
<div id="container">
<div class="menu_container"><div class="menu row_after"> <nav > <ul id="menu"> <li><a href="../index.html">Home</a></li>
<li><a href="../registration.html">Register</a></li>
<li><a href="../schedule">Schedule</a></li>
<li><a href="../speakers">Speakers</a></li>
<li><a href="../venue.html">Venue</a></li>
<li><a href="../contact.html">Contact</a></li>
<li><a href="../../2016">2016</a></li>
<li><a href="../../2015">2015</a></li>
<li><a href="../../2014">2014</a></li>
<li><a href="../../2013">2013</a></li>
</ul>
</nav>
</div><!-- end <div class="menu row_after"> -->
</div><!-- end <div class="menu_container"> -->
<div class="page_left equal hyphenate">
<h1 align=left>Why D is the Perfect Fit for Building GTK Applications</h1>
<div class="inline vmid"> <img class="stroke" src="../images/nunn.jpg" height="170" alt="" />
<div ><p><b><a href="">Gerald Nunn</a><br />
May 6 @ 11:00</b><br><br><i>Duration:</i> 50 minutes<br />
<i>Talk type:</i> Presentation<br />
<i>Level:</i> Beginner to Intermediate<br />
<i>Slides:</i> <b><a href="../talks/nunn.pdf">PDF</a> &middot <a href="../talks/nunn.pptx">PPTX</a></b><br />
<b><A href="https://youtu.be/9Id6Kbi3Y0c">Video</A><br /></b>
<!--a href="#">Powerpoint slides</a--></p>
</div><!-- end <div > -->
</div><!-- end <div class="inline vmid"> -->
<p><b><u>Abstract:</u>&nbsp;</b>
<p>D is an ideal language to use for building GTK applications. This talk will explore why it is a good fit in comparison to other languages based on the experience of the speaker writing Tilix, a popular terminal emulator for Gnome.</p>
<p>When writing GTK applications there is currently a gap between compiled languages, which are often low productivity and difficult to learn, and scripting languages which are easier to learn but lack performance, static typing and other features that developers often prefer.</p>
<p>Vala was intended by GNOME to fill this gap but it is not well maintained and it's future looks bleak. In my opinion D is a perfect replacement for Vala as it occupies a unique sweet spot for building GUI applications and, in particular, GTK Linux applications.</p>
<p>This talk will focus on the following topics:</p>
<ul> <li>Yes Matilda, desktop GUI applications are still relevant today</li>
<li>What is GTK in a single slide</li>
<li>Surveying the current options for building GTK applications (C, C++, Python, Javascript, Vala and Rust)</li>
<li>Why choose D over other options?</li>
<li>Summary of experience writing Tilix including:
<ul> <li>How D makes Tilix better</li>
<li>Best practices for writing D GTK applications</li>
<li>Lessons learned</li>
</ul>
</li>
<li>The future and a call to action</li>
</ul></p>
<!--p><b><u>Notes:</u> </b> </p-->
<p><b><u>Speaker Bio:</u> </b>
<p>Gerald Nunn is a Senior Middleware Solutions Architect with Red Hat. While his day job has nothing to do with the desktop, GTK or GNOME, he maintains a passion for building GUI applications. His current hobby project is <a href="https://gnunn1.github.io/tilix-web">Tilix</a>, a popular tiling terminal emulator for GNOME.</p></p></div><!-- end <div class="page_left equal hyphenate"> -->
<div class="page_right equal"> <div class="divider_h">&nbsp;</div><!-- end <div class="divider_h"> -->
<div class="sponsors"> <span class="sp">Partner</span><br />
<table ><tr > <td ><a href="http://sociomantic.com"> <img src="http://www.offremedia.com/sites/default/files/styles/270x170_echelle/public/logo_org_21466.png?itok=moLeleXt" width="100%" alt="Sociomantic" border="0" /></a></td></tr>
</table>
</div><!-- end <div class="sponsors"> -->
<div class="twitter"> <div class="hash"></div><!-- end <div class="hash"> -->
<a class="twitter-timeline" href="https://twitter.com/search?q=%23dconf+%23dlang" data-widget-id="405059685734023169">Tweets about "#dconf #dlang"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div><!-- end <div class="twitter"> -->
<div class="sponsors">
</div><!-- end <div class="sponsors"> -->
</div><!-- end <div class="page_right equal"> -->
</div><!-- end <div id="container"> -->
<div class="footer"> &copy; 2017 <a href="https://dlang.org/foundation.html">The D Language Foundation</a> |
Generated with Ddoc
</div><!-- end <div class="footer"> -->
</body>
</html>
@@ -0,0 +1,154 @@
<!DOCTYPE html>
<html>
<head> <title>curl - SSL CA Certificates</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="/curl.css">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" href="/logo/curl-symbol.svg" type="image/svg+xml">
<link rel="alternate" type="application/rss+xml" title="curl Releases" href="https://github.com/curl/curl/releases.atom">
</head>
<body>
<div class="main">
<nav class="sitenav" aria-label="Primary navigation">
<a class="curlsymbol sitenav-home" href="/" aria-label="curl home">
<img src="/logo/curl-white-symbol.svg" alt="">
</a>
<input class="sitenav-state" type="checkbox" id="sitenav-state"> <label class="sitenav-toggle" for="sitenav-state"> <span class="sitenav-toggle-icon" aria-hidden="true"></span> <span>Menu</span> </label>
<ul class="sitenav-list">
<li class="sitenav-item"><a class="sitenav-link menuitem" href="/docs/" title="Documentation Overview">Docs Overview</a></li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Project</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/projdocs.html">Project overview</a></li>
<li><a href="/docs/bugs.html">Bug Report</a></li>
<li><a href="/docs/code-of-conduct.html">Code of conduct</a></li>
<li><a href="/docs/libs.html">Dependencies</a></li>
<li><a href="/donation.html">Donate</a></li>
<li><a href="/docs/faq.html">FAQ</a></li>
<li><a href="/docs/features.html">Features</a></li>
<li><a href="/docs/governance.html">Governance</a></li>
<li><a href="/docs/history.html">History</a></li>
<li><a href="/docs/install.html">Install</a></li>
<li><a href="/docs/knownbugs.html">Known Bugs</a></li>
<li><a href="/docs/knownrisks.html">Known Risks</a></li>
<li><a href="/logo/">Logo</a></li>
<li><a href="/docs/todo.html">TODO</a></li>
<li><a href="/about.html">website Info</a></li>
</ul> </details> </li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Protocols</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/protdocs.html">Protocols overview</a></li>
<li><a href="/docs/caextract.html">CA Extract</a></li>
<li><a href="/docs/http-cookies.html">HTTP cookies</a></li>
<li><a href="/docs/http3.html">HTTP/3</a></li>
<li><a href="/docs/mqtt.html">MQTT</a></li>
<li><a href="/docs/sslcerts.html">SSL certs</a></li>
<li><a href="/docs/ssl-compared.html">SSL libs compared</a></li>
<li><a href="/docs/url-syntax.html">URL syntax</a></li>
<li><a href="/docs/websocket.html">WebSocket</a></li>
</ul> </details> </li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Releases</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/reldocs.html">Releases overview</a></li>
<li><a href="/ch/">Changelog</a></li>
<li><a href="/docs/releases.html">Release Table</a></li>
<li><a href="/docs/versions.html">Version Numbering</a></li>
<li><a href="/docs/verify.html">Verify</a></li>
</ul> </details> </li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Security</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/secdocs.html">Security overview</a></li>
<li><a href="/docs/audits.html">Security Audits</a></li>
<li><a href="/docs/security.html">curl CVEs</a></li>
<li><a href="/dev/advisory.html">Security advisory details</a></li>
<li><a href="/docs/vulnerabilities.html">Vulnerability table</a></li>
<li><a href="/dev/vuln-disclosure.html">Vulnerability Disclosure Policy</a></li>
</ul> </details> </li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Tool</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/tooldocs.html">Tool overview</a></li>
<li><a href="/docs/comparison-table.html">Comparison Table</a></li>
<li><a href="/docs/manpage.html">curl man page</a></li>
<li><a href="/docs/httpscripting.html">HTTP Scripting</a></li>
<li><a href="/docs/mk-ca-bundle.html">mk-ca-bundle</a></li>
<li><a href="/docs/tutorial.html">Tutorial</a></li>
<li><a href="/docs/optionswhen.html">When options were added</a></li>
</ul> </details> </li>
<li class="sitenav-item"> <details class="sitenav-disclosure" name="sitenav-submenus"> <summary class="sitenav-summary"> <span class="sitenav-label">Who and Why</span> </summary> <ul class="sitenav-submenu">
<li><a class="sitenav-overview" href="/docs/whodocs.html">Who and Why overview</a></li>
<li><a href="/docs/companies.html">Companies</a></li>
<li><a href="/docs/copyright.html">Copyright</a></li>
<li><a href="/sponsors.html">Sponsors</a></li>
<li><a href="/docs/thanks.html">Thanks</a></li>
<li><a href="/docs/thename.html">The name</a></li>
</ul> </details> </li>
</ul>
</nav>
<div class="contents">
<div class="where"><a href="/">curl</a> / <a href="/docs/">Docs</a> / <a href="/docs/protdocs.html">Protocols</a> / <b>SSL Certificates</b></div>
<div class="relatedbox">
<b>Related:</b>
<br><a href="caextract.html">CA extract</a>
<br><a href="https://github.com/curl/curl/issues/new?title=SSLCERTS%20manpage:%20&amp;labels=documentation&amp;template=docs.yml" target="_new">File a bug about this page</a>
</div>
<!--
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
-->
<h1 id="tls-certificate-verification">TLS Certificate Verification</h1>
<h2 id="native-vs-file-based">Native vs file based</h2>
<p>If curl was built with Schannel support, then curl uses the Windows native CA store for verification. On Apple operating systems, it is possible to use Apple's "SecTrust" services for certain TLS backends, details below. All other TLS libraries use a file based CA store by default.</p>
<h2 id="verification">Verification</h2>
<p>Every trusted server certificate is digitally signed by a Certificate Authority, a CA.</p>
<p>In your local CA store you have a collection of certificates from <em>trusted</em> certificate authorities that TLS clients like curl use to verify servers.</p>
<p>curl does certificate verification by default. This is done by verifying the signature and making sure the certificate was crafted for the server name provided in the URL.</p>
<p>If you communicate with HTTPS, FTPS or other TLS-using servers using certificates signed by a CA whose certificate is present in the store, you can be sure that the remote server really is the one it claims to be.</p>
<p>If the remote server uses a self-signed certificate, if you do not install a CA cert store, if the server uses a certificate signed by a CA that is not included in the store you use or if the remote host is an impostor impersonating your favorite site, the certificate check fails and reports an
error.</p>
<p>If you think it wrongly failed the verification, consider one of the following sections.</p>
<h3 id="skip-verification">Skip verification</h3>
<p>Tell curl to <em>not</em> verify the peer with <code>-k</code>/<code>--insecure</code>.</p>
<p>We <strong>strongly</strong> recommend this is avoided and that even if you end up doing this for experimentation or development, <strong>never</strong> skip verification in production.</p>
<h3 id="use-a-custom-ca-store">Use a custom CA store</h3>
<p>Get a CA certificate that can verify the remote server and use the proper option to point out this CA cert for verification when connecting - for this specific transfer only.</p>
<p>With the curl command line tool: <code>--cacert [file]</code></p>
<p>If you use the curl command line tool without a native CA store, then you can specify your own CA cert file by setting the environment variable <code>CURL_CA_BUNDLE</code> to the path of your choice. <code>SSL_CERT_FILE</code> and <code>SSL_CERT_DIR</code> are also supported.</p>
<p>If you are using the curl command line tool on Windows, curl searches for a CA cert file named <code>curl-ca-bundle.crt</code> in these directories and in this order:</p>
<ol type="1">
<li>application's directory</li>
<li>current working directory</li>
<li>Windows System directory (e.g. C:\Windows\System32)</li>
<li>Windows Directory (e.g. C:\Windows)</li>
<li>all directories along %PATH%</li>
</ol>
<p>curl 8.11.0 added a build-time option to disable this search behavior, and another option to restrict search to the application's directory.</p>
<p>curl 8.19.0 added a build-time option to enable Native CA by default on Windows. This build-time option by default also disables searching for a <code>curl-ca-bundle.crt</code> on disk.</p>
<h3 id="use-the-native-store">Use the native store</h3>
<p>In several environments, in particular on Microsoft and Apple operating systems, you can ask curl to use the system's native CA store when verifying the certificate. Depending on how curl was built, this may already be the default.</p>
<p>With the curl command line tool: <code>--ca-native</code>.</p>
<h3 id="modify-the-ca-store">Modify the CA store</h3>
<p>Add the CA cert for your server to the existing default CA certificate store.</p>
<p>Usually you can figure out the path to the local CA store by looking at the verbose output that <code>curl -v</code> shows when you connect to an HTTPS site.</p>
<h3 id="change-curls-default-ca-store">Change curl's default CA store</h3>
<p>The default CA certificate store curl uses is set at build time. When you build curl you can point out your preferred path.</p>
<h3 id="extract-ca-cert-from-a-server">Extract CA cert from a server</h3>
<pre><code>curl -w %{certs} https://example.com &gt; cacert.pem</code></pre>
<p>The certificate has <code>BEGIN CERTIFICATE</code> and <code>END CERTIFICATE</code> markers.</p>
<h3 id="get-the-mozilla-ca-store">Get the Mozilla CA store</h3>
<p>Download a version of the Firefox CA store converted to PEM format on the <a href="https://curl.se/docs/caextract.html">CA Extract</a> page. It always features the latest Firefox bundle.</p>
<h2 id="native-ca-store">Native CA store</h2>
<h3 id="windows--schannel">Windows + Schannel</h3>
<p>If curl was built with Schannel, then curl uses the certificates that are built into the OS. These are the same certificates that appear in the Internet Options control panel (under Windows). Any custom security rules for certificates are honored.</p>
<p>Schannel runs CRL checks on certificates unless peer verification is disabled.</p>
<h3 id="apple--opensslgnutls">Apple + OpenSSL/GnuTLS</h3>
<p>When curl is built with Apple SecTrust enabled and uses an OpenSSL compatible TLS backend or GnuTLS, the default verification is handled by that Apple service. As in:</p>
<pre><code>curl https://example.com</code></pre>
<p>You may still provide your own certificates on the command line, such as:</p>
<pre><code>curl --cacert mycerts.pem https://example.com</code></pre>
<p>In this situation, Apple SecTrust is <strong>not</strong> used and verification is done <strong>only</strong> with the trust anchors found in <code>mycerts.pem</code>. If you want <strong>both</strong> Apple SecTrust and your own file to be considered, use:</p>
<pre><code>curl --ca-native --cacert mycerts.pem https://example.com</code></pre>
<h4 id="other-combinations">Other Combinations</h4>
<p>How well the use of native CA stores work in all other combinations depends on the TLS backend and the OS. Many TLS backends offer functionality to access the native CA on a range of operating systems. Some provide this only on specific configurations.</p>
<p>Specific support in curl exists for Windows and OpenSSL compatible TLS backends. It tries to load the certificates from the Windows "CA" and "ROOT" stores for transfers requesting the native CA. Due to Window's delayed population of those stores, this might not always find all certificates.</p>
<h2 id="https-proxy">HTTPS proxy</h2>
<p>curl can do HTTPS to the proxy separately from the connection to the server. This TLS connection is handled and verified separately from the server connection so instead of <code>--insecure</code> and <code>--cacert</code> to control the certificate verification, you use
<code>--proxy-insecure</code> and <code>--proxy-cacert</code>. With these options, you make sure that the TLS connection and the trust of the proxy can be kept totally separate from the TLS connection to the server.</p>
</div>
</div>
</body>
</html>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,259 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./styles/normalize.css"/>
<link rel="stylesheet" href="./styles/bootstrap.css"/>
<script src="./scripts/bootstrap.js"></script><title>Features - vibe.d</title>
<link rel="stylesheet" href="./styles/vibelog.css" type="text/css"/>
<link rel="stylesheet" href="./styles/common.css" type="text/css"/>
<link rel="stylesheet" href="./styles/default.css" type="text/css"/>
<link rel="stylesheet" href="./prettify/prettify.css" type="text/css"/>
<link rel="shortcut icon" href="./favicon.ico"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="./blog/feed/rss"/>
<script src="./prettify/prettify.js"></script>
<meta name="viewport" content="width = device-width"/>
<meta name="keywords" lang="en" content="vibe framework, asynchronous, event based, web framework, network library"/>
<meta name="keywords" lang="de" content="vibe framework, asynchron, ereignis-basiert, web framework, netzwerk-bibliothek"/>
</head>
<body class="bs-blue">
<div class="bs-hl"></div><div class="bs-hr"></div><header>
<div id="logo-line">
<a class="logo-title-link" href="https://vibed.org/">
<img id="title" src="./images/title-new.png" width="262" height="97" alt="vibe.d beta banner"/>
</a>
<a class="download-button" href="https://code.dlang.org/packages/vibe-d/0.10.1">
<div class="bs-hbtn right black">
<div class="content">get <strong>vibe.d</strong><br><large>0.10.1</large></div>
</div><div class="bs-hbtn left red">
<div class="dub-logo"></div>
</div></a>
<p id="slogan">
Asynchronous I/O that doesn’t get in your way, written in <a href="https://dlang.org" target="_blank">D</a>
</p>
</div>
</header><div id="bs-main" class="bs-leftnav">
<nav>
<nav id="global-nav">
<ul>
<li class="nav-home">
<a class="" href="./">Home</a>
</li>
<li class="nav-blog">
<a class="" href="./blog">News</a>
</li>
<li class="nav-features">
<a class="active" href="./features">Features</a>
</li>
<li class="nav-tutorials">
<a class="" href="./tutorials">Tutorials</a>
</li>
<li class="nav-docs">
<a class="" href="./docs">Documentation</a>
</li>
<li class="nav-community">
<a class="" href="./community">Community</a>
</li>
<li class="nav-get-involved">
<a class="" href="./get-involved">Get involved</a>
</li>
<li class="nav-download">
<a class="" href="./download">Download</a>
</li>
<li class="nav-about">
<a class="" href="./about">About</a>
</li>
</ul>
</nav>
<nav id="document-nav" class="bs-local">
<ul class="bs-local">
<li>
<a href="#simplicity">Simplicity</a>
<ul>
<li>
<a href="#fibers">Fibers</a>
</li>
<li>
<a href="#compact-api">Compact API</a>
</li>
<li>
<a href="#zero-downtime">Zero-downtime changes</a>
</li>
</ul>
</li>
<li>
<a href="#productivity">Productivity</a>
<ul>
<li>
<a href="#web-framework">Full integrated web framework</a>
</li>
<li>
<a href="#native-db">Native database drivers</a>
</li>
<li>
<a href="#raw-sockets">Raw network and file handling</a>
</li>
<li>
<a href="#concurrency">Generic concurrency tools</a>
</li>
<li>
<a href="#ui-integration">Graphical user interface integration</a>
</li>
</ul>
</li>
<li>
<a href="#performance">Performance</a>
<ul>
<li>
<a href="#aio">Asynchronous I/O</a>
</li>
<li>
<a href="#multi-threading">Multi-threading</a>
</li>
<li>
<a href="#native-code">Natively compiled code</a>
</li>
<li>
<a href="#diet-templates">Diet templates</a>
</li>
<li>
<a href="#load-balancing">Load balancing</a>
</li>
</ul>
</li>
</ul>
</nav>
</nav>
<section>
<div id="maincontent">
<h1>Features</h1>
<section>
<h2 id="simplicity">Simplicity</h2>
<section>
<h3 id="fibers">Fiber based pseudo-blocking programming model</h3>
<img class="leftFlow" src="images/feature_fibers.png"/>
<p>The key idea behind vibe.d was to take the fast and resource friendly <a href="#aio">asynchronous I/O</a> model (AIO) and make it comfortable to use. Some other frameworks or toolkits such as <a class="extern" href="https://nodejs.org/" target="_blank">node.js</a> directly expose the event based interface of AIO using callback functions. While this is a workable approach, it has several drawbacks.</p><p>First and foremost, it often becomes tedious and confusing to write sequences of code (e.g. performing multiple consecutive database queries). Each step will introduce a new callback with a new scope, error callbacks often have to be handled separately. Especially the latter is a reason why it is tempting to just perform lax error handling.</p><p>Another consequence of asynchronous callbacks is that there is no meaningful call stack. Not only can this make debugging more difficult, but features such as exceptions cannot be used effectively in such an environment.</p><p>The approach of vibe.d is to use asynchronous I/O under the hood, but at the same time make it seem as if all operations were synchronous and blocking, just like ordinary I/O.</p><p>What makes this possible is D's support for so called <a class="extern" href="https://dlang.org/phobos/core_thread.html#.Fiber" target="_blank">fibers</a> (also often called co-routines). Fibers behave a lot like threads, just that they are actually all running in the same thread. As soon as a running fiber calls a special <code>yield()</code> function, it returns control to the function that started the fiber. The fiber can then later be resumed at exactly the position and with the same state it had when it called <code>yield()</code>. This way fibers can be multiplexed together, running quasi-parallel and using each threads capacity as much as possible.</p><p>All of this usually happens behind the curtain of the vibe.d API, so that everything <em>feels</em> like just working with normal threads and blocking operations. All blocking functions, such as <code>sleep()</code> or <code>read()</code> will yield execution whenever they need to wait for an event and let themselves resume when the event occurs.</p><p>Using these tools, the event based nature of AIO is completely hidden from the user of the library. It also blends seamlessly with the built-in support for multi-threading. All concurrent operation are done using so called <a href="api/vibe.core.core/runTask">tasks</a>. Every task runs inside of a single fiber and is multiplexed together with other tasks that run at the same time. To the user of the toolkit there is usually no visible difference between a task and a thread.</p><p>Having said all that, vibe.d <em>can</em> also be used without any fibers and no event loop if it has to, resembling the standard blocking I/O model.</p>
</section>
<section>
<img class="rightFlow" src="images/feature_api.png"/>
<h3 id="compact-api">Compact API</h3><p>There is a strong focus on a short and simple API. Common tasks are kept as short and high level as possible, while still allowing fine grained control if needed. By using some of D's advanced features, typical vibe.d based programs reach a level of conciseness that usually only scripting languages such as Ruby can offer.</p>
</section>
<section>
<h3 id="zero-downtime">Zero-downtime changes</h3>
<p>
<span style="color: #fa4">[work-in-progress]</span> An <a href="#load-balancing">integrated load balancer</a> is able to dynamically compile, run and test new processes before switching them live after the code has been modified. This allows for seamless and low-risk changes on live-systems.
</p>
</section>
<section>
<h3 id="exception-based">Exception based error handling</h3><p>Usually, exception handling is restricted to local error handlers in event-based environments - it is impossible to wrap a sequence of events into a try-catch block, because every operation creates a new scope when callbacks are involved. vibe.d with its fiber based approach on the other hand has full support for exception handling.</p><p>A <a href="#fibers">fiber</a> behaves almost exactly like a thread regarding the stack; a single consistent call stack exists across all events that are handled in sequence. This way it becomes possible to naturally use exception handling, and especially in a web service environment exceptions are the ideal form of error handling.</p><p>Exceptions have the extremely useful feature that you can barely ignore them. As such, it is much more difficult to introduce subtle bugs and security holes by unintentionally ignoring error conditions. Any uncaught exceptions will automatically generate an error page and log all useful information in case of HTTP services.</p>
</section>
</section>
<section>
<h2 id="productivity">Productivity</h2>
<section>
<img class="rightFlow" src="images/feature_web.png"/>
<h3 id="web-framework">Full integrated web framework</h3><p>The vibe.d library contains a complete set of tools needed for website and web service development. In addition to a HTTP 1.0/1.1 server, static file serving, an efficient template system, WebSockets, sessions and other features are already integrated. Surrounding features include a markdown filter, MongoDB and Redis drivers, cryptography, natural JSON and BSON support and a simple SMTP client.</p><p>There are also means to automatically generate JSON/REST or HTML form based interface from D classes, removing a lot of work and potential for bugs due to avoiding boilerplate code. The REST interface generator supports generation of both, the server and the client end, and as such can be used as a convenient RPC mechanism.</p>
</section>
<section class="clear">
<h3 id="native-db">Native database drivers</h3>
<img class="leftFlow" src="images/feature_db.png"/>
<p>The core library contains built-in support for <a href="docs#mongo">MongoDB</a> and <a href="docs#redis">Redis</a> databases. These drivers provide a default for fast and flexible data storage. More database drivers are available in the <a href="https://code.dlang.org/">DUB package registry</a>, for example a vibe.d compatible <a href="https://github.com/rejectedsoftware/mysql-native">MySQL</a> driver.</p><p>Making existing drivers compatible is easy to do thanks to the blocking nature of vibe.d's API. The only thing that has to be done in most cases is to replace the socket calls (<code>send()</code>, <code>recv()</code>, <code>connect()</code> etc.) with the corresponding vibe.d functions. A <a href="blog/posts/writing-native-db-drivers">blog post</a> gives an overview of what needs to be done using the MySQL driver as an example.</p>
</section>
<section class="clear">
<h3 id="raw-sockets">Raw network and file handling</h3><p>Of course, raw TCP/UDP and file access is supported by the toolkit to enable custom protocols and file formats. I/O happens through a blocking stream interface that effectively hides the fact that the underlying operations are actually event based.</p>
</section>
<section>
<h3 id="concurrency">Generic concurrency tools</h3><p>Apart from I/O operations, all the usual tools for generic programming tasks are supported:</p>
<ul>
<li><a href="api/vibe.core.core/sleep"><code>sleep()</code></a> pauses execution of the current tasks for a specific amount of time</li><li><a href="api/vibe.core.core/setTimer">Timers</a> enable asynchronous scheduling of callbacks</li><li><a href="api/vibe.core.sync/TaskMutex">Mutexes</a> and <a href="api/vibe.core.sync/TaskCondition">condition variables</a> allow for sharing data access between multiple threads without interfering with the event loop</li><li>Support for <a href="api/vibe.core.concurrency/">message passing</a></li><li><a href="api/vibe.stream.taskpipe/TaskPipe">Data pipes</a> for streaming data between tasks/threads</li>
</ul>
</section>
<section>
<h3 id="ui-integration">Graphical user interface integration</h3><p>Contrary to most other frameworks supporting asynchronous I/O, vibe.d fully integrates with the UI event loop, so that it can be used to power applications with a graphical user interface.</p><p>For Windows, there is a native event driver implementation that makes use of the <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms684245(v=vs.85).aspx"><code>MsgWaitForMultipleObjectsEx</code></a> function to process window messages together with I/O or concurrency events. For systems running X11, it's possible to use <a href="api/vibe.core.core/createFileDescriptorEvent"><code>createFileDescriptorEvent</code></a> to listen on the display connection instead of using <code>XNextEvent</code>. Finally, macOS has an event loop based on `CFRunLoop`, which processes CoreFramework events, as well as basic kqueue events.</p>
<p>
An advanced example of this is <a href="https://aspect.bildhuus.com/">Aspect</a>, our photo management application that uses vibe.d for all of its I/O and concurrency needs. Tasks are a great fit for the asynchronous nature of the GUI system APIs, allowing to turn most event/callback based code into clear procedural code with a linear execution path. This results in both, more readable and more robust code. For Aspect, we are using direct Win32 API access on Windows and SDL2 on Linux and macOS.
</p>
</section>
</section>
<section>
<h2 id="performance">Performance</h2>
<section>
<h3 id="aio">Asynchronous I/O operations</h3>
<img class="leftFlow" src="images/feature_event.png"/>
<p>
Instead of using classic blocking I/O together with multi-threading for doing parallel network and file operations, all operations are using asynchronous operating system APIs. <a class="extern" href="https://github.com/vibe-d/eventcore/" target="_blank">eventcore</a> is used to access these APIs operating system independently.
</p>
<p>Using asynchronous I/O has several advantages, the main point being that the memory overhead is much lower. This is because only a single hardware thread is needed to handle an arbitrary number of concurrent operations. The thread typically rests waiting for events and is woken up by the operating system as soon as new data arrives, a new connection is established, or an error occurs. After each initiated blocking operation (e.g. writing data to a socket), the thread will go back to sleep and let the operating system execute the operation in the background.</p>
<p>
Another important aspect for speed is that, because there is only one or a few threads necessary, it is often possible to save a lot of expensive thread context switches. However, note that if the application has to do a lot of computations apart from the actual I/O operations, vibe.d has full support for <a href="#multi-threading">multi-threading</a> to fully exploit the system's multi-core CPU.
</p>
<p>
Because using the asynchronous event based model is often more involved regarding the application implementation, <a href="#fibers">fibers</a> are used together with an event based scheduler to give the impression of classic blocking calls and multi-threading, thus hiding the additional complexities, while retaining the performance characteristics of asynchronous I/O.
</p>
</section>
<section>
<h3 id="multi-threading">Multi-threading support</h3><p>While the performance is usually very good in a single-threaded application due to the use of <a href="#aio">asynchronous I/O</a> and <a href="#fibers">fibers</a>, there are applications that can greatly benefit from using multiple cores. vibe.d supports multiple ways to exploit this additional computational power, leaving the decision for the threading architecture to the application writer.</p><p>Apart from allowing the use of low-level <a href="https://dlang.org/phobos/core_thread.html#.Thread">D threads</a>, a thread pool is provided, which is used for any task started with <a href="api/vibe.core.core/runWorkerTask"><code>runWorkerTask</code></a> instead of <a href="api/vibe.core.core/runTask"><code>runTask</code></a>. This is mainly useful for running computationally expensive operations, such as decoding images, alongside the normal program flow, but it can also be used for better performance of I/O heavy tasks in certain cases.</p><p>The library is very flexible in the way that multi-threading can be employed and makes sure that no low-level race-conditions can occur, as long as no unsafe operations, such as <code>cast()</code>s or <code>__gshared</code> variables, are used. The following list shows some typical threading architectures:</p>
<dl class="feat">
<dt>Distributed processing of incoming connections</dt><dd>The HTTP server (as well as any other TCP based server) can be instructed to process incoming connections across the worker threads of the thread pool instead of in the main thread. For applications that don't need to share state across different connections in the process, this can increase the maximum number of requests per second linearly with the number of cores in the system. This feature is enabled using the <a href="api/vibe.http.server/HTTPServerOption.distribute"><code>HTTPServerOption.distribute</code></a> or <a href="api/vibe.core.net/TCPListenOptions.distribute"><code>TCPListenOptions.distribute</code></a> settings.</dd><dt>Using worker tasks for computations</dt><dd>Computationally expensive tasks can be off-loaded from the main thread by performing them with <a href="api/vibe.core.core/runWorkerTask"><code>runWorkerTask</code></a>. Any such task will be executed in the thread pool. This approach is useful whenever an application has such computationally expensive tasks to do, because it allows pure I/O tasks to stay unaffected by heavy computational load. Probably the most common example of such a task is image processing/decoding/encoding.</dd><dt>Using plain D threads</dt><dd>Normal D threads can also be used together with vibe.d. This is important when the threading primitives of the D standard library are used. Apart from the <a href="https://dlang.org/phobos/core_thread.html#.Thread">D core threads</a>, these are <a href="https://dlang.org/phobos/std_parallelism.html"><code>std.parallelism</code></a> and <a href="https://dlang.org/phobos/std_concurrency.html"><code>std.concurrency</code></a>. Note however, that parts of the D standard library shouldn't be mixed with vibe.d's I/O functions, because they block the event loop. Most notably, the message passing functions in <code>std.concurrency</code> are currently<a href="https://github.com/D-Programming-Language/phobos/pull/1910/">*</a> not compatible with vibe.d's event loop and should be replaced with the ones in <a href="api/vibe.core.concurrency/"><code>vibe.core.concurrency</code></a>.</dd>
</dl>
<p>Note that vibe.d also includes experimental library based support of <a href="api/vibe.core.concurrency/makeIsolated">isolated</a> and <a href="api/vibe.core.concurrency/ScopedRef">scoped</a> references. These allow mutable data to be passed between threads without having to use mutexes or similar means to synchronize data access. This is especially useful when transferring the data used in worker tasks between the worker thread and the main thread.</p>
</section>
<section>
<h3 id="native-code">Natively compiled code</h3>
<img class="rightFlow" src="images/feature_native.png"/>
<p>Vibe.d is written in the <a class="extern" href="https://dlang.org" target="_blank">D Programming Language</a>. D is a C-style language that compiles down to native machine code with minimal runtime overhead. In addition to being fast, D offers a number of features that allow additional performance improvements and especially code readability, safety and usability improvements compared to other languages such as C++.</p>
<p>
Some notable features are listed here, but there are a lot of additional things which would be beyond the scope of this text. See the<a class="extern" href="https://dlang.org/comparison.html" target="_blank">D feature page</a>or the <a class="extern" href="https://ddili.org/ders/d.en/index.html" target="_blank">Programming in D</a> online book for a more general overview.
</p>
<dl class="feat">
<dt>Templates, mixins and compile-time functions</dt>
<dd>
<p>The meta-programming system in D is extremely powerful. Templates (comparable to C++ templates) support variadic parameters, as well as string and alias parameters - a feature which enables very comfortable compile-time interfaces.</p><p>The ultimate power is given by the possibility to execute ordinary functions at compile time, as well as the ability to compile a string given at compile time as D code. This functionality is similar to JavaScript's <code>eval()</code> function, just that the result is statically compiled to machine code (and without the runtime security implications of <code>eval()</code>).</p><p>These features together with the possibility to read files at compile time have enabled the powerful <a href="#diet-templates">Diet template</a> parser.</p>
</dd>
<dt>Garbage collection</dt>
<dd>
<p>The D runtime offers built-in garbage collection, which enables some interesting possibilities, apart from the obvious advantage of no need for manual memory management and the associated risk of memory leaks and dangerous dangling references.</p><p>Most notably, it allows to work with immutable data, such as strings or objects, which can be safely referenced and passed between threads without any synchronization overhead. When passing data between threads, it is statically enforced that the data is safe to be referenced from multiple threads. This avoids a whole class of difficult to reproduce and track down bugs common in multi-threaded code of many other languages.</p>
</dd>
<dt>Closures and lambdas</dt>
<dd>
<p>A feature also known from some scripting and functional languages, but also C# and a few others are closures and lambdas. They allow to specify callback functions in a very compact and readable way. In turn they tend to have a strong influence on the API design, as they can make computationally efficient or safe APIs actually bearable (or even pleasant) to use.</p>
</dd>
<dt>Properties</dt>
<dd>
<p>Properties are functions that look like they were a field of a class or struct. They are used throughout the API to get a logical and intuitive interface without all clamps and additional typing needed for normal function calls.</p>
</dd>
<dt>Module system</dt>
<dd>
<p>D's module system is similar to the one used in Java. Among other things it encodes the dependencies between different modules (D files) in a semantically clear way. Using this information, it becomes possible to build whole applications just by specifying the root file (app.d) on the command line. The dependencies can be found recursively. The <a href="https://dlang.org/rdmd.html">rdmd</a> build tool included with the D compiler, which is supported by the <a href="https://github.com/rejectedsoftware/dub">DUB package manager</a>, works this way.</p>
</dd>
<dt>Arrays and slices</dt>
<dd>
<p>Arrays support native slicing with a very natural syntax. Together with the garbage collector they enable extremely fast string parser implementations which are safe (bounds checking) and easy to read at the same time.</p>
</dd>
<dt>Concise and readable syntax</dt>
<dd>
<p>The syntax in general is very clean and to the point - especially compared to its perhaps closest relative, C++. But it doesn't need to fear modern scripting languages such as Ruby and Python in this regard either. Apart from the occasional need to specify an explicit type (types can be inferred using <code>auto</code>), you will discover that there is not much to miss and that development using D is highly efficient.</p>
</dd>
</dl>
</section>
<section>
<h3 id="diet-templates">Compile-time "Diet" templates</h3>
<img class="leftFlow" src="images/feature_diet.png"/>
<p>vibe.d has built-in support for <a href="docs#html-templates">Diet HTML templates</a> based on the <a class="extern" href="https://pugjs.org/" target="_blank">Pug</a> template syntax known from node.js which in turn is based on <a class="extern" href="https://haml-lang.com/" target="_blank">Haml</a>. These templates remove all the syntax overhead that is inherent to HTML's tag based notation and also allow the inline specification of dynamic elements. Typically, these elements are written in a dynamic scripting language (JavaScript in case of Pug).</p><p>In vibe.d, however, templates can contain embedded D code. The templates are read and parsed while the application is being compiled and optimized D code is generated for them. This means that the runtime overhead for those templates is non-existent - there are no disk accesses, no parsing and there is no string copying involved because all of this has already been done before the application has even started.</p><p>At the same time you can program in the same language as for the rest of the application, which makes for a very consistent development experience.</p>
</section>
</section>
<script>prettyPrint();</script>
</div>
</section>
</div>
<footer>
<div class="copyright">Copyright © 2012-2026 Sönke Ludwig</div>
<div>
<a href="./impressum">Impressum</a> –
<a href="./about#license">License</a> –
<a href="./contact">Contact</a>
</div>
</footer>
<div class="bs-fl"></div><div class="bs-fr"></div>
</body>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,146 @@
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-1980 by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="D programming language">
<meta name="description" content="D Programming Language Forum">
<title>Index - D Programming Language Discussion Forum</title>
<link rel="stylesheet" href="/static-bundle/9b4ae9ad9046a03e/dlang.org/css/style.css+css/dfeed.css+css/highlight-js.css">
<link rel="stylesheet" href="/static/cd86fba1142212f3/dlang.org/css/print.css" media="print">
<link rel="shortcut icon" href="/static/646be44ba2bed013/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
<link rel="alternate" type="application/atom+xml" title="New posts" href="/feed/posts" /><link rel="alternate" type="application/atom+xml" title="New threads" href="/feed/threads" /><meta property="og:title" content="Index" /><meta property="og:type" content="website" /><meta property="og:url" content="https://forum.dlang.org/" /><meta property="og:image" content="https://dlang.org/images/dlogo_opengraph.png" /><meta property="og:description" content="D Programming Language Forum" />
</head>
<body id='' class='forum narrowdoc'>
<script type="text/javascript">document.body.className += ' have-javascript'</script>
<div id="top"><div class="helper"><div class="helper expand-container"> <div class="logo"><a href="https://dlang.org"><img id="logo" alt="D Logo" src="/static/5cd297e106abe5ea/dlang.org/images/dlogo.svg"></a></div>
<a href="https://dlang.org/menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
<div id="cssmenu"><ul> <li><a href='https://tour.dlang.org'><span>Learn</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='https://dlang.org/documentation.html'><span>Documentation</span></a>
<ul class='expand-content'> <li><a href='https://dlang.org/spec/spec.html'>Language Reference</a></li>
<li><a href='https://dlang.org/phobos/index.html'>Library Reference</a></li>
<li><a href='https://dlang.org/dmd.html'>Command-line Reference</a></li>
<li class="menu-divider"><a href='https://dlang.org/comparison.html'>Feature Overview</a></li>
<li><a href='https://dlang.org/articles.html'>Articles</a></li>
</ul></li>
<li><a href='https://dlang.org/download.html'><span>Downloads</span></a></li>
<li><a href='https://code.dlang.org'><span>Packages</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='https://dlang.org/community.html'><span>Community</span></a>
<ul class='expand-content'> <li><a href='https://dlang.org/blog'>Blog</a></li>
<li><a href='https://dlang.org/orgs-using-d.html'>Orgs using D</a></li>
<li><a href='https://twitter.com/search?q=%23dlang'>Twitter</a></li>
<li><a href='https://dlang.org/calendar.html'>Calendar</a></li>
<li class="menu-divider"><a href='https://forum.dlang.org'>Forums</a></li>
<li><a href='irc://irc.freenode.net/d'>IRC</a></li>
<li><a href='https://wiki.dlang.org'>Wiki</a></li>
<li class="menu-divider"><a href='https://github.com/dlang'>GitHub</a></li>
<li><a href='https://dlang.org/bugstats.html'>Issues</a></li>
<li><a href='https://wiki.dlang.org/Get_involved'>Get involved</a></li>
<li class="menu-divider"><a href='https://dlang.org/foundation/contributors.html'>Contributors</a></li>
<li><a href='https://dlang.org/foundation/index.html'>Foundation</a></li>
<li><a href='https://dlang.org/foundation/donate.html'>Donate</a></li>
<li><a href='https://dlang.org/foundation/sponsors.html'>Sponsors</a></li>
</ul></li>
<li class='expand-container'><a class='expand-toggle' href='https://dlang.org/resources.html'><span>Resources</span></a>
<ul class='expand-content'> <li><a href='https://tour.dlang.org'>Tour</a></li>
<li><a href='https://wiki.dlang.org/Books'>Books</a></li>
<li><a href='https://wiki.dlang.org/Tutorials'>Tutorials</a></li>
<li class="menu-divider"><a href='https://wiki.dlang.org/Development_tools'>Tools</a></li>
<li><a href='https://wiki.dlang.org/Editors'>Editors</a></li>
<li><a href='https://wiki.dlang.org/IDEs'>IDEs</a></li>
<li><a href='http://rainers.github.io/visuald/visuald/StartPage.html'>Visual D</a></li>
<li class="menu-divider"><a href='https://dlang.org/acknowledgements.html'>Acknowledgments</a></li>
<li><a href='https://dlang.org/dstyle.html'>D Style</a></li>
<li><a href='https://dlang.org/glossary.html'>Glossary</a></li>
<li><a href='https://dlang.org/sitemap.html'>Sitemap</a></li>
</ul></li>
</ul></div>
<div class="search-container expand-container"> <a href="https://dlang.org/search.html" class="expand-toggle" title="Search"><span>Search</span></a>
<div id="search-box"> <form method="get" action="/search">
<span id="search-query"><input id="q" name="q" placeholder="Search"></span><span id="search-dropdown"><span class="helper"> <select id="search-scope" name="scope" size="1">
<option value="dlang.org">Entire Site</option>
<option value="dlang.org/spec">Language</option>
<option value="dlang.org/phobos">Library</option>
<option value="forum" selected>Forums</option>
</select>
</span></span><span id="search-submit"><button type="submit"><i class="fa fa-search"></i><span>go</span></button></span>
</form>
</div>
</div>
</div></div></div>
<div class="container">
<div class="subnav-helper"></div> <div class="subnav"> <div class="head"> <h2>Forums</h2>
<p><a href="/">Forum Index</a></p>
</div>
<ul> <li>New users <ul> <li><a href="/group/learn">Learn</a></li>
</ul></li>
<li>Community <ul> <li><a href="/group/general">General</a></li>
<li><a href="/group/announce">Announce</a></li>
</ul></li>
<li>Improvements <ul> <li><a href="/group/dip.ideas">DIP Ideas</a></li>
<li><a href="/group/dip.development">DIP Devel.</a></li>
</ul></li>
<li>Ecosystem <ul> <li><a href="/group/gdc">GDC</a></li>
<li><a href="/group/ldc">LDC</a></li>
<li><a href="/group/debugger">Debuggers</a></li>
<li><a href="/group/ide">IDEs</a></li>
<li><a href="/group/dwt">DWT</a></li>
</ul></li>
<li>Development <ul> <li><a href="/group/internals">Internals</a></li>
<li><a href="/group/issues">Issues</a></li>
<li><a href="/group/beta">Beta</a></li>
<li><a href="/group/dmd">DMD</a></li>
<li><a href="/group/phobos">Phobos</a></li>
<li><a href="/group/druntime">Druntime</a></li>
<li><a href="/group/study">Study</a></li>
</ul></li>
<li>Turkish <ul> <li><a href="/group/turkish.genel">Genel</a></li>
<li><a href="/group/turkish.duyuru">Duyuru</a></li>
</ul></li>
</ul>
</div>
<div class="" id="content"> <div class="smallprint" id="tools"><div id="forum-tools-right"><div class="tip"><a href="/loginform?url=%2F">Log in</a></div> <div class="tip"><a href="/settings">Settings</a></div> <div class="tip"><a href="/help">Help</a></div></div><div id="forum-tools-left"></div></div>
<h1></h1>
<div id="forum-content"><div id="forum-index-header"><h1>D Programming Language Forum</h1><p>Welcome, Guest.</p><ul><li>You can read and post on this forum without <a href="/register">creating an account</a>, but creating an account offers <a href="/help#accounts">a few benefits</a>.</li><li>3 users have created <a href="/search?q=time:639285327765667777..">3 posts</a> in the last 24 hours.</li><li>There are 848,472 posts, 136,067 threads, and 7,474 registered users on this forum.</li><li>Random tip: To subscribe to a thread, click the "Subscribe" link on that thread's first post. You need to be logged in to create subscriptions.</li></ul></div><table id="forum-index" class="forum-table"><tr class="table-fixed-dummy"><td></td><td></td><td></td><td></td><td></td></tr><tr><th colspan="5">New users</th></tr><tr class="subheader"><th>Group</th><th>Last Post</th><th>Threads</th><th>Posts</th><th>Also via</th></tr><tr class="group-row"><td class="forum-index-col-forum"><a href="/group/learn">Learn</a><div class="forum-index-description" title="Questions about learning and using D">Questions about learning and using D</div></td><td class="forum-index-col-lastpost"><div class="truncated"><a class="forum-postsummary-subject forum-unread" href="/post/gazrctevmvrdqpcmhiri@forum.dlang.org" title="Re: Microsoft chose Go instead of C# or Rust to rewrite TypeScript">Re: Microsoft chose Go instead of C# or Rust to rewrite TypeScript</a></div><div class="truncated">by <span class="forum-postsummary-author" title="monkyyy">monkyyy</span></div><span class="forum-postsummary-time"><span style="" title="Saturday, 24 October 2026, 02:56:04 UTC">2 days ago</span></span></td><td class="number-column">22,245</td><td class="number-column">140,376</td><td class="number-column"><a href="news://news.digitalmars.com/digitalmars.D.learn">NNTP</a><br><a href="http://lists.puremagic.com/cgi-bin/mailman/listinfo/digitalmars-d-learn">mailing list</a><br><a href="http://www.digitalmars.com/d/archives/digitalmars/D/learn/">archive</a></td></tr><tr><th colspan="5">Community</th></tr><tr class="subheader"><th>Group</th><th>Last Post</th><th>Threads</th><th>Posts</th><th>Also via</th></tr><tr class="group-row"><td class="forum-index-col-forum"><a href="/group/general">General</a><div class="forum-index-description" title="Discussion of the D programming language">Discussion of the D programming language</div></td><td class="forum-index-col-lastpost"><div class="truncated"><a class="forum-postsummary-subject forum-unread" href="/post/zxiuytqanuiqgbykipxw@forum.dlang.org" title="Re: Ant Farm - A concurrent M:N jobs distributor">Re: Ant Farm - A concurrent M:N jobs distributor</a></div><div class="truncated">by <span class="forum-postsummary-author" title="Nathan Riddick">Nathan Riddick</span></div><span class="forum-postsummary-time"><span style="" title="Sunday, 25 October 2026, 20:44:28 UTC">17 hours ago</span></span></td><td class="number-column">27,148</td><td class="number-column">379,787</td><td class="number-column"><a href="news://news.digitalmars.com/digitalmars.D">NNTP</a><br><a href="http://lists.puremagic.com/cgi-bin/mailman/listinfo/digitalmars-d">mailing list</a><br><a href="http://www.digitalmars.com/d/archives/digitalmars/D/">archive</a></td></tr><tr class="group-row"><td class="forum-index-col-forum"><a href="/group/announce">Announce</a><div class="forum-index-description" title="News and announcements for anything D related">News and announcements for anything D related</div></td><td class="forum-index-col-lastpost"><div class="truncated"><a class="forum-postsummary-subject forum-unread" href="/post/ittnjaznkqflvahfitcb@forum.dlang.org" title="Re: Semantic file system - Vitis">Re: Semantic file system - Vitis</a></div><div class="truncated">by <span class="forum-postsummary-author" title="Mindy Batek (0xEAB)">Mindy Batek (0xEAB)</span></div><span class="forum-postsummary-time"><span style="" title="Sunday, 25 October 2026, 03:23:51 UTC">1 day ago</span></span></td><td class="number-column">6,037</td><td class="number-column">65,567</td><td class="number-column"><a href="news://news.digitalmars.com/digitalmars.D.announce">NNTP</a><br><a href="http://lists.puremagic.com/cgi-bin/mailman/listinfo/digitalmars-d-announce">mailing list</a><br><a href="http://www.digitalmars.com/d/archives/digitalmars/D/announce/">archive</a></td></tr><tr><th colspan="5">Improvements</th></tr><tr class="subheader"><th>Group</th><th>Last Post</th><th>Threads</th><th>Posts</th><th>Also via</th></tr><tr class="group-row"><td class="forum-index-col-forum"><a href="/group/dip.ideas">DIP Ideas</a><div class="forum-index-description" title="Ideas for improving the D programming language">Ideas for improving the D programming language</div></td><td class="forum-index-col-lastpost"><div class="truncated"><a class="forum-postsummary-subject forum-unread" href="/post/tdihefmeuyevzerdakud@forum.dlang.org" title="Re: Introduce: `__traits(version, IDENTIFIER)` to eLine truncated
<div id="footernav"> <a href="#top" title="Jump to the top of the page">Top</a> |
<a href="/">Forum index</a> |
<a href="/help#about">About this forum</a>
</div>
<div class="smallprint" id="copyright">Copyright &copy; 1999-1980 by the <a href="https://dlang.org/foundation_overview.html">D Language Foundation</a></div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="/static/b8d64d0bc142b3f6/dlang.org/js/jquery-1.7.2.min.js">\x3C/script>');var enableKeyNav=true,autoOpen=false,toolsTemplate="\u003cdiv class=\"tip\"\u003e\u003ca href=\"/loginform?url=__URL__\"\u003eLog in\u003c/a\u003e\u003c/div\u003e \u003cdiv class=\"tip\"\u003e\u003ca href=\"/settings\"\u003eSettings\u003c/a\u003e\u003c/div\u003e \u003cdiv class=\"tip\"\u003e\u003ca href=\"/help\"\u003eHelp\u003c/a\u003e\u003c/div\u003e",localization={"Open link":"Open link","Scroll message / Open next unread message":"Scroll message / Open next unread message","Error auto-saving draft.":"Error auto-saving draft.","Ctrl":"Ctrl","Keyboard shortcuts":"Keyboard shortcuts","Up Arrow":"Up Arrow","Select next message":"Select next message","Space Bar":"Space Bar","Reply":"Reply","Open selected message":"Open selected message","Select previous message":"Select previous message","Enter / Return":"Enter / Return","Toggle navigation":"Toggle navigation","Create thread":"Create thread","Down Arrow":"Down Arrow","Draft saved.":"Draft saved.","Loading message":"Loading message","Your browser does not support HTML5 pushState.":"Your browser does not support HTML5 pushState.","Mark as unread":"Mark as unread","(press any key or click to close)":"(press any key or click to close)"};</script>
<script type="text/javascript" src="/static-bundle/a4eec4d35f7e777f/dlang.org/js/dlang.js+js/dfeed.js"></script>
<script src="/static/4851f214d4ff5c06/js/highlight.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
@@ -0,0 +1,631 @@
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-2026 by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="D programming language">
<meta name="description" content="D Programming Language">
<title>Phobos Runtime Library - D Programming Language</title>
<link rel="stylesheet" href="../css/codemirror.css">
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/print.css" media="print">
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
</head>
<body id='Phobos Runtime Library' class='std'>
<script type="text/javascript">document.body.className += ' have-javascript'</script>
<div id="top"><div class="helper"><div class="helper expand-container"> <div class="logo"><a href=".."><img id="logo" alt="D Logo" src="../images/dlogo.svg"></a></div>
<a href="../menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
<div id="cssmenu"><ul> <li><a href='https://tour.dlang.org'><span>Learn</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../documentation.html'><span>Documentation</span></a>
<ul class='expand-content'> <li><a href='../spec/spec.html'>Language Reference</a></li>
<li><a href='../phobos/index.html'>Library Reference</a></li>
<li><a href='../dmd.html'>Command-line Reference</a></li>
<li class="menu-divider"><a href='../comparison.html'>Feature Overview</a></li>
<li><a href='../articles.html'>Articles</a></li>
</ul></li>
<li><a href='../download.html'><span>Downloads</span></a></li>
<li><a href='https://code.dlang.org'><span>Packages</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../community.html'><span>Community</span></a>
<ul class='expand-content'> <li><a href='https://blog.dlang.org'>Blog</a></li>
<li><a href='../orgs-using-d.html'>Orgs using D</a></li>
<li><a href='https://twitter.com/search?q=%23dlang'>Twitter</a></li>
<li class="menu-divider"><a href='https://discord.gg/bMZk9Q4'>Discord (community-run)</a></li>
<li><a href='https://forum.dlang.org'>Forums</a></li>
<li><a href='irc://irc.libera.chat/d'>IRC</a></li>
<li><a href='https://wiki.dlang.org'>Wiki</a></li>
<li class="menu-divider"><a href='../bugstats.html'>Issues</a></li>
<li><a href='../contributing.html'>Contributing</a></li>
<li class="menu-divider"><a href='../foundation/contributors.html'>Contributors</a></li>
<li><a href='../foundation/index.html'>Foundation</a></li>
<li><a href='..//security.html'>Security Team</a></li>
<li class="menu-divider"><a href='https://store.dlang.org/'>Store</a></li>
<li><a href='../foundation/donate.html'>Donate</a></li>
<li><a href='../foundation/sponsors.html'>Sponsors</a></li>
</ul></li>
<li class='expand-container'><a class='expand-toggle' href='../resources.html'><span>Resources</span></a>
<ul class='expand-content'> <li><a href='https://tour.dlang.org'>Tour</a></li>
<li><a href='https://wiki.dlang.org/Books'>Books</a></li>
<li><a href='https://wiki.dlang.org/Tutorials'>Tutorials</a></li>
<li class="menu-divider"><a href='https://wiki.dlang.org/Development_tools'>Tools</a></li>
<li><a href='https://wiki.dlang.org/Editors'>Editors</a></li>
<li><a href='https://wiki.dlang.org/IDEs'>IDEs</a></li>
<li><a href='https://run.dlang.io'>run.dlang.io</a></li>
<li><a href='http://rainers.github.io/visuald/visuald/StartPage.html'>Visual D</a></li>
<li class="menu-divider"><a href='../acknowledgements.html'>Acknowledgments</a></li>
<li><a href='../dstyle.html'>D Style</a></li>
<li><a href='../spec/glossary.html'>Glossary</a></li>
<li><a href='../sitemap.html'>Sitemap</a></li>
</ul></li>
</ul></div>
<div class="search-container expand-container"> <a href="../search.html" class="expand-toggle" title="Search"><span>Search</span></a>
<div id="search-box"> <form method="get" action="https://google.com/search">
<input type="hidden" id="domains" name="domains" value="dlang.org">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
<span id="search-query"><input id="q" name="q" placeholder="Google Search"></span><span id="search-dropdown"><span class="helper"> <select id="sitesearch" name="sitesearch" size="1">
<option value="dlang.org">Entire Site</option>
<option value="dlang.org/spec">Language</option>
<option selected value="dlang.org/phobos">Library</option>
<option value="forum.dlang.org">Forums</option>
</select>
</span></span><span id="search-submit"><button type="submit"><i class="fa fa-search"></i><span>go</span></button></span>
</form>
</div>
</div>
</div></div></div>
<div class="container">
<div class="subnav-helper"></div> <div class="subnav"> <div class="head"> <h2>Library Reference</h2>
<p><span class="smallprint">version 2.113.0 <span class="separator"><br></span>
</span>
</p>
<p><a href="index.html">overview</a></p>
</div>
<ul>
<li><a href='object.html'><span><em class="tt">object</em></span></a></li>
<li class='expand-container modlist-submenu-std'><a class='expand-toggle' href='#'><span><em class="tt">std</em></span></a>
<ul><li> <a href="std_algorithm.html" title="std.algorithm"><span class="d_inlinecode donthyphenate notranslate">algorithm</span></a><ul><li> <a href="std_algorithm_comparison.html" title="std.algorithm.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="std_algorithm_iteration.html" title="std.algorithm.iteration"><span class="d_inlinecode donthyphenate notranslate">iteration</span></a></li><li> <a href="std_algorithm_mutation.html" title="std.algorithm.mutation"><span class="d_inlinecode donthyphenate notranslate">mutation</span></a></li><li> <a href="std_algorithm_searching.html" title="std.algorithm.searching"><span class="d_inlinecode donthyphenate notranslate">searching</span></a></li><li> <a href="std_algorithm_setops.html" title="std.algorithm.setops"><span class="d_inlinecode donthyphenate notranslate">setops</span></a></li><li> <a href="std_algorithm_sorting.html" title="std.algorithm.sorting"><span class="d_inlinecode donthyphenate notranslate">sorting</span></a>
</li></ul></li><li> <a href="std_array.html" title="std.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_ascii.html" title="std.ascii"><span class="d_inlinecode donthyphenate notranslate">ascii</span></a></li><li> <a href="std_base64.html" title="std.base64"><span class="d_inlinecode donthyphenate notranslate">base64</span></a></li><li> <a href="std_bigint.html" title="std.bigint"><span class="d_inlinecode donthyphenate notranslate">bigint</span></a></li><li> <a href="std_bitmanip.html" title="std.bitmanip"><span class="d_inlinecode donthyphenate notranslate">bitmanip</span></a></li><li> <a href="std_checkedint.html" title="std.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_compiler.html" title="std.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="std_complex.html" title="std.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="std_concurrency.html" title="std.concurrency"><span class="d_inlinecode donthyphenate notranslate">concurrency</span></a></li><li> <a href="std_container.html" title="std.container"><span class="d_inlinecode donthyphenate notranslate">container</span></a><ul><li> <a href="std_container_array.html" title="std.container.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_container_binaryheap.html" title="std.container.binaryheap"><span class="d_inlinecode donthyphenate notranslate">binaryheap</span></a></li><li> <a href="std_container_dlist.html" title="std.container.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="std_container_rbtree.html" title="std.container.rbtree"><span class="d_inlinecode donthyphenate notranslate">rbtree</span></a></li><li> <a href="std_container_slist.html" title="std.container.slist"><span class="d_inlinecode donthyphenate notranslate">slist</span></a></li><li> <a href="std_container_util.html" title="std.container.util"><span class="d_inlinecode donthyphenate notranslate">util</span></a>
</li></ul></li><li> <a href="std_conv.html" title="std.conv"><span class="d_inlinecode donthyphenate notranslate">conv</span></a></li><li> <a href="std_csv.html" title="std.csv"><span class="d_inlinecode donthyphenate notranslate">csv</span></a></li><li> <a href="std_datetime.html" title="std.datetime"><span class="d_inlinecode donthyphenate notranslate">datetime</span></a><ul><li> <a href="std_datetime_date.html" title="std.datetime.date"><span class="d_inlinecode donthyphenate notranslate">date</span></a></li><li> <a href="std_datetime_interval.html" title="std.datetime.interval"><span class="d_inlinecode donthyphenate notranslate">interval</span></a></li><li> <a href="std_datetime_stopwatch.html" title="std.datetime.stopwatch"><span class="d_inlinecode donthyphenate notranslate">stopwatch</span></a></li><li> <a href="std_datetime_systime.html" title="std.datetime.systime"><span class="d_inlinecode donthyphenate notranslate">systime</span></a></li><li> <a href="std_datetime_timezone.html" title="std.datetime.timezone"><span class="d_inlinecode donthyphenate notranslate">timezone</span></a>
</li></ul></li><li> <a href="std_demangle.html" title="std.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="std_digest.html" title="std.digest"><span class="d_inlinecode donthyphenate notranslate">digest</span></a><ul><li> <a href="std_digest_crc.html" title="std.digest.crc"><span class="d_inlinecode donthyphenate notranslate">crc</span></a></li><li> <a href="std_digest_hmac.html" title="std.digest.hmac"><span class="d_inlinecode donthyphenate notranslate">hmac</span></a></li><li> <a href="std_digest_md.html" title="std.digest.md"><span class="d_inlinecode donthyphenate notranslate">md</span></a></li><li> <a href="std_digest_murmurhash.html" title="std.digest.murmurhash"><span class="d_inlinecode donthyphenate notranslate">murmurhash</span></a></li><li> <a href="std_digest_ripemd.html" title="std.digest.ripemd"><span class="d_inlinecode donthyphenate notranslate">ripemd</span></a></li><li> <a href="std_digest_sha.html" title="std.digest.sha"><span class="d_inlinecode donthyphenate notranslate">sha</span></a>
</li></ul></li><li> <a href="std_encoding.html" title="std.encoding"><span class="d_inlinecode donthyphenate notranslate">encoding</span></a></li><li> <a href="std_exception.html" title="std.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">experimental</span></h7><ul><li> <a href="std_experimental_allocator.html" title="std.experimental.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a><ul><li> <a href="std_experimental_allocator_building_blocks.html" title="std.experimental.allocator.building_blocks"><span class="d_inlinecode donthyphenate notranslate">building_blocks</span></a><ul><li> <a href="std_experimental_allocator_building_blocks_affix_allocator.html" title="std.experimental.allocator.building_blocks.affix_allocator"><span class="d_inlinecode donthyphenate notranslate">affix_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_aligned_block_list.html" title="std.experimental.allocator.building_blocks.aligned_block_list"><span class="d_inlinecode donthyphenate notranslate">aligned_block_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_allocator_list.html" title="std.experimental.allocator.building_blocks.allocator_list"><span class="d_inlinecode donthyphenate notranslate">allocator_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_ascending_page_allocator.html" title="std.experimental.allocator.building_blocks.ascending_page_allocator"><span class="d_inlinecode donthyphenate notranslate">ascending_page_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bitmapped_block.html" title="std.experimental.allocator.building_blocks.bitmapped_block"><span class="d_inlinecode donthyphenate notranslate">bitmapped_block</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bucketizer.html" title="std.experimental.allocator.building_blocks.bucketizer"><span class="d_inlinecode donthyphenate notranslate">bucketizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_fallback_allocator.html" title="std.experimental.allocator.building_blocks.fallback_allocator"><span class="d_inlinecode donthyphenate notranslate">fallback_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_list.html" title="std.experimental.allocator.building_blocks.free_list"><span class="d_inlinecode donthyphenate notranslate">free_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_tree.html" title="std.experimental.allocator.building_blocks.free_tree"><span class="d_inlinecode donthyphenate notranslate">free_tree</span></a></li><li> <a href="std_experimental_allocator_building_blocks_kernighan_ritchie.html" title="std.experimental.allocator.building_blocks.kernighan_ritchie"><span class="d_inlinecode donthyphenate notranslate">kernighan_ritchie</span></a></li><li> <a href="std_experimental_allocator_building_blocks_null_allocator.html" title="std.experimental.allocator.building_blocks.null_allocator"><span class="d_inlinecode donthyphenate notranslate">null_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_quantizer.html" title="std.experimental.allocator.building_blocks.quantizer"><span class="d_inlinecode donthyphenate notranslate">quantizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_region.html" title="std.experimental.allocator.building_blocks.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="std_experimental_allocator_building_blocks_scoped_allocator.html" title="std.experimental.allocator.building_blocks.scoped_allocator"><span class="d_inlinecode donthyphenate notranslate">scoped_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_segregator.html" title="std.experimental.allocator.building_blocks.segregator"><span class="d_inlinecode donthyphenate notranslate">segregator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_stats_collector.html" title="std.experimental.allocator.building_blocks.stats_collector"><span class="d_inlinecode donthyphenate notranslate">stats_collector</span></a>
</li></ul></li><li> <a href="std_experimental_allocator_common.html" title="std.experimental.allocator.common"><span class="d_inlinecode donthyphenate notranslate">common</span></a></li><li> <a href="std_experimental_allocator_gc_allocator.html" title="std.experimental.allocator.gc_allocator"><span class="d_inlinecode donthyphenate notranslate">gc_allocator</span></a></li><li> <a href="std_experimental_allocator_mallocator.html" title="std.experimental.allocator.mallocator"><span class="d_inlinecode donthyphenate notranslate">mallocator</span></a></li><li> <a href="std_experimental_allocator_mmap_allocator.html" title="std.experimental.allocator.mmap_allocator"><span class="d_inlinecode donthyphenate notranslate">mmap_allocator</span></a></li><li> <a href="std_experimental_allocator_showcase.html" title="std.experimental.allocator.showcase"><span class="d_inlinecode donthyphenate notranslate">showcase</span></a></li><li> <a href="std_experimental_allocator_typed.html" title="std.experimental.allocator.typed"><span class="d_inlinecode donthyphenate notranslate">typed</span></a>
</li></ul></li><li> <a href="std_experimental_checkedint.html" title="std.experimental.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_experimental_logger.html" title="std.experimental.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_experimental_logger_core.html" title="std.experimental.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_experimental_logger_filelogger.html" title="std.experimental.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_experimental_logger_multilogger.html" title="std.experimental.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_experimental_logger_nulllogger.html" title="std.experimental.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul>
</li></ul></li><li> <a href="std_file.html" title="std.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="std_format.html" title="std.format"><span class="d_inlinecode donthyphenate notranslate">format</span></a><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <a href="std_format_internal_floats.html" title="std.format.internal.floats"><span class="d_inlinecode donthyphenate notranslate">floats</span></a></li><li> <a href="std_format_internal_read.html" title="std.format.internal.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_internal_write.html" title="std.format.internal.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_format_read.html" title="std.format.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_spec.html" title="std.format.spec"><span class="d_inlinecode donthyphenate notranslate">spec</span></a></li><li> <a href="std_format_write.html" title="std.format.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_functional.html" title="std.functional"><span class="d_inlinecode donthyphenate notranslate">functional</span></a></li><li> <a href="std_getopt.html" title="std.getopt"><span class="d_inlinecode donthyphenate notranslate">getopt</span></a></li><li> <a href="std_int128.html" title="std.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="std_json.html" title="std.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="std_logger.html" title="std.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_logger_core.html" title="std.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_logger_filelogger.html" title="std.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_logger_multilogger.html" title="std.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_logger_nulllogger.html" title="std.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul></li><li> <a href="std_math.html" title="std.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a><ul><li> <a href="std_math_algebraic.html" title="std.math.algebraic"><span class="d_inlinecode donthyphenate notranslate">algebraic</span></a></li><li> <a href="std_math_constants.html" title="std.math.constants"><span class="d_inlinecode donthyphenate notranslate">constants</span></a></li><li> <a href="std_math_exponential.html" title="std.math.exponential"><span class="d_inlinecode donthyphenate notranslate">exponential</span></a></li><li> <a href="std_math_hardware.html" title="std.math.hardware"><span class="d_inlinecode donthyphenate notranslate">hardware</span></a></li><li> <a href="std_math_operations.html" title="std.math.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="std_math_remainder.html" title="std.math.remainder"><span class="d_inlinecode donthyphenate notranslate">remainder</span></a></li><li> <a href="std_math_rounding.html" title="std.math.rounding"><span class="d_inlinecode donthyphenate notranslate">rounding</span></a></li><li> <a href="std_math_traits.html" title="std.math.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_math_trigonometry.html" title="std.math.trigonometry"><span class="d_inlinecode donthyphenate notranslate">trigonometry</span></a>
</li></ul></li><li> <a href="std_mathspecial.html" title="std.mathspecial"><span class="d_inlinecode donthyphenate notranslate">mathspecial</span></a></li><li> <a href="std_meta.html" title="std.meta"><span class="d_inlinecode donthyphenate notranslate">meta</span></a></li><li> <a href="std_mmfile.html" title="std.mmfile"><span class="d_inlinecode donthyphenate notranslate">mmfile</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">net</span></h7><ul><li> <a href="std_net_curl.html" title="std.net.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="std_net_isemail.html" title="std.net.isemail"><span class="d_inlinecode donthyphenate notranslate">isemail</span></a>
</li></ul></li><li> <a href="std_numeric.html" title="std.numeric"><span class="d_inlinecode donthyphenate notranslate">numeric</span></a></li><li> <a href="std_outbuffer.html" title="std.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="std_parallelism.html" title="std.parallelism"><span class="d_inlinecode donthyphenate notranslate">parallelism</span></a></li><li> <a href="std_path.html" title="std.path"><span class="d_inlinecode donthyphenate notranslate">path</span></a></li><li> <a href="std_process.html" title="std.process"><span class="d_inlinecode donthyphenate notranslate">process</span></a></li><li> <a href="std_random.html" title="std.random"><span class="d_inlinecode donthyphenate notranslate">random</span></a></li><li> <a href="std_range.html" title="std.range"><span class="d_inlinecode donthyphenate notranslate">range</span></a><ul><li> <a href="std_range_interfaces.html" title="std.range.interfaces"><span class="d_inlinecode donthyphenate notranslate">interfaces</span></a></li><li> <a href="std_range_primitives.html" title="std.range.primitives"><span class="d_inlinecode donthyphenate notranslate">primitives</span></a>
</li></ul></li><li> <a href="std_regex.html" title="std.regex"><span class="d_inlinecode donthyphenate notranslate">regex</span></a></li><li> <a href="std_signals.html" title="std.signals"><span class="d_inlinecode donthyphenate notranslate">signals</span></a></li><li> <a href="std_socket.html" title="std.socket"><span class="d_inlinecode donthyphenate notranslate">socket</span></a></li><li> <a href="std_stdint.html" title="std.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="std_stdio.html" title="std.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="std_string.html" title="std.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="std_sumtype.html" title="std.sumtype"><span class="d_inlinecode donthyphenate notranslate">sumtype</span></a></li><li> <a href="std_system.html" title="std.system"><span class="d_inlinecode donthyphenate notranslate">system</span></a></li><li> <a href="std_traits.html" title="std.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_typecons.html" title="std.typecons"><span class="d_inlinecode donthyphenate notranslate">typecons</span></a></li><li> <a href="std_uni.html" title="std.uni"><span class="d_inlinecode donthyphenate notranslate">uni</span></a></li><li> <a href="std_uri.html" title="std.uri"><span class="d_inlinecode donthyphenate notranslate">uri</span></a></li><li> <a href="std_utf.html" title="std.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a></li><li> <a href="std_uuid.html" title="std.uuid"><span class="d_inlinecode donthyphenate notranslate">uuid</span></a></li><li> <a href="std_variant.html" title="std.variant"><span class="d_inlinecode donthyphenate notranslate">variant</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="std_windows_charset.html" title="std.windows.charset"><span class="d_inlinecode donthyphenate notranslate">charset</span></a></li><li> <a href="std_windows_syserror.html" title="std.windows.syserror"><span class="d_inlinecode donthyphenate notranslate">syserror</span></a>
</li></ul></li><li> <a href="std_zip.html" title="std.zip"><span class="d_inlinecode donthyphenate notranslate">zip</span></a></li><li> <a href="std_zlib.html" title="std.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-etc'><a class='expand-toggle' href='#'><span><em class="tt">etc</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">c</span></h7><ul><li> <a href="etc_c_curl.html" title="etc.c.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="etc_c_odbc.html" title="etc.c.odbc"><span class="d_inlinecode donthyphenate notranslate">odbc</span></a><ul><li> <a href="etc_c_odbc_odbc32.html" title="etc.c.odbc.odbc32"><span class="d_inlinecode donthyphenate notranslate">odbc32</span></a></li><li> <a href="etc_c_odbc_odbc64.html" title="etc.c.odbc.odbc64"><span class="d_inlinecode donthyphenate notranslate">odbc64</span></a></li><li> <a href="etc_c_odbc_sql.html" title="etc.c.odbc.sql"><span class="d_inlinecode donthyphenate notranslate">sql</span></a></li><li> <a href="etc_c_odbc_sqlext.html" title="etc.c.odbc.sqlext"><span class="d_inlinecode donthyphenate notranslate">sqlext</span></a></li><li> <a href="etc_c_odbc_sqltypes.html" title="etc.c.odbc.sqltypes"><span class="d_inlinecode donthyphenate notranslate">sqltypes</span></a></li><li> <a href="etc_c_odbc_sqlucode.html" title="etc.c.odbc.sqlucode"><span class="d_inlinecode donthyphenate notranslate">sqlucode</span></a>
</li></ul></li><li> <a href="etc_c_sqlite3.html" title="etc.c.sqlite3"><span class="d_inlinecode donthyphenate notranslate">sqlite3</span></a></li><li> <a href="etc_c_zlib.html" title="etc.c.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="etc_linux_memoryerror.html" title="etc.linux.memoryerror"><span class="d_inlinecode donthyphenate notranslate">memoryerror</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">valgrind</span></h7><ul><li> <a href="etc_valgrind_valgrind.html" title="etc.valgrind.valgrind"><span class="d_inlinecode donthyphenate notranslate">valgrind</span></a>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <a href="core_atomic.html" title="core.atomic"><span class="d_inlinecode donthyphenate notranslate">atomic</span></a></li><li> <a href="core_attribute.html" title="core.attribute"><span class="d_inlinecode donthyphenate notranslate">attribute</span></a></li><li> <a href="core_bitop.html" title="core.bitop"><span class="d_inlinecode donthyphenate notranslate">bitop</span></a></li><li> <a href="core_builtins.html" title="core.builtins"><span class="d_inlinecode donthyphenate notranslate">builtins</span></a></li><li> <a href="core_checkedint.html" title="core.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="core_cpuid.html" title="core.cpuid"><span class="d_inlinecode donthyphenate notranslate">cpuid</span></a></li><li> <a href="core_demangle.html" title="core.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="core_exception.html" title="core.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_factory.html" title="core.factory"><span class="d_inlinecode donthyphenate notranslate">factory</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">gc</span></h7><ul><li> <a href="core_gc_config.html" title="core.gc.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_gc_gcinterface.html" title="core.gc.gcinterface"><span class="d_inlinecode donthyphenate notranslate">gcinterface</span></a></li><li> <a href="core_gc_registry.html" title="core.gc.registry"><span class="d_inlinecode donthyphenate notranslate">registry</span></a>
</li></ul></li><li> <a href="core_int128.html" title="core.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="core_interpolation.html" title="core.interpolation"><span class="d_inlinecode donthyphenate notranslate">interpolation</span></a></li><li> <a href="core_lifetime.html" title="core.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="core_math.html" title="core.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_memory.html" title="core.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_runtime.html" title="core.runtime"><span class="d_inlinecode donthyphenate notranslate">runtime</span></a></li><li> <a href="core_simd.html" title="core.simd"><span class="d_inlinecode donthyphenate notranslate">simd</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_stdc_assert_.html" title="core.stdc.assert_"><span class="d_inlinecode donthyphenate notranslate">assert_</span></a></li><li> <a href="core_stdc_complex.html" title="core.stdc.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="core_stdc_ctype.html" title="core.stdc.ctype"><span class="d_inlinecode donthyphenate notranslate">ctype</span></a></li><li> <a href="core_stdc_errno.html" title="core.stdc.errno"><span class="d_inlinecode donthyphenate notranslate">errno</span></a></li><li> <a href="core_stdc_fenv.html" title="core.stdc.fenv"><span class="d_inlinecode donthyphenate notranslate">fenv</span></a></li><li> <a href="core_stdc_float_.html" title="core.stdc.float_"><span class="d_inlinecode donthyphenate notranslate">float_</span></a></li><li> <a href="core_stdc_inttypes.html" title="core.stdc.inttypes"><span class="d_inlinecode donthyphenate notranslate">inttypes</span></a></li><li> <a href="core_stdc_limits.html" title="core.stdc.limits"><span class="d_inlinecode donthyphenate notranslate">limits</span></a></li><li> <a href="core_stdc_locale.html" title="core.stdc.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_stdc_math.html" title="core.stdc.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_stdc_signal.html" title="core.stdc.signal"><span class="d_inlinecode donthyphenate notranslate">signal</span></a></li><li> <a href="core_stdc_stdarg.html" title="core.stdc.stdarg"><span class="d_inlinecode donthyphenate notranslate">stdarg</span></a></li><li> <a href="core_stdc_stdatomic.html" title="core.stdc.stdatomic"><span class="d_inlinecode donthyphenate notranslate">stdatomic</span></a></li><li> <a href="core_stdc_stddef.html" title="core.stdc.stddef"><span class="d_inlinecode donthyphenate notranslate">stddef</span></a></li><li> <a href="core_stdc_stdint.html" title="core.stdc.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="core_stdc_stdio.html" title="core.stdc.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="core_stdc_stdlib.html" title="core.stdc.stdlib"><span class="d_inlinecode donthyphenate notranslate">stdlib</span></a></li><li> <a href="core_stdc_string.html" title="core.stdc.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdc_tgmath.html" title="core.stdc.tgmath"><span class="d_inlinecode donthyphenate notranslate">tgmath</span></a></li><li> <a href="core_stdc_time.html" title="core.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_stdc_wchar_.html" title="core.stdc.wchar_"><span class="d_inlinecode donthyphenate notranslate">wchar_</span></a></li><li> <a href="core_stdc_wctype.html" title="core.stdc.wctype"><span class="d_inlinecode donthyphenate notranslate">wctype</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdcpp</span></h7><ul><li> <a href="core_stdcpp_allocator.html" title="core.stdcpp.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a></li><li> <a href="core_stdcpp_array.html" title="core.stdcpp.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_stdcpp_exception.html" title="core.stdcpp.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_stdcpp_memory.html" title="core.stdcpp.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_stdcpp_new_.html" title="core.stdcpp.new_"><span class="d_inlinecode donthyphenate notranslate">new_</span></a></li><li> <a href="core_stdcpp_string.html" title="core.stdcpp.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdcpp_string_view.html" title="core.stdcpp.string_view"><span class="d_inlinecode donthyphenate notranslate">string_view</span></a></li><li> <a href="core_stdcpp_type_traits.html" title="core.stdcpp.type_traits"><span class="d_inlinecode donthyphenate notranslate">type_traits</span></a></li><li> <a href="core_stdcpp_typeinfo.html" title="core.stdcpp.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="core_stdcpp_utility.html" title="core.stdcpp.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a></li><li> <a href="core_stdcpp_vector.html" title="core.stdcpp.vector"><span class="d_inlinecode donthyphenate notranslate">vector</span></a></li><li> <a href="core_stdcpp_xutility.html" title="core.stdcpp.xutility"><span class="d_inlinecode donthyphenate notranslate">xutility</span></a>
</li></ul></li><li> <a href="core_sync.html" title="core.sync"><span class="d_inlinecode donthyphenate notranslate">sync</span></a><ul><li> <a href="core_sync_barrier.html" title="core.sync.barrier"><span class="d_inlinecode donthyphenate notranslate">barrier</span></a></li><li> <a href="core_sync_condition.html" title="core.sync.condition"><span class="d_inlinecode donthyphenate notranslate">condition</span></a></li><li> <a href="core_sync_config.html" title="core.sync.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_sync_event.html" title="core.sync.event"><span class="d_inlinecode donthyphenate notranslate">event</span></a></li><li> <a href="core_sync_exception.html" title="core.sync.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_sync_mutex.html" title="core.sync.mutex"><span class="d_inlinecode donthyphenate notranslate">mutex</span></a></li><li> <a href="core_sync_rwmutex.html" title="core.sync.rwmutex"><span class="d_inlinecode donthyphenate notranslate">rwmutex</span></a></li><li> <a href="core_sync_semaphore.html" title="core.sync.semaphore"><span class="d_inlinecode donthyphenate notranslate">semaphore</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">darwin</span></h7><ul><li> <a href="core_sys_darwin_crt_externs.html" title="core.sys.darwin.crt_externs"><span class="d_inlinecode donthyphenate notranslate">crt_externs</span></a></li><li> <a href="core_sys_darwin_ifaddrs.html" title="core.sys.darwin.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">mach</span></h7><ul><li> <a href="core_sys_darwin_mach_getsect.html" title="core.sys.darwin.mach.getsect"><span class="d_inlinecode donthyphenate notranslate">getsect</span></a></li><li> <a href="core_sys_darwin_mach_loader.html" title="core.sys.darwin.mach.loader"><span class="d_inlinecode donthyphenate notranslate">loader</span></a></li><li> <a href="core_sys_darwin_mach_nlist.html" title="core.sys.darwin.mach.nlist"><span class="d_inlinecode donthyphenate notranslate">nlist</span></a></li><li> <a href="core_sys_darwin_mach_stab.html" title="core.sys.darwin.mach.stab"><span class="d_inlinecode donthyphenate notranslate">stab</span></a></li><li> <a href="core_sys_darwin_mach_thread_act.html" title="core.sys.darwin.mach.thread_act"><span class="d_inlinecode donthyphenate notranslate">thread_act</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_darwin_sys_sysctl.html" title="core.sys.darwin.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dragonflybsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_dragonflybsd_sys_sysctl.html" title="core.sys.dragonflybsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">freebsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_freebsd_sys_sysctl.html" title="core.sys.freebsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="core_sys_linux_epoll.html" title="core.sys.linux.epoll"><span class="d_inlinecode donthyphenate notranslate">epoll</span></a></li><li> <a href="core_sys_linux_fcntl.html" title="core.sys.linux.fcntl"><span class="d_inlinecode donthyphenate notranslate">fcntl</span></a></li><li> <a href="core_sys_linux_fs.html" title="core.sys.linux.fs"><span class="d_inlinecode donthyphenate notranslate">fs</span></a></li><li> <a href="core_sys_linux_ifaddrs.html" title="core.sys.linux.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <a href="core_sys_linux_io_uring.html" title="core.sys.linux.io_uring"><span class="d_inlinecode donthyphenate notranslate">io_uring</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netinet</span></h7><ul><li> <a href="core_sys_linux_netinet_tcp.html" title="core.sys.linux.netinet.tcp"><span class="d_inlinecode donthyphenate notranslate">tcp</span></a>
</li></ul></li><li> <a href="core_sys_linux_perf_event.html" title="core.sys.linux.perf_event"><span class="d_inlinecode donthyphenate notranslate">perf_event</span></a></li><li> <a href="core_sys_linux_sched.html" title="core.sys.linux.sched"><span class="d_inlinecode donthyphenate notranslate">sched</span></a></li><li> <a href="core_sys_linux_string.html" title="core.sys.linux.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_linux_sys_eventfd.html" title="core.sys.linux.sys.eventfd"><span class="d_inlinecode donthyphenate notranslate">eventfd</span></a></li><li> <a href="core_sys_linux_sys_file.html" title="core.sys.linux.sys.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a>
</li></ul></li><li> <a href="core_sys_linux_unistd.html" title="core.sys.linux.unistd"><span class="d_inlinecode donthyphenate notranslate">unistd</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_netbsd_sys_sysctl.html" title="core.sys.netbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">openbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_openbsd_sys_sysctl.html" title="core.sys.openbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">posix</span></h7><ul><li> <a href="core_sys_posix_iconv.html" title="core.sys.posix.iconv"><span class="d_inlinecode donthyphenate notranslate">iconv</span></a></li><li> <a href="core_sys_posix_locale.html" title="core.sys.posix.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_sys_posix_mqueue.html" title="core.sys.posix.mqueue"><span class="d_inlinecode donthyphenate notranslate">mqueue</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_posix_stdc_time.html" title="core.sys.posix.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_posix_string.html" title="core.sys.posix.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_sys_posix_strings.html" title="core.sys.posix.strings"><span class="d_inlinecode donthyphenate notranslate">strings</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_posix_sys_ioctl.html" title="core.sys.posix.sys.ioctl"><span class="d_inlinecode donthyphenate notranslate">ioctl</span></a></li><li> <a href="core_sys_posix_sys_types.html" title="core.sys.posix.sys.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="core_sys_windows_core.html" title="core.sys.windows.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="core_sys_windows_dll.html" title="core.sys.windows.dll"><span class="d_inlinecode donthyphenate notranslate">dll</span></a></li><li> <a href="core_sys_windows_lmaccess.html" title="core.sys.windows.lmaccess"><span class="d_inlinecode donthyphenate notranslate">lmaccess</span></a></li><li> <a href="core_sys_windows_lmsvc.html" title="core.sys.windows.lmsvc"><span class="d_inlinecode donthyphenate notranslate">lmsvc</span></a></li><li> <a href="core_sys_windows_shlwapi.html" title="core.sys.windows.shlwapi"><span class="d_inlinecode donthyphenate notranslate">shlwapi</span></a></li><li> <a href="core_sys_windows_stacktrace.html" title="core.sys.windows.stacktrace"><span class="d_inlinecode donthyphenate notranslate">stacktrace</span></a></li><li> <a href="core_sys_windows_stat.html" title="core.sys.windows.stat"><span class="d_inlinecode donthyphenate notranslate">stat</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_windows_stdc_time.html" title="core.sys.windows.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_windows_threadaux.html" title="core.sys.windows.threadaux"><span class="d_inlinecode donthyphenate notranslate">threadaux</span></a></li><li> <a href="core_sys_windows_vfw.html" title="core.sys.windows.vfw"><span class="d_inlinecode donthyphenate notranslate">vfw</span></a></li><li> <a href="core_sys_windows_winbase.html" title="core.sys.windows.winbase"><span class="d_inlinecode donthyphenate notranslate">winbase</span></a></li><li> <a href="core_sys_windows_winsock2.html" title="core.sys.windows.winsock2"><span class="d_inlinecode donthyphenate notranslate">winsock2</span></a>
</li></ul>
</li></ul></li><li> <a href="core_thread.html" title="core.thread"><span class="d_inlinecode donthyphenate notranslate">thread</span></a><ul><li> <a href="core_thread_context.html" title="core.thread.context"><span class="d_inlinecode donthyphenate notranslate">context</span></a></li><li> <a href="core_thread_fiber.html" title="core.thread.fiber"><span class="d_inlinecode donthyphenate notranslate">fiber</span></a><ul><li> <a href="core_thread_fiber_base.html" title="core.thread.fiber.base"><span class="d_inlinecode donthyphenate notranslate">base</span></a>
</li></ul></li><li> <a href="core_thread_osthread.html" title="core.thread.osthread"><span class="d_inlinecode donthyphenate notranslate">osthread</span></a></li><li> <a href="core_thread_threadbase.html" title="core.thread.threadbase"><span class="d_inlinecode donthyphenate notranslate">threadbase</span></a></li><li> <a href="core_thread_threadgroup.html" title="core.thread.threadgroup"><span class="d_inlinecode donthyphenate notranslate">threadgroup</span></a></li><li> <a href="core_thread_types.html" title="core.thread.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul></li><li> <a href="core_time.html" title="core.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_vararg.html" title="core.vararg"><span class="d_inlinecode donthyphenate notranslate">vararg</span></a></li><li> <a href="core_volatile.html" title="core.volatile"><span class="d_inlinecode donthyphenate notranslate">volatile</span></a>
</li></ul>
</li>
<div class="modlist-internal-separator">Internal API</div>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">array</span></h7><ul><li> <a href="core_internal_array_appending.html" title="core.internal.array.appending"><span class="d_inlinecode donthyphenate notranslate">appending</span></a></li><li> <a href="core_internal_array_arrayassign.html" title="core.internal.array.arrayassign"><span class="d_inlinecode donthyphenate notranslate">arrayassign</span></a></li><li> <a href="core_internal_array_capacity.html" title="core.internal.array.capacity"><span class="d_inlinecode donthyphenate notranslate">capacity</span></a></li><li> <a href="core_internal_array_casting.html" title="core.internal.array.casting"><span class="d_inlinecode donthyphenate notranslate">casting</span></a></li><li> <a href="core_internal_array_comparison.html" title="core.internal.array.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="core_internal_array_concatenation.html" title="core.internal.array.concatenation"><span class="d_inlinecode donthyphenate notranslate">concatenation</span></a></li><li> <a href="core_internal_array_construction.html" title="core.internal.array.construction"><span class="d_inlinecode donthyphenate notranslate">construction</span></a></li><li> <a href="core_internal_array_duplication.html" title="core.internal.array.duplication"><span class="d_inlinecode donthyphenate notranslate">duplication</span></a></li><li> <a href="core_internal_array_equality.html" title="core.internal.array.equality"><span class="d_inlinecode donthyphenate notranslate">equality</span></a></li><li> <a href="core_internal_array_operations.html" title="core.internal.array.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="core_internal_array_utils.html" title="core.internal.array.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="core_internal_util_array.html" title="core.internal.util.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_internal_util_math.html" title="core.internal.util.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a>
</li></ul>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-dmd'><a class='expand-toggle' href='#'><span><em class="tt">dmd</em></span></a>
<ul><li> <a href="dmd_access.html" title="dmd.access"><span class="d_inlinecode donthyphenate notranslate">access</span></a></li><li> <a href="dmd_aggregate.html" title="dmd.aggregate"><span class="d_inlinecode donthyphenate notranslate">aggregate</span></a></li><li> <a href="dmd_aliasthis.html" title="dmd.aliasthis"><span class="d_inlinecode donthyphenate notranslate">aliasthis</span></a></li><li> <a href="dmd_argtypes_aarch64.html" title="dmd.argtypes_aarch64"><span class="d_inlinecode donthyphenate notranslate">argtypes_aarch64</span></a></li><li> <a href="dmd_argtypes_sysv_x64.html" title="dmd.argtypes_sysv_x64"><span class="d_inlinecode donthyphenate notranslate">argtypes_sysv_x64</span></a></li><li> <a href="dmd_argtypes_x86.html" title="dmd.argtypes_x86"><span class="d_inlinecode donthyphenate notranslate">argtypes_x86</span></a></li><li> <a href="dmd_arrayop.html" title="dmd.arrayop"><span class="d_inlinecode donthyphenate notranslate">arrayop</span></a></li><li> <a href="dmd_arraytypes.html" title="dmd.arraytypes"><span class="d_inlinecode donthyphenate notranslate">arraytypes</span></a></li><li> <a href="dmd_ast_node.html" title="dmd.ast_node"><span class="d_inlinecode donthyphenate notranslate">ast_node</span></a></li><li> <a href="dmd_astbase.html" title="dmd.astbase"><span class="d_inlinecode donthyphenate notranslate">astbase</span></a></li><li> <a href="dmd_astcodegen.html" title="dmd.astcodegen"><span class="d_inlinecode donthyphenate notranslate">astcodegen</span></a></li><li> <a href="dmd_astenums.html" title="dmd.astenums"><span class="d_inlinecode donthyphenate notranslate">astenums</span></a></li><li> <a href="dmd_asttypename.html" title="dmd.asttypename"><span class="d_inlinecode donthyphenate notranslate">asttypename</span></a></li><li> <a href="dmd_attrib.html" title="dmd.attrib"><span class="d_inlinecode donthyphenate notranslate">attrib</span></a></li><li> <a href="dmd_attribsem.html" title="dmd.attribsem"><span class="d_inlinecode donthyphenate notranslate">attribsem</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">backend</span></h7><ul><li> <a href="dmd_backend_aarray.html" title="dmd.backend.aarray"><span class="d_inlinecode donthyphenate notranslate">aarray</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">arm</span></h7><ul><li> <a href="dmd_backend_arm_cod1.html" title="dmd.backend.arm.cod1"><span class="d_inlinecode donthyphenate notranslate">cod1</span></a></li><li> <a href="dmd_backend_arm_cod2.html" title="dmd.backend.arm.cod2"><span class="d_inlinecode donthyphenate notranslate">cod2</span></a></li><li> <a href="dmd_backend_arm_cod3.html" title="dmd.backend.arm.cod3"><span class="d_inlinecode donthyphenate notranslate">cod3</span></a></li><li> <a href="dmd_backend_arm_cod4.html" title="dmd.backend.arm.cod4"><span class="d_inlinecode donthyphenate notranslate">cod4</span></a></li><li> <a href="dmd_backend_arm_disasmarm.html" title="dmd.backend.arm.disasmarm"><span class="d_inlinecode donthyphenate notranslate">disasmarm</span></a></li><li> <a href="dmd_backend_arm_instr.html" title="dmd.backend.arm.instr"><span class="d_inlinecode donthyphenate notranslate">instr</span></a>
</li></ul></li><li> <a href="dmd_backend_backconfig.html" title="dmd.backend.backconfig"><span class="d_inlinecode donthyphenate notranslate">backconfig</span></a></li><li> <a href="dmd_backend_barray.html" title="dmd.backend.barray"><span class="d_inlinecode donthyphenate notranslate">barray</span></a></li><li> <a href="dmd_backend_bcomplex.html" title="dmd.backend.bcomplex"><span class="d_inlinecode donthyphenate notranslate">bcomplex</span></a></li><li> <a href="dmd_backend_blockopt.html" title="dmd.backend.blockopt"><span class="d_inlinecode donthyphenate notranslate">blockopt</span></a></li><li> <a href="dmd_backend_cc.html" title="dmd.backend.cc"><span class="d_inlinecode donthyphenate notranslate">cc</span></a></li><li> <a href="dmd_backend_cdef.html" title="dmd.backend.cdef"><span class="d_inlinecode donthyphenate notranslate">cdef</span></a></li><li> <a href="dmd_backend_cg.html" title="dmd.backend.cg"><span class="d_inlinecode donthyphenate notranslate">cg</span></a></li><li> <a href="dmd_backend_cgcs.html" title="dmd.backend.cgcs"><span class="d_inlinecode donthyphenate notranslate">cgcs</span></a></li><li> <a href="dmd_backend_cgcse.html" title="dmd.backend.cgcse"><span class="d_inlinecode donthyphenate notranslate">cgcse</span></a></li><li> <a href="dmd_backend_cgcv.html" title="dmd.backend.cgcv"><span class="d_inlinecode donthyphenate notranslate">cgcv</span></a></li><li> <a href="dmd_backend_cgelem.html" title="dmd.backend.cgelem"><span class="d_inlinecode donthyphenate notranslate">cgelem</span></a></li><li> <a href="dmd_backend_cgen.html" title="dmd.backend.cgen"><span class="d_inlinecode donthyphenate notranslate">cgen</span></a></li><li> <a href="dmd_backend_cgsched.html" title="dmd.backend.cgsched"><span class="d_inlinecode donthyphenate notranslate">cgsched</span></a></li><li> <a href="dmd_backend_code.html" title="dmd.backend.code"><span class="d_inlinecode donthyphenate notranslate">code</span></a></li><li> <a href="dmd_backend_codebuilder.html" title="dmd.backend.codebuilder"><span class="d_inlinecode donthyphenate notranslate">codebuilder</span></a></li><li> <a href="dmd_backend_cv4.html" title="dmd.backend.cv4"><span class="d_inlinecode donthyphenate notranslate">cv4</span></a></li><li> <a href="dmd_backend_cv8.html" title="dmd.backend.cv8"><span class="d_inlinecode donthyphenate notranslate">cv8</span></a></li><li> <a href="dmd_backend_dcgcv.html" title="dmd.backend.dcgcv"><span class="d_inlinecode donthyphenate notranslate">dcgcv</span></a></li><li> <a href="dmd_backend_dcode.html" title="dmd.backend.dcode"><span class="d_inlinecode donthyphenate notranslate">dcode</span></a></li><li> <a href="dmd_backend_debugprint.html" title="dmd.backend.debugprint"><span class="d_inlinecode donthyphenate notranslate">debugprint</span></a></li><li> <a href="dmd_backend_divcoeff.html" title="dmd.backend.divcoeff"><span class="d_inlinecode donthyphenate notranslate">divcoeff</span></a></li><li> <a href="dmd_backend_dlist.html" title="dmd.backend.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="dmd_backend_dout.html" title="dmd.backend.dout"><span class="d_inlinecode donthyphenate notranslate">dout</span></a></li><li> <a href="dmd_backend_drtlsym.html" title="dmd.backend.drtlsym"><span class="d_inlinecode donthyphenate notranslate">drtlsym</span></a></li><li> <a href="dmd_backend_dt.html" title="dmd.backend.dt"><span class="d_inlinecode donthyphenate notranslate">dt</span></a></li><li> <a href="dmd_backend_dtype.html" title="dmd.backend.dtype"><span class="d_inlinecode donthyphenate notranslate">dtype</span></a></li><li> <a href="dmd_backend_dvarstats.html" title="dmd.backend.dvarstats"><span class="d_inlinecode donthyphenate notranslate">dvarstats</span></a></li><li> <a href="dmd_backend_dvec.html" title="dmd.backend.dvec"><span class="d_inlinecode donthyphenate notranslate">dvec</span></a></li><li> <a href="dmd_backend_dwarf.html" title="dmd.backend.dwarf"><span class="d_inlinecode donthyphenate notranslate">dwarf</span></a></li><li> <a href="dmd_backend_dwarf2.html" title="dmd.backend.dwarf2"><span class="d_inlinecode donthyphenate notranslate">dwarf2</span></a></li><li> <a href="dmd_backend_dwarfdbginf.html" title="dmd.backend.dwarfdbginf"><span class="d_inlinecode donthyphenate notranslate">dwarfdbginf</span></a></li><li> <a href="dmd_backend_dwarfeh.html" title="dmd.backend.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="dmd_backend_ee.html" title="dmd.backend.ee"><span class="d_inlinecode donthyphenate notranslate">ee</span></a></li><li> <a href="dmd_backend_eh.html" title="dmd.backend.eh"><span class="d_inlinecode donthyphenate notranslate">eh</span></a></li><li> <a href="dmd_backend_el.html" title="dmd.backend.el"><span class="d_inlinecode donthyphenate notranslate">el</span></a></li>Line truncated
</li></ul>
</li></ul></li><li> <a href="dmd_blockexit.html" title="dmd.blockexit"><span class="d_inlinecode donthyphenate notranslate">blockexit</span></a></li><li> <a href="dmd_builtin.html" title="dmd.builtin"><span class="d_inlinecode donthyphenate notranslate">builtin</span></a></li><li> <a href="dmd_canthrow.html" title="dmd.canthrow"><span class="d_inlinecode donthyphenate notranslate">canthrow</span></a></li><li> <a href="dmd_chkformat.html" title="dmd.chkformat"><span class="d_inlinecode donthyphenate notranslate">chkformat</span></a></li><li> <a href="dmd_cli.html" title="dmd.cli"><span class="d_inlinecode donthyphenate notranslate">cli</span></a></li><li> <a href="dmd_clone.html" title="dmd.clone"><span class="d_inlinecode donthyphenate notranslate">clone</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">common</span></h7><ul><li> <a href="dmd_common_bitfields.html" title="dmd.common.bitfields"><span class="d_inlinecode donthyphenate notranslate">bitfields</span></a></li><li> <a href="dmd_common_blake3.html" title="dmd.common.blake3"><span class="d_inlinecode donthyphenate notranslate">blake3</span></a></li><li> <a href="dmd_common_charactertables.html" title="dmd.common.charactertables"><span class="d_inlinecode donthyphenate notranslate">charactertables</span></a></li><li> <a href="dmd_common_file.html" title="dmd.common.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_common_identifiertables.html" title="dmd.common.identifiertables"><span class="d_inlinecode donthyphenate notranslate">identifiertables</span></a></li><li> <a href="dmd_common_int128.html" title="dmd.common.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="dmd_common_outbuffer.html" title="dmd.common.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="dmd_common_smallbuffer.html" title="dmd.common.smallbuffer"><span class="d_inlinecode donthyphenate notranslate">smallbuffer</span></a>
</li></ul></li><li> <a href="dmd_compiler.html" title="dmd.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="dmd_cond.html" title="dmd.cond"><span class="d_inlinecode donthyphenate notranslate">cond</span></a></li><li> <a href="dmd_console.html" title="dmd.console"><span class="d_inlinecode donthyphenate notranslate">console</span></a></li><li> <a href="dmd_constfold.html" title="dmd.constfold"><span class="d_inlinecode donthyphenate notranslate">constfold</span></a></li><li> <a href="dmd_cparse.html" title="dmd.cparse"><span class="d_inlinecode donthyphenate notranslate">cparse</span></a></li><li> <a href="dmd_cpreprocess.html" title="dmd.cpreprocess"><span class="d_inlinecode donthyphenate notranslate">cpreprocess</span></a></li><li> <a href="dmd_ctfeexpr.html" title="dmd.ctfeexpr"><span class="d_inlinecode donthyphenate notranslate">ctfeexpr</span></a></li><li> <a href="dmd_ctorflow.html" title="dmd.ctorflow"><span class="d_inlinecode donthyphenate notranslate">ctorflow</span></a></li><li> <a href="dmd_cxxfrontend.html" title="dmd.cxxfrontend"><span class="d_inlinecode donthyphenate notranslate">cxxfrontend</span></a></li><li> <a href="dmd_dcast.html" title="dmd.dcast"><span class="d_inlinecode donthyphenate notranslate">dcast</span></a></li><li> <a href="dmd_dclass.html" title="dmd.dclass"><span class="d_inlinecode donthyphenate notranslate">dclass</span></a></li><li> <a href="dmd_declaration.html" title="dmd.declaration"><span class="d_inlinecode donthyphenate notranslate">declaration</span></a></li><li> <a href="dmd_delegatize.html" title="dmd.delegatize"><span class="d_inlinecode donthyphenate notranslate">delegatize</span></a></li><li> <a href="dmd_denum.html" title="dmd.denum"><span class="d_inlinecode donthyphenate notranslate">denum</span></a></li><li> <a href="dmd_deps.html" title="dmd.deps"><span class="d_inlinecode donthyphenate notranslate">deps</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dfa</span></h7><ul><li> <a href="dmd_dfa_entry.html" title="dmd.dfa.entry"><span class="d_inlinecode donthyphenate notranslate">entry</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">fast</span></h7><ul><li> <a href="dmd_dfa_fast_analysis.html" title="dmd.dfa.fast.analysis"><span class="d_inlinecode donthyphenate notranslate">analysis</span></a></li><li> <a href="dmd_dfa_fast_expression.html" title="dmd.dfa.fast.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_dfa_fast_report.html" title="dmd.dfa.fast.report"><span class="d_inlinecode donthyphenate notranslate">report</span></a></li><li> <a href="dmd_dfa_fast_statement.html" title="dmd.dfa.fast.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_dfa_fast_structure.html" title="dmd.dfa.fast.structure"><span class="d_inlinecode donthyphenate notranslate">structure</span></a>
</li></ul></li><li> <a href="dmd_dfa_utils.html" title="dmd.dfa.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <a href="dmd_dimport.html" title="dmd.dimport"><span class="d_inlinecode donthyphenate notranslate">dimport</span></a></li><li> <a href="dmd_dinifile.html" title="dmd.dinifile"><span class="d_inlinecode donthyphenate notranslate">dinifile</span></a></li><li> <a href="dmd_dinterpret.html" title="dmd.dinterpret"><span class="d_inlinecode donthyphenate notranslate">dinterpret</span></a></li><li> <a href="dmd_dmacro.html" title="dmd.dmacro"><span class="d_inlinecode donthyphenate notranslate">dmacro</span></a></li><li> <a href="dmd_dmdparams.html" title="dmd.dmdparams"><span class="d_inlinecode donthyphenate notranslate">dmdparams</span></a></li><li> <a href="dmd_dmodule.html" title="dmd.dmodule"><span class="d_inlinecode donthyphenate notranslate">dmodule</span></a></li><li> <a href="dmd_dmsc.html" title="dmd.dmsc"><span class="d_inlinecode donthyphenate notranslate">dmsc</span></a></li><li> <a href="dmd_doc.html" title="dmd.doc"><span class="d_inlinecode donthyphenate notranslate">doc</span></a></li><li> <a href="dmd_dscope.html" title="dmd.dscope"><span class="d_inlinecode donthyphenate notranslate">dscope</span></a></li><li> <a href="dmd_dstruct.html" title="dmd.dstruct"><span class="d_inlinecode donthyphenate notranslate">dstruct</span></a></li><li> <a href="dmd_dsymbol.html" title="dmd.dsymbol"><span class="d_inlinecode donthyphenate notranslate">dsymbol</span></a></li><li> <a href="dmd_dsymbolsem.html" title="dmd.dsymbolsem"><span class="d_inlinecode donthyphenate notranslate">dsymbolsem</span></a></li><li> <a href="dmd_dtemplate.html" title="dmd.dtemplate"><span class="d_inlinecode donthyphenate notranslate">dtemplate</span></a></li><li> <a href="dmd_dtoh.html" title="dmd.dtoh"><span class="d_inlinecode donthyphenate notranslate">dtoh</span></a></li><li> <a href="dmd_dversion.html" title="dmd.dversion"><span class="d_inlinecode donthyphenate notranslate">dversion</span></a></li><li> <a href="dmd_entity.html" title="dmd.entity"><span class="d_inlinecode donthyphenate notranslate">entity</span></a></li><li> <a href="dmd_enumsem.html" title="dmd.enumsem"><span class="d_inlinecode donthyphenate notranslate">enumsem</span></a></li><li> <a href="dmd_errors.html" title="dmd.errors"><span class="d_inlinecode donthyphenate notranslate">errors</span></a></li><li> <a href="dmd_errorsink.html" title="dmd.errorsink"><span class="d_inlinecode donthyphenate notranslate">errorsink</span></a></li><li> <a href="dmd_escape.html" title="dmd.escape"><span class="d_inlinecode donthyphenate notranslate">escape</span></a></li><li> <a href="dmd_expression.html" title="dmd.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_expressionsem.html" title="dmd.expressionsem"><span class="d_inlinecode donthyphenate notranslate">expressionsem</span></a></li><li> <a href="dmd_file_manager.html" title="dmd.file_manager"><span class="d_inlinecode donthyphenate notranslate">file_manager</span></a></li><li> <a href="dmd_frontend.html" title="dmd.frontend"><span class="d_inlinecode donthyphenate notranslate">frontend</span></a></li><li> <a href="dmd_func.html" title="dmd.func"><span class="d_inlinecode donthyphenate notranslate">func</span></a></li><li> <a href="dmd_funcsem.html" title="dmd.funcsem"><span class="d_inlinecode donthyphenate notranslate">funcsem</span></a></li><li> <a href="dmd_globals.html" title="dmd.globals"><span class="d_inlinecode donthyphenate notranslate">globals</span></a></li><li> <a href="dmd_glue.html" title="dmd.glue"><span class="d_inlinecode donthyphenate notranslate">glue</span></a><ul><li> <a href="dmd_glue_e2ir.html" title="dmd.glue.e2ir"><span class="d_inlinecode donthyphenate notranslate">e2ir</span></a></li><li> <a href="dmd_glue_objc.html" title="dmd.glue.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_glue_s2ir.html" title="dmd.glue.s2ir"><span class="d_inlinecode donthyphenate notranslate">s2ir</span></a></li><li> <a href="dmd_glue_tocsym.html" title="dmd.glue.tocsym"><span class="d_inlinecode donthyphenate notranslate">tocsym</span></a></li><li> <a href="dmd_glue_toctype.html" title="dmd.glue.toctype"><span class="d_inlinecode donthyphenate notranslate">toctype</span></a></li><li> <a href="dmd_glue_tocvdebug.html" title="dmd.glue.tocvdebug"><span class="d_inlinecode donthyphenate notranslate">tocvdebug</span></a></li><li> <a href="dmd_glue_todt.html" title="dmd.glue.todt"><span class="d_inlinecode donthyphenate notranslate">todt</span></a></li><li> <a href="dmd_glue_toir.html" title="dmd.glue.toir"><span class="d_inlinecode donthyphenate notranslate">toir</span></a></li><li> <a href="dmd_glue_toobj.html" title="dmd.glue.toobj"><span class="d_inlinecode donthyphenate notranslate">toobj</span></a>
</li></ul></li><li> <a href="dmd_hdrgen.html" title="dmd.hdrgen"><span class="d_inlinecode donthyphenate notranslate">hdrgen</span></a></li><li> <a href="dmd_iasm.html" title="dmd.iasm"><span class="d_inlinecode donthyphenate notranslate">iasm</span></a><ul><li> <a href="dmd_iasm_dmdaarch64.html" title="dmd.iasm.dmdaarch64"><span class="d_inlinecode donthyphenate notranslate">dmdaarch64</span></a></li><li> <a href="dmd_iasm_dmdx86.html" title="dmd.iasm.dmdx86"><span class="d_inlinecode donthyphenate notranslate">dmdx86</span></a></li><li> <a href="dmd_iasm_gcc.html" title="dmd.iasm.gcc"><span class="d_inlinecode donthyphenate notranslate">gcc</span></a>
</li></ul></li><li> <a href="dmd_id.html" title="dmd.id"><span class="d_inlinecode donthyphenate notranslate">id</span></a></li><li> <a href="dmd_identifier.html" title="dmd.identifier"><span class="d_inlinecode donthyphenate notranslate">identifier</span></a></li><li> <a href="dmd_impcnvtab.html" title="dmd.impcnvtab"><span class="d_inlinecode donthyphenate notranslate">impcnvtab</span></a></li><li> <a href="dmd_imphint.html" title="dmd.imphint"><span class="d_inlinecode donthyphenate notranslate">imphint</span></a></li><li> <a href="dmd_importc.html" title="dmd.importc"><span class="d_inlinecode donthyphenate notranslate">importc</span></a></li><li> <a href="dmd_init.html" title="dmd.init"><span class="d_inlinecode donthyphenate notranslate">init</span></a></li><li> <a href="dmd_initsem.html" title="dmd.initsem"><span class="d_inlinecode donthyphenate notranslate">initsem</span></a></li><li> <a href="dmd_inline.html" title="dmd.inline"><span class="d_inlinecode donthyphenate notranslate">inline</span></a></li><li> <a href="dmd_inlinecost.html" title="dmd.inlinecost"><span class="d_inlinecode donthyphenate notranslate">inlinecost</span></a></li><li> <a href="dmd_intrange.html" title="dmd.intrange"><span class="d_inlinecode donthyphenate notranslate">intrange</span></a></li><li> <a href="dmd_json.html" title="dmd.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="dmd_lambdacomp.html" title="dmd.lambdacomp"><span class="d_inlinecode donthyphenate notranslate">lambdacomp</span></a></li><li> <a href="dmd_lexer.html" title="dmd.lexer"><span class="d_inlinecode donthyphenate notranslate">lexer</span></a></li><li> <a href="dmd_lib.html" title="dmd.lib"><span class="d_inlinecode donthyphenate notranslate">lib</span></a><ul><li> <a href="dmd_lib_elf.html" title="dmd.lib.elf"><span class="d_inlinecode donthyphenate notranslate">elf</span></a></li><li> <a href="dmd_lib_mach.html" title="dmd.lib.mach"><span class="d_inlinecode donthyphenate notranslate">mach</span></a></li><li> <a href="dmd_lib_mscoff.html" title="dmd.lib.mscoff"><span class="d_inlinecode donthyphenate notranslate">mscoff</span></a></li><li> <a href="dmd_lib_scanelf.html" title="dmd.lib.scanelf"><span class="d_inlinecode donthyphenate notranslate">scanelf</span></a></li><li> <a href="dmd_lib_scanmach.html" title="dmd.lib.scanmach"><span class="d_inlinecode donthyphenate notranslate">scanmach</span></a></li><li> <a href="dmd_lib_scanmscoff.html" title="dmd.lib.scanmscoff"><span class="d_inlinecode donthyphenate notranslate">scanmscoff</span></a>
</li></ul></li><li> <a href="dmd_link.html" title="dmd.link"><span class="d_inlinecode donthyphenate notranslate">link</span></a></li><li> <a href="dmd_location.html" title="dmd.location"><span class="d_inlinecode donthyphenate notranslate">location</span></a></li><li> <a href="dmd_main.html" title="dmd.main"><span class="d_inlinecode donthyphenate notranslate">main</span></a></li><li> <a href="dmd_mangle.html" title="dmd.mangle"><span class="d_inlinecode donthyphenate notranslate">mangle</span></a><ul><li> <a href="dmd_mangle_basic.html" title="dmd.mangle.basic"><span class="d_inlinecode donthyphenate notranslate">basic</span></a></li><li> <a href="dmd_mangle_cpp.html" title="dmd.mangle.cpp"><span class="d_inlinecode donthyphenate notranslate">cpp</span></a></li><li> <a href="dmd_mangle_cppwin.html" title="dmd.mangle.cppwin"><span class="d_inlinecode donthyphenate notranslate">cppwin</span></a>
</li></ul></li><li> <a href="dmd_mars.html" title="dmd.mars"><span class="d_inlinecode donthyphenate notranslate">mars</span></a></li><li> <a href="dmd_mtype.html" title="dmd.mtype"><span class="d_inlinecode donthyphenate notranslate">mtype</span></a></li><li> <a href="dmd_mustuse.html" title="dmd.mustuse"><span class="d_inlinecode donthyphenate notranslate">mustuse</span></a></li><li> <a href="dmd_nogc.html" title="dmd.nogc"><span class="d_inlinecode donthyphenate notranslate">nogc</span></a></li><li> <a href="dmd_nspace.html" title="dmd.nspace"><span class="d_inlinecode donthyphenate notranslate">nspace</span></a></li><li> <a href="dmd_ob.html" title="dmd.ob"><span class="d_inlinecode donthyphenate notranslate">ob</span></a></li><li> <a href="dmd_objc.html" title="dmd.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_opover.html" title="dmd.opover"><span class="d_inlinecode donthyphenate notranslate">opover</span></a></li><li> <a href="dmd_optimize.html" title="dmd.optimize"><span class="d_inlinecode donthyphenate notranslate">optimize</span></a></li><li> <a href="dmd_parse.html" title="dmd.parse"><span class="d_inlinecode donthyphenate notranslate">parse</span></a></li><li> <a href="dmd_pragmasem.html" title="dmd.pragmasem"><span class="d_inlinecode donthyphenate notranslate">pragmasem</span></a></li><li> <a href="dmd_printast.html" title="dmd.printast"><span class="d_inlinecode donthyphenate notranslate">printast</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">root</span></h7><ul><li> <a href="dmd_root_aav.html" title="dmd.root.aav"><span class="d_inlinecode donthyphenate notranslate">aav</span></a></li><li> <a href="dmd_root_array.html" title="dmd.root.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="dmd_root_bitarray.html" title="dmd.root.bitarray"><span class="d_inlinecode donthyphenate notranslate">bitarray</span></a></li><li> <a href="dmd_root_complex.html" title="dmd.root.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="dmd_root_ctfloat.html" title="dmd.root.ctfloat"><span class="d_inlinecode donthyphenate notranslate">ctfloat</span></a></li><li> <a href="dmd_root_env.html" title="dmd.root.env"><span class="d_inlinecode donthyphenate notranslate">env</span></a></li><li> <a href="dmd_root_file.html" title="dmd.root.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_root_filename.html" title="dmd.root.filename"><span class="d_inlinecode donthyphenate notranslate">filename</span></a></li><li> <a href="dmd_root_hash.html" title="dmd.root.hash"><span class="d_inlinecode donthyphenate notranslate">hash</span></a></li><li> <a href="dmd_root_longdouble.html" title="dmd.root.longdouble"><span class="d_inlinecode donthyphenate notranslate">longdouble</span></a></li><li> <a href="dmd_root_man.html" title="dmd.root.man"><span class="d_inlinecode donthyphenate notranslate">man</span></a></li><li> <a href="dmd_root_optional.html" title="dmd.root.optional"><span class="d_inlinecode donthyphenate notranslate">optional</span></a></li><li> <a href="dmd_root_port.html" title="dmd.root.port"><span class="d_inlinecode donthyphenate notranslate">port</span></a></li><li> <a href="dmd_root_region.html" title="dmd.root.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="dmd_root_response.html" title="dmd.root.response"><span class="d_inlinecode donthyphenate notranslate">response</span></a></li><li> <a href="dmd_root_rmem.html" title="dmd.root.rmem"><span class="d_inlinecode donthyphenate notranslate">rmem</span></a></li><li> <a href="dmd_root_speller.html" title="dmd.root.speller"><span class="d_inlinecode donthyphenate notranslate">speller</span></a></li><li> <a href="dmd_root_string.html" title="dmd.root.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="dmd_root_stringtable.html" title="dmd.root.stringtable"><span class="d_inlinecode donthyphenate notranslate">stringtable</span></a></li><li> <a href="dmd_root_strtold.html" title="dmd.root.strtold"><span class="d_inlinecode donthyphenate notranslate">strtold</span></a></li><li> <a href="dmd_root_utf.html" title="dmd.root.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a>
</li></ul></li><li> <a href="dmd_rootobject.html" title="dmd.rootobject"><span class="d_inlinecode donthyphenate notranslate">rootobject</span></a></li><li> <a href="dmd_safe.html" title="dmd.safe"><span class="d_inlinecode donthyphenate notranslate">safe</span></a></li><li> <a href="dmd_sarif.html" title="dmd.sarif"><span class="d_inlinecode donthyphenate notranslate">sarif</span></a></li><li> <a href="dmd_semantic2.html" title="dmd.semantic2"><span class="d_inlinecode donthyphenate notranslate">semantic2</span></a></li><li> <a href="dmd_semantic3.html" title="dmd.semantic3"><span class="d_inlinecode donthyphenate notranslate">semantic3</span></a></li><li> <a href="dmd_sideeffect.html" title="dmd.sideeffect"><span class="d_inlinecode donthyphenate notranslate">sideeffect</span></a></li><li> <a href="dmd_statement.html" title="dmd.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_statementsem.html" title="dmd.statementsem"><span class="d_inlinecode donthyphenate notranslate">statementsem</span></a></li><li> <a href="dmd_staticassert.html" title="dmd.staticassert"><span class="d_inlinecode donthyphenate notranslate">staticassert</span></a></li><li> <a href="dmd_staticcond.html" title="dmd.staticcond"><span class="d_inlinecode donthyphenate notranslate">staticcond</span></a></li><li> <a href="dmd_stmtstate.html" title="dmd.stmtstate"><span class="d_inlinecode donthyphenate notranslate">stmtstate</span></a></li><li> <a href="dmd_target.html" title="dmd.target"><span class="d_inlinecode donthyphenate notranslate">target</span></a></li><li> <a href="dmd_targetcompiler.html" title="dmd.targetcompiler"><span class="d_inlinecode donthyphenate notranslate">targetcompiler</span></a></li><li> <a href="dmd_templateparamsem.html" title="dmd.templateparamsem"><span class="d_inlinecode donthyphenate notranslate">templateparamsem</span></a></li><li> <a href="dmd_templatesem.html" title="dmd.templatesem"><span class="d_inlinecode donthyphenate notranslate">templatesem</span></a></li><li> <a href="dmd_timetrace.html" title="dmd.timetrace"><span class="d_inlinecode donthyphenate notranslate">timetrace</span></a></li><li> <a href="dmd_tokens.html" title="dmd.tokens"><span class="d_inlinecode donthyphenate notranslate">tokens</span></a></li><li> <a href="dmd_traits.html" title="dmd.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="dmd_typesem.html" title="dmd.typesem"><span class="d_inlinecode donthyphenate notranslate">typesem</span></a></li><li> <a href="dmd_typinf.html" title="dmd.typinf"><span class="d_inlinecode donthyphenate notranslate">typinf</span></a></li><li> <a href="dmd_utils.html" title="dmd.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a></li><li> <a href="dmd_visitor.html" title="dmd.visitor"><span class="d_inlinecode donthyphenate notranslate">visitor</span></a><ul><li> <a href="dmd_visitor_foreachvar.html" title="dmd.visitor.foreachvar"><span class="d_inlinecode donthyphenate notranslate">foreachvar</span></a></li><li> <a href="dmd_visitor_parsetime.html" title="dmd.visitor.parsetime"><span class="d_inlinecode donthyphenate notranslate">parsetime</span></a></li><li> <a href="dmd_visitor_permissive.html" title="dmd.visitor.permissive"><span class="d_inlinecode donthyphenate notranslate">permissive</span></a></li><li> <a href="dmd_visitor_postorder.html" title="dmd.visitor.postorder"><span class="d_inlinecode donthyphenate notranslate">postorder</span></a></li><li> <a href="dmd_visitor_statement_rewrite_walker.html" title="dmd.visitor.statement_rewrite_walker"><span class="d_inlinecode donthyphenate notranslate">statement_rewrite_walker</span></a></li><li> <a href="dmd_visitor_strict.html" title="dmd.visitor.strict"><span class="d_inlinecode donthyphenate notranslate">strict</span></a></li><li> <a href="dmd_visitor_transitive.html" title="dmd.visitor.transitive"><span class="d_inlinecode donthyphenate notranslate">transitive</span></a>
</li></ul></li><li> <a href="dmd_vsoptions.html" title="dmd.vsoptions"><span class="d_inlinecode donthyphenate notranslate">vsoptions</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-rt'><a class='expand-toggle' href='#'><span><em class="tt">rt</em></span></a>
<ul><li> <a href="rt_aApply.html" title="rt.aApply"><span class="d_inlinecode donthyphenate notranslate">aApply</span></a></li><li> <a href="rt_aApplyR.html" title="rt.aApplyR"><span class="d_inlinecode donthyphenate notranslate">aApplyR</span></a></li><li> <a href="rt_alloca.html" title="rt.alloca"><span class="d_inlinecode donthyphenate notranslate">alloca</span></a></li><li> <a href="rt_arraycat.html" title="rt.arraycat"><span class="d_inlinecode donthyphenate notranslate">arraycat</span></a></li><li> <a href="rt_cmath2.html" title="rt.cmath2"><span class="d_inlinecode donthyphenate notranslate">cmath2</span></a></li><li> <a href="rt_config.html" title="rt.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="rt_cover.html" title="rt.cover"><span class="d_inlinecode donthyphenate notranslate">cover</span></a></li><li> <a href="rt_critical_.html" title="rt.critical_"><span class="d_inlinecode donthyphenate notranslate">critical_</span></a></li><li> <a href="rt_deh.html" title="rt.deh"><span class="d_inlinecode donthyphenate notranslate">deh</span></a></li><li> <a href="rt_deh_win32.html" title="rt.deh_win32"><span class="d_inlinecode donthyphenate notranslate">deh_win32</span></a></li><li> <a href="rt_deh_win64_posix.html" title="rt.deh_win64_posix"><span class="d_inlinecode donthyphenate notranslate">deh_win64_posix</span></a></li><li> <a href="rt_dmain2.html" title="rt.dmain2"><span class="d_inlinecode donthyphenate notranslate">dmain2</span></a></li><li> <a href="rt_dwarfeh.html" title="rt.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="rt_ehalloc.html" title="rt.ehalloc"><span class="d_inlinecode donthyphenate notranslate">ehalloc</span></a></li><li> <a href="rt_invariant_.html" title="rt.invariant_"><span class="d_inlinecode donthyphenate notranslate">invariant_</span></a></li><li> <a href="rt_lifetime.html" title="rt.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="rt_llmath.html" title="rt.llmath"><span class="d_inlinecode donthyphenate notranslate">llmath</span></a></li><li> <a href="rt_memory.html" title="rt.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="rt_memset.html" title="rt.memset"><span class="d_inlinecode donthyphenate notranslate">memset</span></a></li><li> <a href="rt_minfo.html" title="rt.minfo"><span class="d_inlinecode donthyphenate notranslate">minfo</span></a></li><li> <a href="rt_monitor_.html" title="rt.monitor_"><span class="d_inlinecode donthyphenate notranslate">monitor_</span></a></li><li> <a href="rt_msvc.html" title="rt.msvc"><span class="d_inlinecode donthyphenate notranslate">msvc</span></a></li><li> <a href="rt_msvc_math.html" title="rt.msvc_math"><span class="d_inlinecode donthyphenate notranslate">msvc_math</span></a></li><li> <a href="rt_profilegc.html" title="rt.profilegc"><span class="d_inlinecode donthyphenate notranslate">profilegc</span></a></li><li> <a href="rt_sections.html" title="rt.sections"><span class="d_inlinecode donthyphenate notranslate">sections</span></a></li><li> <a href="rt_sections_darwin_64.html" title="rt.sections_darwin_64"><span class="d_inlinecode donthyphenate notranslate">sections_darwin_64</span></a></li><li> <a href="rt_sections_elf_shared.html" title="rt.sections_elf_shared"><span class="d_inlinecode donthyphenate notranslate">sections_elf_shared</span></a></li><li> <a href="rt_sections_osx_64.html" title="rt.sections_osx_64"><span class="d_inlinecode donthyphenate notranslate">sections_osx_64</span></a></li><li> <a href="rt_sections_osx_x86.html" title="rt.sections_osx_x86"><span class="d_inlinecode donthyphenate notranslate">sections_osx_x86</span></a></li><li> <a href="rt_sections_solaris.html" title="rt.sections_solaris"><span class="d_inlinecode donthyphenate notranslate">sections_solaris</span></a></li><li> <a href="rt_sections_win64.html" title="rt.sections_win64"><span class="d_inlinecode donthyphenate notranslate">sections_win64</span></a></li><li> <a href="rt_tlsgc.html" title="rt.tlsgc"><span class="d_inlinecode donthyphenate notranslate">tlsgc</span></a></li><li> <a href="rt_trace.html" title="rt.trace"><span class="d_inlinecode donthyphenate notranslate">trace</span></a></li><li> <a href="rt_tracegc.html" title="rt.tracegc"><span class="d_inlinecode donthyphenate notranslate">tracegc</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="rt_util_typeinfo.html" title="rt.util.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="rt_util_utility.html" title="rt.util.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a>
</li></ul>
</li></ul>
</li></ul>
</div>
<div class="hyphenate" id="content">
<div id="tools"><div > <div class="tip smallprint"> <a href="https://github.com/dlang/phobos/issues/new?title=%5BPhobos Runtime Library%5D%20&amp;label=Severity:Enhancement">Report a bug</a>
<div > If you spot a problem with this page, click here to create a GitHub issue.
</div>
</div>
<div class="tip smallprint"> <a href="https://github.com/dlang/phobos/edit/master/index.dd">Improve this page</a>
<div > 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.
</div>
</div>
</div></div>
<h1><span class="d_title">Phobos Runtime Library</span></h1>
<div class="quickindex" id="quickindex"></div>
<p>Phobos is the standard runtime library that comes with the D language
compiler.</p>
<ul><li>The <span class="d_inlinecode donthyphenate notranslate">std</span> namespace is used for the main modules in the
Phobos standard library.</li>
<li>The <a href="#etc"><span class="d_inlinecode donthyphenate notranslate">etc</span></a> namespace is used for external C/C++ library bindings.</li>
<li>The <span class="d_inlinecode donthyphenate notranslate">core</span> namespace is mainly used for low-level D runtime functions.</li>
<li><a href="#stdc"><span class="d_inlinecode donthyphenate notranslate">core.stdc</span></a> wraps the C standard library.</li>
<li><a href="#stdcpp"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp</span></a> wraps some of the C++ standard library.</li>
<li><span class="d_inlinecode donthyphenate notranslate">core.sys</span> wraps OS headers.
</li>
</ul>
<p>The following table is a quick reference guide for which Phobos modules to
use for a given category of functionality. Note that some modules may appear in
more than one category, as some Phobos modules are quite generic and can be
applied in a variety of situations.</p>
<table class="book"><caption></caption> <tr> <th scope="col">Modules</th>
<th scope="col">Description</th>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Algorithms &amp; ranges</em></b></td></tr>
<tr> <td class="donthyphenate nobr"> <a href="std_algorithm.html"><span class="d_inlinecode donthyphenate notranslate">std.algorithm</span></a><br>
<a href="std_range.html"><span class="d_inlinecode donthyphenate notranslate">std.range</span></a><br>
<a href="std_range_primitives.html"><span class="d_inlinecode donthyphenate notranslate">std.range.primitives</span></a><br>
<a href="std_range_interfaces.html"><span class="d_inlinecode donthyphenate notranslate">std.range.interfaces</span></a><br>
</td>
<td>Generic algorithms that work with <a href="std_range.html">ranges</a>
of any type, including strings, arrays, and other kinds of
sequentially-accessed data. Algorithms include searching,
comparison, iteration, sorting, set operations, and mutation.
</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Array manipulation</em></b></td></tr>
<tr> <td class="donthyphenate nobr"> <a href="std_array.html"><span class="d_inlinecode donthyphenate notranslate">std.array</span></a><br>
<a href="std_algorithm.html"><span class="d_inlinecode donthyphenate notranslate">std.algorithm</span></a><br>
</td>
<td>Convenient operations commonly used with built-in arrays.
Note that many common array operations are subsets of more generic
algorithms that work with arbitrary ranges, so they are found in
<span class="d_inlinecode donthyphenate notranslate">std.algorithm</span>.
</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Containers</em></b></td></tr>
<tr> <td class="donthyphenate nobr"> <a href="std_container_array.html"><span class="d_inlinecode donthyphenate notranslate">std.container.array</span></a><br>
<a href="std_container_binaryheap.html"><span class="d_inlinecode donthyphenate notranslate">std.container.binaryheap</span></a><br>
<a href="std_container_dlist.html"><span class="d_inlinecode donthyphenate notranslate">std.container.dlist</span></a><br>
<a href="std_container_rbtree.html"><span class="d_inlinecode donthyphenate notranslate">std.container.rbtree</span></a><br>
<a href="std_container_slist.html"><span class="d_inlinecode donthyphenate notranslate">std.container.slist</span></a><br>
</td>
<td>See <a href="std_container.html">std.container.*</a> for an
overview.
</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Data formats</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_base64.html"><span class="d_inlinecode donthyphenate notranslate">std.base64</span></a></td>
<td>Encoding / decoding Base64 format.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_csv.html"><span class="d_inlinecode donthyphenate notranslate">std.csv</span></a></td>
<td>Read Comma Separated Values and its variants from an input range of <span class="d_inlinecode donthyphenate notranslate">dchar</span>.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_json.html"><span class="d_inlinecode donthyphenate notranslate">std.json</span></a></td>
<td>Read/write data in JSON format.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_zip.html"><span class="d_inlinecode donthyphenate notranslate">std.zip</span></a></td>
<td>Read/write data in the ZIP archive format.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_zlib.html"><span class="d_inlinecode donthyphenate notranslate">std.zlib</span></a></td>
<td>Compress/decompress data using the zlib library.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Data integrity</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_checkedint.html"><span class="d_inlinecode donthyphenate notranslate">std.checkedint</span></a></td>
<td>Checked integral types.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest.html"><span class="d_inlinecode donthyphenate notranslate">std.digest</span></a></td>
<td>Compute digests such as md5, sha1 and crc32.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_crc.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.crc</span></a></td>
<td>Cyclic Redundancy Check (32-bit) implementation.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_hmac.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.hmac</span></a></td>
<td>Compute HMAC digests of arbitrary data.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_md.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.md</span></a></td>
<td>Compute MD5 hash of arbitrary data.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_murmurhash.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.murmurhash</span></a></td>
<td>Compute MurmurHash of arbitrary data.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_ripemd.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.ripemd</span></a></td>
<td>Compute RIPEMD-160 hash of arbitrary data.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_digest_sha.html"><span class="d_inlinecode donthyphenate notranslate">std.digest.sha</span></a></td>
<td>Compute SHA1 and SHA2 hashes of arbitrary data.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Date &amp; time</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_datetime.html"><span class="d_inlinecode donthyphenate notranslate">std.datetime</span></a></td>
<td>Provides convenient access to date and time representations.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_time.html"><span class="d_inlinecode donthyphenate notranslate">core.time</span></a></td>
<td>Implements low-level time primitives.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Exception handling</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_exception.html"><span class="d_inlinecode donthyphenate notranslate">std.exception</span></a></td>
<td>Implements routines related to exceptions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_exception.html"><span class="d_inlinecode donthyphenate notranslate">core.exception</span></a></td>
<td>Defines built-in exception types and low-level
language hooks required by the compiler.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;<a class="anchor" title="Permalink to this section" id="etc" href="#etc">External library bindings</a></em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_curl.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.curl</span></a></td>
<td>Interface to libcurl C library.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_odbc_sql.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.odbc.sql</span></a></td>
<td>Interface to ODBC C library.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_odbc_sqlext.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.odbc.sqlext</span></a></td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_odbc_sqltypes.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.odbc.sqltypes</span></a></td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_odbc_sqlucode.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.odbc.sqlucode</span></a></td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_sqlite3.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.sqlite3</span></a></td>
<td>Interface to SQLite C library.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_c_zlib.html"><span class="d_inlinecode donthyphenate notranslate">etc.c.zlib</span></a></td>
<td>Interface to zlib C library.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_linux_memoryerror.html"><span class="d_inlinecode donthyphenate notranslate">etc.linux.memoryerror</span></a></td>
<td>Handle memory errors on Linux.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="etc_valgrind_valgrind.html"><span class="d_inlinecode donthyphenate notranslate">etc.valgrind.valgrind</span></a></td>
<td>Interface to <a href="https://valgrind.org">Valgrind</a> for dynamic analysis.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;I/O &amp; File system</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_file.html"><span class="d_inlinecode donthyphenate notranslate">std.file</span></a></td>
<td>Manipulate files and directories.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_path.html"><span class="d_inlinecode donthyphenate notranslate">std.path</span></a></td>
<td>Manipulate strings that represent filesystem paths.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_stdio.html"><span class="d_inlinecode donthyphenate notranslate">std.stdio</span></a></td>
<td>Perform buffered I/O.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Interoperability</em></b></td></tr>
<tr> <td class="donthyphenate nobr"> <a href="core_stdc_complex.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.complex</span></a><br>
<a href="core_stdc_ctype.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.ctype</span></a><br>
<a href="core_stdc_errno.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.errno</span></a><br>
<a href="core_stdc_fenv.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.fenv</span></a><br>
<a href="core_stdc_float_.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.float_</span></a><br>
<a href="core_stdc_inttypes.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.inttypes</span></a><br>
<a href="core_stdc_limits.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.limits</span></a><br>
<a href="core_stdc_locale.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.locale</span></a><br>
<a href="core_stdc_math.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.math</span></a><br>
<a href="core_stdc_signal.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.signal</span></a><br>
<a href="core_stdc_stdarg.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.stdarg</span></a><br>
<a href="core_stdc_stddef.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.stddef</span></a><br>
<a href="core_stdc_stdint.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.stdint</span></a><br>
<a href="core_stdc_stdio.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.stdio</span></a><br>
<a href="core_stdc_stdlib.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.stdlib</span></a><br>
<a href="core_stdc_string.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.string</span></a><br>
<a href="core_stdc_tgmath.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.tgmath</span></a><br>
<a href="core_stdc_time.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.time</span></a><br>
<a href="core_stdc_wchar_.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.wchar_</span></a><br>
<a href="core_stdc_wctype.html"><span class="d_inlinecode donthyphenate notranslate">core.stdc.wctype</span></a><br>
</td>
<td> D bindings for <a class="anchor" title="Permalink to this section" id="stdc" href="#stdc">standard C</a> headers.<br><br>
These are mostly undocumented, as documentation
for the functions these declarations provide
bindings to can be found on external resources.
</td>
</tr>
<tr> <td class="donthyphenate nobr"> <a href="core_stdcpp_allocator.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.allocator</span></a><br>
<a href="core_stdcpp_array.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.array</span></a><br>
<a href="core_stdcpp_exception.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.exception</span></a><br>
<a href="core_stdcpp_memory.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.memory</span></a><br>
<a href="core_stdcpp_new_.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.new_</span></a><br>
<a href="core_stdcpp_string.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.string</span></a><br>
<a href="core_stdcpp_string_view.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.string_view</span></a><br>
<a href="core_stdcpp_type_traits.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.type_traits</span></a><br>
<a href="core_stdcpp_typeinfo.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.typeinfo</span></a><br>
<a href="core_stdcpp_utility.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.utility</span></a><br>
<a href="core_stdcpp_vector.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.vector</span></a><br>
<a href="core_stdcpp_xutility.html"><span class="d_inlinecode donthyphenate notranslate">core.stdcpp.xutility</span></a><br>
</td>
<td> Partial D bindings for <a class="anchor" title="Permalink to this section" id="stdcpp" href="#stdcpp">standard C++</a> headers.<br><br>
</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Memory management</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="core_memory.html"><span class="d_inlinecode donthyphenate notranslate">core.memory</span></a></td>
<td>Control the built-in garbage collector.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_typecons.html"><span class="d_inlinecode donthyphenate notranslate">std.typecons</span></a></td>
<td>Build scoped variables and reference-counted types.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Metaprogramming</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="core_attribute.html"><span class="d_inlinecode donthyphenate notranslate">core.attribute</span></a></td>
<td>Definitions of special attributes recognized by the compiler.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_demangle.html"><span class="d_inlinecode donthyphenate notranslate">core.demangle</span></a></td>
<td>Convert <i>mangled</i> D symbol identifiers to source representation.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_demangle.html"><span class="d_inlinecode donthyphenate notranslate">std.demangle</span></a></td>
<td>A simple wrapper around core.demangle.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_meta.html"><span class="d_inlinecode donthyphenate notranslate">std.meta</span></a></td>
<td>Construct and manipulate template argument lists (aka type lists).</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_traits.html"><span class="d_inlinecode donthyphenate notranslate">std.traits</span></a></td>
<td>Extract information about types and symbols at compile time.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_typecons.html"><span class="d_inlinecode donthyphenate notranslate">std.typecons</span></a></td>
<td>Construct new, useful general purpose types.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Multitasking</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_concurrency.html"><span class="d_inlinecode donthyphenate notranslate">std.concurrency</span></a></td>
<td>Low level messaging API for threads.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_parallelism.html"><span class="d_inlinecode donthyphenate notranslate">std.parallelism</span></a></td>
<td>High level primitives for SMP parallelism.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_process.html"><span class="d_inlinecode donthyphenate notranslate">std.process</span></a></td>
<td>Starting and manipulating processes.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_atomic.html"><span class="d_inlinecode donthyphenate notranslate">core.atomic</span></a></td>
<td>Basic support for lock-free concurrent programming.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_barrier.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.barrier</span></a></td>
<td>Synchronize the progress of a group of threads.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_condition.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.condition</span></a></td>
<td>Synchronized condition checking.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_exception.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.exception</span></a></td>
<td>Base class for synchronization exceptions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_mutex.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.mutex</span></a></td>
<td>Mutex for mutually exclusive access.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_rwmutex.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.rwmutex</span></a></td>
<td>Shared read access and mutually exclusive write access.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_sync_semaphore.html"><span class="d_inlinecode donthyphenate notranslate">core.sync.semaphore</span></a></td>
<td>General use synchronization semaphore.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_thread.html"><span class="d_inlinecode donthyphenate notranslate">core.thread</span></a></td>
<td>Thread creation and management.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Networking</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_socket.html"><span class="d_inlinecode donthyphenate notranslate">std.socket</span></a></td>
<td>Socket primitives.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_net_curl.html"><span class="d_inlinecode donthyphenate notranslate">std.net.curl</span></a></td>
<td>Networking client functionality as provided by libcurl.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_net_isemail.html"><span class="d_inlinecode donthyphenate notranslate">std.net.isemail</span></a></td>
<td>Validates an email address according to RFCs 5321, 5322 and others.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_uri.html"><span class="d_inlinecode donthyphenate notranslate">std.uri</span></a></td>
<td>Encode and decode Uniform Resource Identifiers (URIs).</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_uuid.html"><span class="d_inlinecode donthyphenate notranslate">std.uuid</span></a></td>
<td>Universally-unique identifiers for resources in distributed
systems.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Numeric</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_bigint.html"><span class="d_inlinecode donthyphenate notranslate">std.bigint</span></a></td>
<td>An arbitrary-precision integer type.</td>
</tr>
<tr> <td class="donthyphenate nobr"> <a href="std_int128.html"><span class="d_inlinecode donthyphenate notranslate">std.int128</span></a><br>
<a href="core_int128.html"><span class="d_inlinecode donthyphenate notranslate">core.int128</span></a>
</td>
<td>128 bit-precision integer type.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_complex.html"><span class="d_inlinecode donthyphenate notranslate">std.complex</span></a></td>
<td>A complex number type.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_math.html"><span class="d_inlinecode donthyphenate notranslate">std.math</span></a></td>
<td>Elementary mathematical functions (powers, roots, trigonometry).</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_mathspecial.html"><span class="d_inlinecode donthyphenate notranslate">std.mathspecial</span></a></td>
<td>Families of transcendental functions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_numeric.html"><span class="d_inlinecode donthyphenate notranslate">std.numeric</span></a></td>
<td>Floating point numerics functions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_random.html"><span class="d_inlinecode donthyphenate notranslate">std.random</span></a></td>
<td>Pseudo-random number generators.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_checkedint.html"><span class="d_inlinecode donthyphenate notranslate">core.checkedint</span></a></td>
<td>Range-checking integral arithmetic primitives.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_math.html"><span class="d_inlinecode donthyphenate notranslate">core.math</span></a></td>
<td>Built-in mathematical intrinsics.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Paradigms</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_functional.html"><span class="d_inlinecode donthyphenate notranslate">std.functional</span></a></td>
<td>Functions that manipulate other functions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_algorithm.html"><span class="d_inlinecode donthyphenate notranslate">std.algorithm</span></a></td>
<td>Generic algorithms for processing sequences.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_signals.html"><span class="d_inlinecode donthyphenate notranslate">std.signals</span></a></td>
<td>Signal-and-slots framework for event-driven programming.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Runtime utilities</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="object.html"><span class="d_inlinecode donthyphenate notranslate">object</span></a></td>
<td>Core language definitions. Automatically imported.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_getopt.html"><span class="d_inlinecode donthyphenate notranslate">std.getopt</span></a></td>
<td>Parsing of command-line arguments.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_compiler.html"><span class="d_inlinecode donthyphenate notranslate">std.compiler</span></a></td>
<td>Host compiler vendor string and language version.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_system.html"><span class="d_inlinecode donthyphenate notranslate">std.system</span></a></td>
<td>Runtime environment, such as OS type and endianness.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_cpuid.html"><span class="d_inlinecode donthyphenate notranslate">core.cpuid</span></a></td>
<td>Capabilities of the CPU the program is running on.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_memory.html"><span class="d_inlinecode donthyphenate notranslate">core.memory</span></a></td>
<td>Control the built-in garbage collector.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_runtime.html"><span class="d_inlinecode donthyphenate notranslate">core.runtime</span></a></td>
<td>Control and configure the D runtime.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;String manipulation</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_string.html"><span class="d_inlinecode donthyphenate notranslate">std.string</span></a></td>
<td>Algorithms that work specifically with strings.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_array.html"><span class="d_inlinecode donthyphenate notranslate">std.array</span></a></td>
<td>Manipulate builtin arrays.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_algorithm.html"><span class="d_inlinecode donthyphenate notranslate">std.algorithm</span></a></td>
<td>Generic algorithms for processing sequences.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_uni.html"><span class="d_inlinecode donthyphenate notranslate">std.uni</span></a></td>
<td>Fundamental Unicode algorithms and data structures.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_utf.html"><span class="d_inlinecode donthyphenate notranslate">std.utf</span></a></td>
<td>Encode and decode UTF-8, UTF-16 and UTF-32 strings.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_format.html"><span class="d_inlinecode donthyphenate notranslate">std.format</span></a></td>
<td>Format data into strings.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_path.html"><span class="d_inlinecode donthyphenate notranslate">std.path</span></a></td>
<td>Manipulate strings that represent filesystem paths.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_regex.html"><span class="d_inlinecode donthyphenate notranslate">std.regex</span></a></td>
<td>Regular expressions.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_ascii.html"><span class="d_inlinecode donthyphenate notranslate">std.ascii</span></a></td>
<td>Routines specific to the ASCII subset of Unicode.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_encoding.html"><span class="d_inlinecode donthyphenate notranslate">std.encoding</span></a></td>
<td>Handle and transcode between various text encodings.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_windows_charset.html"><span class="d_inlinecode donthyphenate notranslate">std.windows.charset</span></a></td>
<td>Windows specific character set support.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_outbuffer.html"><span class="d_inlinecode donthyphenate notranslate">std.outbuffer</span></a></td>
<td>Serialize data to <span class="d_inlinecode donthyphenate notranslate">ubyte</span> arrays.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Type manipulations</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="std_conv.html"><span class="d_inlinecode donthyphenate notranslate">std.conv</span></a></td>
<td>Convert types from one type to another.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_typecons.html"><span class="d_inlinecode donthyphenate notranslate">std.typecons</span></a></td>
<td>Type constructors for scoped variables, ref counted types, etc.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_bitmanip.html"><span class="d_inlinecode donthyphenate notranslate">std.bitmanip</span></a></td>
<td>High level bit level manipulation, bit arrays, bit fields.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_variant.html"><span class="d_inlinecode donthyphenate notranslate">std.variant</span></a></td>
<td>Dynamically-typed variable that can hold a value of any type.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="core_bitop.html"><span class="d_inlinecode donthyphenate notranslate">core.bitop</span></a></td>
<td>Low level bit manipulation.</td>
</tr>
<tr> <td class="donthyphenate nobr"><a href="std_sumtype.html"><span class="d_inlinecode donthyphenate notranslate">std.sumtype</span></a></td>
<td>Type-safe discriminated union.</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Vector programming</em></b></td></tr>
<tr> <td class="donthyphenate nobr"><a href="core_simd.html"><span class="d_inlinecode donthyphenate notranslate">core.simd</span></a></td>
<td>SIMD intrinsics</td>
</tr>
<tr class="leadingrow"><td colspan="2"><b><em>&nbsp;&nbsp;&nbsp;&nbsp;Logging</em></b></td></tr>
<tr> <td class="donthyphenate nobr"> <a href="std_logger.html"><span class="d_inlinecode donthyphenate notranslate">std.logger</span></a><br>
<a href="std_logger_core.html"><span class="d_inlinecode donthyphenate notranslate">std.logger.core</span></a><br>
<a href="std_logger_filelogger.html"><span class="d_inlinecode donthyphenate notranslate">std.logger.filelogger</span></a><br>
<a href="std_logger_multilogger.html"><span class="d_inlinecode donthyphenate notranslate">std.logger.multilogger</span></a><br>
<a href="std_logger_nulllogger.html"><span class="d_inlinecode donthyphenate notranslate">std.logger.nulllogger</span></a><br>
</td>
<td> Logging.
</td>
</tr>
</table>
<div class="smallprint" id="copyright">Copyright &copy; 1999-2026 by the <a href="../foundation_overview.html">D Language Foundation</a> | Page generated by
<a href="../spec/ddoc.html">Ddoc</a> on Mon Oct 26 00:37:55 2026
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="../js/jquery-3.7.1.min.js">\x3C/script>');</script>
<script type="text/javascript" src="../js/dlang.js"></script>
<script type="text/javascript" src="../js/codemirror-compressed.js"></script>
<script type="text/javascript" src="../js/run.js"></script>
<script type="text/javascript" src="../js/run_examples.js"></script>
<script type="text/javascript" src="../js/listanchors.js"></script>
<script type="text/javascript" src="../js/show_contributors.js"></script>
<script type="text/javascript">jQuery(document).ready(listanchors);</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="https://blog.dlang.org/archive/2017/06/16/life-in-the-fast-lane/">
<script>location="https://blog.dlang.org/archive/2017/06/16/life-in-the-fast-lane/"</script>
<meta http-equiv="refresh" content="0; url=https://blog.dlang.org/archive/2017/06/16/life-in-the-fast-lane/">
<meta name="robots" content="noindex">
<h1>Redirecting&hellip;</h1>
<a href="https://blog.dlang.org/archive/2017/06/16/life-in-the-fast-lane/">Click here if you are not redirected.</a>
</html>
@@ -0,0 +1,289 @@
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>LDC - D Wiki</title>
<script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"LDC","wgTitle":"LDC","wgCurRevisionId":10298,"wgRevisionId":10298,"wgArticleId":21,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["LDC"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"LDC","wgRelevantArticleId":21,"wgRequestId":"93a651e4819079ea3edb7cd0","wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgWikiEditorEnabledModules":[]});mw.loader.state({"site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","site":"ready","user.options":"ready","user.tokens":"loading","ext.smw.style":"ready","ext.smw.tooltip.styles":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","mediawiki.sectionAnchor":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready"});mw.loader.implement("user.tokens@1d7z0ue",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});
});mw.loader.load(["ext.smw.style","ext.smw.tooltips","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.toc","mediawiki.searchSuggest","skins.vector.js"]);});</script>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=ext.smw.style%7Cext.smw.tooltip.styles&amp;only=styles&amp;skin=vector"/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&amp;only=styles&amp;skin=vector"/>
<script async="" src="/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector"></script>
<meta name="ResourceLoaderDynamicStyles" content=""/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"/>
<meta name="generator" content="MediaWiki 1.31.2"/>
<link rel="alternate" type="application/rdf+xml" title="LDC" href="/?title=Special:ExportRDF/LDC&amp;xmlmime=rdf"/>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="D Wiki (en)"/>
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.dlang.org/api.php?action=rsd"/>
<link rel="license" href="http://www.gnu.org/copyleft/fdl.html"/>
<!--[if lt IE 9]><script src="/load.php?debug=false&amp;lang=en&amp;modules=html5shiv&amp;only=scripts&amp;skin=vector&amp;sync=1"></script><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-LDC rootpage-LDC skin-vector action-view"> <div id="mw-page-base" class="noprint"></div>
<div id="mw-head-base" class="noprint"></div>
<div id="content" class="mw-body" role="main">
<a id="top"></a>
<div class="mw-indicators mw-body-content">
</div>
<h1 id="firstHeading" class="firstHeading" lang="en">LDC</h1> <div id="bodyContent" class="mw-body-content">
<div id="siteSub" class="noprint">From D Wiki</div> <div id="contentSub"></div>
<div id="jump-to-nav" class="mw-jump">
Jump to: <a href="#mw-head">navigation</a>, <a href="#p-search">search</a>
</div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><div style="background: #eee; padding: 0.5ex 0.5ex;">
<p>Compilers: <a href="/Compilers" title="Compilers">Overview</a> — <a href="/DMD" title="DMD">DMD</a> — <a href="/GDC" title="GDC">GDC</a> — <a class="mw-selflink selflink">LDC</a>
<span style="float:right; color:#ccc; font-size:0.9em; padding: 0.4em 0.4em;"><a href="/Compilers_Widget" title="Compilers Widget">&#9998;</a></span>
</p>
</div>
<p>The LDC project aims to provide a portable D programming language compiler with modern optimization and code generation capabilities. The compiler uses the official DMD frontend to support the latest D2 version and relies on the <a rel="nofollow" class="external text" href="http://llvm.org">LLVM Core libraries</a> for code generation.
</p><p>LDC is fully Open Source; the parts of the code not taken/adapted from other projects are BSD-licensed (see the <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/blob/master/LICENSE">LICENSE</a> file for details).
</p><p>D1 is no longer supported in the current development tree; the last version supporting it can be found at the <tt><a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/tree/d1">d1</a></tt> Git branch.
</p>
<div id="toc" class="toc"><div class="toctitle" lang="en" dir="ltr"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Getting_started"><span class="tocnumber">1</span> <span class="toctext">Getting started</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Project_status"><span class="tocnumber">2</span> <span class="toctext">Project status</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="#Architectures"><span class="tocnumber">2.1</span> <span class="toctext">Architectures</span></a></li>
<li class="toclevel-2 tocsection-4"><a href="#Operating_Systems"><span class="tocnumber">2.2</span> <span class="toctext">Operating Systems</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-5"><a href="#Contributing"><span class="tocnumber">3</span> <span class="toctext">Contributing</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Presentations"><span class="tocnumber">4</span> <span class="toctext">Presentations</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Useful_Links"><span class="tocnumber">5</span> <span class="toctext">Useful Links</span></a></li>
</ul>
</div>
<h2><span class="mw-headline" id="Getting_started">Getting started</span></h2>
<ul><li><b><a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/tags">Download an official release</a></b> or the <b><a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/releases/tag/CI">latest CI build</a></b>, incl. prebuilt binaries for Linux/macOS/Windows/Android/FreeBSD.</li>
<li><a href="/Building_LDC_from_source" title="Building LDC from source">Building LDC from source</a></li>
<li><a href="/Building_and_hacking_LDC_on_Windows_using_MSVC" title="Building and hacking LDC on Windows using MSVC">Building and hacking LDC on Windows using MSVC</a></li>
<li><a href="/Using_LDC" title="Using LDC">Using LDC</a> (<a href="/LDC-specific_language_changes" title="LDC-specific language changes">LDC-specific language changes</a> — <a href="/LDC_inline_assembly_expressions" title="LDC inline assembly expressions">LDC inline assembly expressions</a> — <a href="/LDC_inline_IR" title="LDC inline IR">LDC inline IR</a>)</li>
<li><a href="/Cross-compiling_with_LDC" title="Cross-compiling with LDC">Cross-compiling with LDC</a></li>
<li><a href="/Reporting_LDC_issues" title="Reporting LDC issues">Reporting LDC issues</a> — <a href="/LDC_contributor%27s_guide" title="LDC contributor&#39;s guide">LDC contributor's guide</a></li></ul>
<h2><span class="mw-headline" id="Project_status">Project status</span></h2>
<p><b>NOTE</b>: As Wiki pages usually don't keep up with development, the <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/blob/master/CHANGELOG.md">changelog</a> might be of use to check for recent developments and newly conquered targets.
</p>
<h3><span class="mw-headline" id="Architectures">Architectures</span></h3>
<table class="wikitable">
<tbody><tr>
<th>x86 / x86_64
</th>
<td>Fine, CI-tested.
</td></tr>
<tr>
<th>64-bit ARM
</th>
<td>Basically fine, a few testsuite failures remain (for non-Apple OS). See <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/issues/2153">tracker issue</a> for ~current status.
</td></tr>
<tr>
<th>32-bit ARM
</th>
<td>Should be okay-ish, not really CI-tested though (Android ARMv7-A somewhat is). E.g., see <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/issues/2810">tracker issue</a> and <a href="/Minimal_semihosted_ARM_Cortex-M_%22Hello_World%22" title="Minimal semihosted ARM Cortex-M &quot;Hello World&quot;">Minimal semihosted ARM Cortex-M "Hello World"</a>.
</td></tr>
<tr>
<th>WebAssembly
</th>
<td>Should work fine; currently limited to <tt>-betterC</tt> (lacking druntime/Phobos support). See <a href="/Generating_WebAssembly_with_LDC" title="Generating WebAssembly with LDC">Generating WebAssembly with LDC</a> for a quick how-to.
</td></tr>
<tr>
<th>PowerPC
</th>
<td>Incomplete; has been worked on (32-bit, 64-bit big &amp; little endian) but not touched/tested in years. E.g., see <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/issues/1313">tracker issue</a>.
</td></tr>
<tr>
<th>MIPS
</th>
<td>Incomplete; has been worked on but not really touched/tested in years. E.g., see <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/issues/2995">tracker issue</a>.
</td></tr>
<tr>
<th>Others
</th>
<td>Basic code generation should work as long as there's an LLVM backend, and simple <tt>-betterC</tt> code might just work.<br />druntime/Phobos support is most likely lacking (and probably requires a new <tt>version</tt> predefined by the compiler).<br />Proper C(++) interop most likely requires a new <tt>TargetABI</tt> implementation in the compiler.
</td></tr>
</tbody></table>
<h3><span class="mw-headline" id="Operating_Systems">Operating Systems</span></h3>
<table class="wikitable">
<tbody><tr>
<th>Linux
</th>
<td>glibc and musl environments are working fine &amp; CI-tested (on i686 / x86_64 / AArch64 for glibc, x86_64 for musl).<br />uClibc should be usable but isn't tested.
</td></tr>
<tr>
<th>macOS
</th>
<td>Fine, CI-tested on arm64 and x86_64. Requires macOS v10.7+ for native TLS. 32-bit i686 support was dropped with LDC v1.15.
</td></tr>
<tr>
<th>Windows
</th>
<td>Fine for 'native' MSVC (Microsoft Visual C++) environments, CI-tested on Win32 &amp; Win64.<br /><b>NOTE</b>: LDC uses 64-bit double precision for <tt>real</tt>, unlike DMD, for MSVC <tt>long double</tt> compatibility.<br />32-bit MinGW support was almost complete at one stage but got neglected; a manageable number of adaptations (mainly in druntime) would probably suffice to support it again.
</td></tr>
<tr>
<th>Android
</th>
<td>Should be usable for ARMv7-A / AArch64 / i686 / x86_64, only rudimentarily CI-tested though (cross-compilability).<br />Check out the <a href="/Build_D_for_Android" title="Build D for Android">Build D for Android</a> article for how to get started.
</td></tr>
<tr>
<th>iOS / tvOS /<br />watchOS
</th>
<td>Should be usable with 64-bit ARM (all druntime/Phobos unittests pass on iOS with LDC v1.21), only rudimentarily CI-tested though.<br />The <a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/releases/latest">official</a> prebuilt macOS package supports cross-compilation out-of-the-box, just use <tt>-mtriple=arm64-apple-ios12.0</tt>.
</td></tr>
<tr>
<th>FreeBSD
</th>
<td>Fine, CI-tested on x86_64. Requires LLD 9+ to pull in <tt>libexecinfo</tt> automatically when linking static druntime.
</td></tr>
<tr>
<th>Other BSDs
</th>
<td>Should be usable, not CI-tested though.
</td></tr>
<tr>
<th>Solaris
</th>
<td>Ditto.
</td></tr>
</tbody></table>
<h2><span class="mw-headline" id="Contributing">Contributing</span></h2>
<p>LDC is an entirely community-driven effort, so all contributions are warmly welcomed. The easiest way to help with development is to write high-quality <b>bug reports</b> for any issues you run into. For a quick guide on what a useful report should contain, please see <a href="/Reporting_LDC_issues" title="Reporting LDC issues">Reporting LDC issues</a>.
</p><p>If you are interested in getting into compiler development, anecdotal evidence suggests that hacking on LDC might be a nice first step, particularly because the LLVM backend is very comfortable to work with. To get started, just browse through the issue list, find a ticket that tickles your fancy (some of them are specifically marked as "junior jobs"), and work on a fix – and of course don't hesitate to ask for advice at the mailing list or on IRC. An <b><a href="/LDC_contributor%27s_guide" title="LDC contributor&#39;s guide">LDC contributor's guide</a></b> is in the works. Have a look at <a href="/LDC_project_ideas" title="LDC project ideas">LDC project ideas</a> for a list of features/improvements to add to LDC.
</p><p>We would also be excited to see LDC <b>packages</b> in more OS distributions, particular Debian and its derivatives. So, if you think you might be able to help, please just drop us a line at the development mailing list. We will actively try to make packaging as smooth as possible, but besides the fact that upstream-maintained packages are sometimes discouraged, it is hard to build good packages for a system you don't know well, so we need to rely on external contributors here.
</p>
<h2><span class="mw-headline" id="Presentations">Presentations</span></h2>
<p>LDC is an active project and the team promotes the use of D and LDC.
</p>
<ul><li>David's <a rel="nofollow" class="external text" href="http://dconf.org/2013/talks/nadlinger.html">talk about LDC</a> at <a rel="nofollow" class="external text" href="http://dconf.org/2013/index.html">DConf 2013</a>: <a rel="nofollow" class="external text" href="http://dconf.org/2013/talks/nadlinger.pdf">Slides</a> <a rel="nofollow" class="external text" href="http://archive.org/details/dconf2013-day03-talk04">Video HD</a> <a rel="nofollow" class="external text" href="http://youtube.com/watch?v=ntdKZWSiJdY">Video SD</a></li>
<li>Kai's <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2014/schedule/event/ldccompiler/">talk about LDC</a> in the <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2014/schedule/track/llvm/">LLVM devroom</a> at <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2014/">FOSDEM'14</a>: <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2014/schedule/event/ldccompiler/attachments/slides/365/export/events/attachments/ldccompiler/slides/365/FOSDEM_2014.pptx">Slides (PPTX)</a> <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2014/schedule/event/ldccompiler/attachments/slides/366/export/events/attachments/ldccompiler/slides/366/FOSDEM_2014.pdf">Slides (PDF)</a> <a rel="nofollow" class="external text" href="http://video.fosdem.org/2014/K4401/Sunday/LDC_the_LLVMbased_D_compiler.webm">Video</a></li>
<li>Kai's <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2015/schedule/event/llvm_internal_asm/">talk about the LLVM assembler</a> in the <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2015/schedule/track/llvm_toolchain/">LLVM toolchain devroom</a> at <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2015/">FOSDEM'15</a>: <a rel="nofollow" class="external text" href="https://archive.fosdem.org/2015/schedule/event/llvm_internal_asm/attachments/slides/711/export/events/attachments/llvm_internal_asm/slides/711/Nacke_Extending_Assembler.pdf">Slides</a> <a rel="nofollow" class="external text" href="http://video.fosdem.org/2015/devroom-llvm_toolchain/internal_asm__CAM_ONLY_PARTIAL_AUDIO.mp4">Video</a></li>
<li>David's <a rel="nofollow" class="external text" href="http://dconf.org/2015/talks/nadlinger.html">talk about DRuntime</a> at <a rel="nofollow" class="external text" href="http://dconf.org/2015/index.html">DConf 2015</a>: <a rel="nofollow" class="external text" href="http://dconf.org/2015/talks/nadlinger.pdf">Slides</a> <a rel="nofollow" class="external text" href="http://dconf.org/2015/talks/nadlinger.html">Video HD</a> <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=rmRmfoKxMCE">Video SD</a></li>
<li>Johan's <a rel="nofollow" class="external text" href="http://dconf.org/2017/talks/engelen.html">talk about LDC's optimized assembly output</a> at <a rel="nofollow" class="external text" href="http://dconf.org/2017/index.html">DConf 2017</a>: <a rel="nofollow" class="external text" href="http://dconf.org/2017/talks/engelen.pdf">Slides</a> <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=IZY67TBZ0V4">Video</a></li>
<li>Johan's <a rel="nofollow" class="external text" href="http://dconf.org/2018/talks/engelen.html">talk about LDC's LLVM-backed goodies: PGO, fuzzing, and Address Sanitizer</a> at <a rel="nofollow" class="external text" href="http://dconf.org/2018/index.html">DConf 2018</a>: <a rel="nofollow" class="external text" href="http://dconf.org/2018/talks/engelen.pdf">Slides</a> <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=GMKvYrjaaoU">Video</a></li></ul>
<h2><span class="mw-headline" id="Useful_Links">Useful Links</span></h2>
<ul><li><a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc/issues">Issue tracker (GitHub)</a></li>
<li><a rel="nofollow" class="external text" href="https://github.com/ldc-developers/ldc">Source code (GitHub)</a></li>
<li><a rel="nofollow" class="external text" href="https://forum.dlang.org/group/ldc">LDC discussion forum</a> (also available via NNTP and a mailing list interface, see the forum index)</li>
<li><a rel="nofollow" class="external text" href="https://gitter.im/ldc-developers/main">Gitter chat room</a></li>
<li><a rel="nofollow" class="external text" href="irc://irc.freenode.net/ldc">LDC IRC channel</a> (#ldc on <a rel="nofollow" class="external text" href="http://freenode.net">Freenode</a>)</li></ul>
<!--
NewPP limit report
Cached time: 20261025164652
Cache expiry: 86400
Dynamic content: false
[SMW] In‐text annotation parser time: 0 seconds
CPU time usage: 0.019 seconds
Real time usage: 0.020 seconds
Preprocessor visited node count: 32/1000000
Preprocessor generated node count: 46/1000000
Post‐expand include size: 244/2097152 bytes
Template argument size: 0/2097152 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/100
Unstrip recursion depth: 0/20
Unstrip post‐expand size: 0/5000000 bytes
-->
<!--
Transclusion expansion time report (%,ms,calls,template)
100.00% 0.997 1 Compilers_Widget
100.00% 0.997 1 -total
-->
</div>
<!-- Saved in parser cache with key dwiki:pcache:idhash:21-0!canonical and timestamp 20261025164652 and revision id 10298
-->
</div> <div class="printfooter">
Retrieved from "<a dir="ltr" href="https://wiki.dlang.org/?title=LDC&amp;oldid=10298">https://wiki.dlang.org/?title=LDC&amp;oldid=10298</a>" </div>
<div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/Category:LDC" title="Category:LDC">LDC</a></li></ul></div></div> <div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
<div id="mw-head">
<div id="p-personal" role="navigation" class="" aria-labelledby="p-personal-label">
<h3 id="p-personal-label">Personal tools</h3>
<ul>
<li id="pt-createaccount"><a href="/?title=Special:CreateAccount&amp;returnto=LDC" title="You are encouraged to create an account and log in; however, it is not mandatory">Create account</a></li><li id="pt-login"><a href="/?title=Special:UserLogin&amp;returnto=LDC" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> </ul>
</div>
<div id="left-navigation">
<div id="p-namespaces" role="navigation" class="vectorTabs" aria-labelledby="p-namespaces-label">
<h3 id="p-namespaces-label">Namespaces</h3>
<ul>
<li id="ca-nstab-main" class="selected"><span><a href="/LDC" title="View the content page [c]" accesskey="c">Page</a></span></li><li id="ca-talk"><span><a href="/Talk:LDC" rel="discussion" title="Discussion about the content page [t]" accesskey="t">Discussion</a></span></li> </ul>
</div>
<div id="p-variants" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-variants-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-variants-label" />
<h3 id="p-variants-label">
<span>Variants</span>
</h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
</div>
<div id="right-navigation">
<div id="p-views" role="navigation" class="vectorTabs" aria-labelledby="p-views-label">
<h3 id="p-views-label">Views</h3>
<ul>
<li id="ca-view" class="collapsible selected"><span><a href="/LDC">Read</a></span></li><li id="ca-viewsource" class="collapsible"><span><a href="/?title=LDC&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></span></li><li id="ca-history" class="collapsible"><span><a href="/?title=LDC&amp;action=history" title="Past revisions of this page [h]" accesskey="h">View history</a></span></li> </ul>
</div>
<div id="p-cactions" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-cactions-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-cactions-label" />
<h3 id="p-cactions-label"><span>More</span></h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
<div id="p-search" role="search">
<h3>
<label for="searchInput">Search</label>
</h3>
<form action="/" id="searchform">
<div id="simpleSearch">
<input type="search" name="search" placeholder="Search D Wiki" title="Search D Wiki [f]" accesskey="f" id="searchInput"/><input type="hidden" value="Special:Search" name="title"/><input type="submit" name="fulltext" value="Search" title="Search the pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/><input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" id="searchButton" class="searchButton"/> </div>
</form>
</div>
</div>
</div>
<div id="mw-panel">
<div id="p-logo" role="banner"><a class="mw-wiki-logo" href="/The_D_Programming_Language" title="Visit the main page"></a></div>
<div class="portal" role="navigation" id="p-navigation" aria-labelledby="p-navigation-label">
<h3 id="p-navigation-label">Navigation</h3>
<div class="body">
<ul>
<li id="n-mainpage-description"><a href="/The_D_Programming_Language" title="Visit the main page [z]" accesskey="z">Main page</a></li><li id="n-portal"><a href="/DWiki:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li><li id="n-currentevents"><a href="/DWiki:Current_events" title="Find background information on current events">Current events</a></li><li id="n-recentchanges"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li><li id="n-randompage"><a href="/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li><li id="n-help"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" title="The place to find out">Help</a></li><li id="n-D-home"><a href="http://dlang.org" rel="nofollow">D home</a></li> </ul>
</div>
</div>
<div class="portal" role="navigation" id="p-tb" aria-labelledby="p-tb-label">
<h3 id="p-tb-label">Tools</h3>
<div class="body">
<ul>
<li id="t-whatlinkshere"><a href="/Special:WhatLinksHere/LDC" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li><li id="t-recentchangeslinked"><a href="/Special:RecentChangesLinked/LDC" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li id="t-specialpages"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li id="t-print"><a href="/?title=LDC&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li id="t-permalink"><a href="/?title=LDC&amp;oldid=10298" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-info"><a href="/?title=LDC&amp;action=info" title="More information about this page">Page information</a></li><li id="t-smwbrowselink"><a href="/Special:Browse/:LDC" rel="search">Browse properties</a></li> </ul>
</div>
</div>
</div>
</div>
<div id="footer" role="contentinfo">
<ul id="footer-info">
<li id="footer-info-lastmod"> This page was last edited on 28 January 2025, at 22:45.</li>
<li id="footer-info-copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
</ul>
<ul id="footer-places">
<li id="footer-places-privacy"><a href="/DWiki:Privacy_policy" title="DWiki:Privacy policy">Privacy policy</a></li>
<li id="footer-places-about"><a href="/DWiki:About" title="DWiki:About">About D Wiki</a></li>
<li id="footer-places-disclaimer"><a href="/DWiki:General_disclaimer" title="DWiki:General disclaimer">Disclaimers</a></li>
</ul>
<ul id="footer-icons" class="noprint">
<li id="footer-copyrightico">
<a href="http://www.gnu.org/copyleft/fdl.html"><img src="/resources/assets/licenses/gnu-fdl.png" alt="GNU Free Documentation License 1.3 or later" width="88" height="31"/></a> </li>
<li id="footer-poweredbyico">
<a href="//www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"/></a> </li>
</ul>
<div style="clear: both;"></div>
</div>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"smw":{"limitreport-intext-parsertime":0},"limitreport":{"cputime":"0.019","walltime":"0.020","ppvisitednodes":{"value":32,"limit":1000000},"ppgeneratednodes":{"value":46,"limit":1000000},"postexpandincludesize":{"value":244,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":40},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"timingprofile":["100.00% 0.997 1 Compilers_Widget","100.00% 0.997 1 -total"]},"cachereport":{"timestamp":"20261025164652","ttl":86400,"transientcontent":false}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":527});});</script>
</body>
</html>
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="https://blog.dlang.org/archive/2017/04/10/the-new-ctfe-engine/">
<script>location="https://blog.dlang.org/archive/2017/04/10/the-new-ctfe-engine/"</script>
<meta http-equiv="refresh" content="0; url=https://blog.dlang.org/archive/2017/04/10/the-new-ctfe-engine/">
<meta name="robots" content="noindex">
<h1>Redirecting&hellip;</h1>
<a href="https://blog.dlang.org/archive/2017/04/10/the-new-ctfe-engine/">Click here if you are not redirected.</a>
</html>
@@ -0,0 +1,727 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="https://www.php.net/manual/en/curl.configuration.php">
<title>PHP: Runtime Configuration - Manual</title>
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Fira/fira.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Font-Awesome/css/fontello.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-base.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-medium.css" media="screen">
<link rel="icon" type="image/svg+xml" sizes="any" href="https://www.php.net/favicon.svg?v=2">
<link rel="icon" type="image/png" sizes="196x196" href="https://www.php.net/favicon-196x196.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.php.net/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.php.net/favicon-16x16.png?v=2">
<link rel="shortcut icon" href="https://www.php.net/favicon.ico?v=2">
<link rel="search" type="application/opensearchdescription+xml" href="https://www.php.net/phpnetimprovedsearch.src" title="Add PHP.net search">
<link rel="alternate" type="application/atom+xml" href="https://www.php.net/releases/feed.php" title="PHP Release feed">
<link rel="alternate" type="application/atom+xml" href="https://www.php.net/feed.atom" title="PHP: Hypertext Preprocessor">
<link rel="canonical" href="https://www.php.net/manual/en/curl.configuration.php">
<link rel="shorturl" href="https://www.php.net/manual/en/curl.configuration.php">
<link rel="alternate" href="https://www.php.net/manual/en/curl.configuration.php" hreflang="x-default">
<link rel="contents" href="https://www.php.net/manual/en/index.php">
<link rel="index" href="https://www.php.net/manual/en/curl.setup.php">
<link rel="prev" href="https://www.php.net/manual/en/curl.installation.php">
<link rel="next" href="https://www.php.net/manual/en/curl.resources.php">
<link rel="alternate" href="https://www.php.net/manual/en/curl.configuration.php" hreflang="en">
<link rel="alternate" href="https://www.php.net/manual/de/curl.configuration.php" hreflang="de">
<link rel="alternate" href="https://www.php.net/manual/es/curl.configuration.php" hreflang="es">
<link rel="alternate" href="https://www.php.net/manual/fr/curl.configuration.php" hreflang="fr">
<link rel="alternate" href="https://www.php.net/manual/it/curl.configuration.php" hreflang="it">
<link rel="alternate" href="https://www.php.net/manual/ja/curl.configuration.php" hreflang="ja">
<link rel="alternate" href="https://www.php.net/manual/pt_BR/curl.configuration.php" hreflang="pt_BR">
<link rel="alternate" href="https://www.php.net/manual/ru/curl.configuration.php" hreflang="ru">
<link rel="alternate" href="https://www.php.net/manual/tr/curl.configuration.php" hreflang="tr">
<link rel="alternate" href="https://www.php.net/manual/uk/curl.configuration.php" hreflang="uk">
<link rel="alternate" href="https://www.php.net/manual/zh/curl.configuration.php" hreflang="zh">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Fira/fira.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Font-Awesome/css/fontello.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-base.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-medium.css" media="screen">
<meta name="Description" content="Runtime Configuration" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP: Runtime Configuration - Manual" />
<meta name="twitter:description" content="Runtime Configuration" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="https://www.php.net/images/meta-image.png" />
<meta itemprop="name" content="PHP: Runtime Configuration - Manual" />
<meta itemprop="description" content="Runtime Configuration" />
<meta itemprop="image" content="https://www.php.net/images/meta-image.png" />
<meta property="og:image" content="https://www.php.net/images/meta-image.png" />
<meta property="og:description" content="Runtime Configuration" />
<link href="https://fosstodon.org/@php" rel="me" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.php.net/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body class="docs ">
<nav class="navbar navbar-fixed-top">
<div class="navbar__inner">
<a href="/" aria-label="PHP Home" class="navbar__brand">
<img
src="/images/logos/php-logo-white.svg"
aria-hidden="true"
width="80"
height="40"
>
</a>
<div
id="navbar__offcanvas"
tabindex="-1"
class="navbar__offcanvas"
aria-label="Menu"
role="navigation"
>
<button
id="navbar__close-button"
class="navbar__icon-item navbar_icon-item--visually-aligned navbar__close-button"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" fill="currentColor"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg>
</button>
<ul class="navbar__nav">
<li class="navbar__item">
<a
href="/downloads.php"
class="navbar__link "
>
Downloads </a>
</li>
<li class="navbar__item">
<a
href="/docs.php"
aria-current="page" class="navbar__link navbar__link--active "
>
Documentation </a>
</li>
<li class="navbar__item">
<a
href="/get-involved.php"
class="navbar__link "
>
Get Involved </a>
</li>
<li class="navbar__item">
<a
href="/support.php"
class="navbar__link "
>
Help </a>
</li>
<li class="navbar__item">
<a
href="/releases/8.5/index.php"
class="navbar__link navbar__release"
>
<img src="/images/php8/logo_php8_5.svg" alt="PHP 8.5">
</a>
</li>
</ul>
</div>
<div class="navbar__right">
<!-- Desktop default search -->
<form
action="/manual-lookup.php"
class="navbar__search-form"
>
<label for="navbar__search-input" aria-label="Search docs">
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </label>
<input
type="search"
name="pattern"
id="navbar__search-input"
class="navbar__search-input"
placeholder="Search docs"
accesskey="s"
>
<input type="hidden" name="scope" value="quickref">
</form>
<!-- Desktop encanced search -->
<button
id="navbar__search-button"
class="navbar__search-button"
hidden
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> Search docs
</button>
<!-- Mobile default items -->
<a
id="navbar__search-link"
href="/lookup-form.php"
aria-label="Search docs"
class="navbar__icon-item navbar__search-link"
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </a>
<a
id="navbar__menu-link"
href="/menu.php"
aria-label="Menu"
class="navbar__icon-item navbar_icon-item--visually-aligned navbar_menu-link"
>
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
</svg> </a>
<!-- Mobile enhanced items -->
<button
id="navbar__search-button-mobile"
aria-label="Search docs"
class="navbar__icon-item navbar__search-button-mobile"
hidden
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </button>
<button
id="navbar__menu-button"
aria-label="Menu"
class="navbar__icon-item navbar_icon-item--visually-aligned"
hidden
>
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
</svg> </button>
</div>
<div
id="navbar__backdrop"
class="navbar__backdrop"
></div>
</div>
<div id="flash-message"></div>
</nav>
<div class="headsup"><a href='/index.php#2026-10-23-1'>Informational advisory: Session upload progress</a></div>
<nav id="trick"><div><dl>
<dt><a href='/manual/en/getting-started.php'>Getting Started</a></dt>
<dd><a href='/manual/en/introduction.php'>Introduction</a></dd>
<dd><a href='/manual/en/tutorial.php'>A simple tutorial</a></dd>
<dt><a href='/manual/en/langref.php'>Language Reference</a></dt>
<dd><a href='/manual/en/language.basic-syntax.php'>Basic syntax</a></dd>
<dd><a href='/manual/en/language.types.php'>Types</a></dd>
<dd><a href='/manual/en/language.variables.php'>Variables</a></dd>
<dd><a href='/manual/en/language.constants.php'>Constants</a></dd>
<dd><a href='/manual/en/language.expressions.php'>Expressions</a></dd>
<dd><a href='/manual/en/language.operators.php'>Operators</a></dd>
<dd><a href='/manual/en/language.control-structures.php'>Control Structures</a></dd>
<dd><a href='/manual/en/language.functions.php'>Functions</a></dd>
<dd><a href='/manual/en/language.oop5.php'>Classes and Objects</a></dd>
<dd><a href='/manual/en/language.namespaces.php'>Namespaces</a></dd>
<dd><a href='/manual/en/language.enumerations.php'>Enumerations</a></dd>
<dd><a href='/manual/en/language.error-handling.php'>Error Handling</a></dd>
<dd><a href='/manual/en/language.fibers.php'>Fibers</a></dd>
<dd><a href='/manual/en/language.generators.php'>Generators</a></dd>
<dd><a href='/manual/en/language.attributes.php'>Attributes</a></dd>
<dd><a href='/manual/en/language.references.php'>References Explained</a></dd>
<dd><a href='/manual/en/reserved.variables.php'>Predefined Variables</a></dd>
<dd><a href='/manual/en/reserved.exceptions.php'>Predefined Exceptions</a></dd>
<dd><a href='/manual/en/reserved.interfaces.php'>Predefined Interfaces and Classes</a></dd>
<dd><a href='/manual/en/reserved.attributes.php'>Predefined Attributes</a></dd>
<dd><a href='/manual/en/context.php'>Context options and parameters</a></dd>
<dd><a href='/manual/en/wrappers.php'>Supported Protocols and Wrappers</a></dd>
</dl>
<dl>
<dt><a href='/manual/en/security.php'>Security</a></dt>
<dd><a href='/manual/en/security.intro.php'>Introduction</a></dd>
<dd><a href='/manual/en/security.general.php'>General considerations</a></dd>
<dd><a href='/manual/en/security.cgi-bin.php'>Installed as CGI binary</a></dd>
<dd><a href='/manual/en/security.apache.php'>Installed as an Apache module</a></dd>
<dd><a href='/manual/en/security.sessions.php'>Session Security</a></dd>
<dd><a href='/manual/en/security.filesystem.php'>Filesystem Security</a></dd>
<dd><a href='/manual/en/security.database.php'>Database Security</a></dd>
<dd><a href='/manual/en/security.errors.php'>Error Reporting</a></dd>
<dd><a href='/manual/en/security.variables.php'>User Submitted Data</a></dd>
<dd><a href='/manual/en/security.hiding.php'>Hiding PHP</a></dd>
<dd><a href='/manual/en/security.current.php'>Keeping Current</a></dd>
<dt><a href='/manual/en/features.php'>Features</a></dt>
<dd><a href='/manual/en/features.http-auth.php'>HTTP authentication with PHP</a></dd>
<dd><a href='/manual/en/features.cookies.php'>Cookies</a></dd>
<dd><a href='/manual/en/features.sessions.php'>Sessions</a></dd>
<dd><a href='/manual/en/features.file-upload.php'>Handling file uploads</a></dd>
<dd><a href='/manual/en/features.remote-files.php'>Using remote files</a></dd>
<dd><a href='/manual/en/features.connection-handling.php'>Connection handling</a></dd>
<dd><a href='/manual/en/features.persistent-connections.php'>Persistent Database Connections</a></dd>
<dd><a href='/manual/en/features.commandline.php'>Command line usage</a></dd>
<dd><a href='/manual/en/features.gc.php'>Garbage Collection</a></dd>
<dd><a href='/manual/en/features.dtrace.php'>DTrace Dynamic Tracing</a></dd>
</dl>
<dl>
<dt><a href='/manual/en/funcref.php'>Function Reference</a></dt>
<dd><a href='/manual/en/refs.basic.php.php'>Affecting PHP's Behaviour</a></dd>
<dd><a href='/manual/en/refs.utilspec.audio.php'>Audio Formats Manipulation</a></dd>
<dd><a href='/manual/en/refs.remote.auth.php'>Authentication Services</a></dd>
<dd><a href='/manual/en/refs.utilspec.cmdline.php'>Command Line Specific Extensions</a></dd>
<dd><a href='/manual/en/refs.compression.php'>Compression and Archive Extensions</a></dd>
<dd><a href='/manual/en/refs.crypto.php'>Cryptography Extensions</a></dd>
<dd><a href='/manual/en/refs.database.php'>Database Extensions</a></dd>
<dd><a href='/manual/en/refs.calendar.php'>Date and Time Related Extensions</a></dd>
<dd><a href='/manual/en/refs.fileprocess.file.php'>File System Related Extensions</a></dd>
<dd><a href='/manual/en/refs.international.php'>Human Language and
Character Encoding Support</a></dd>
<dd><a href='/manual/en/refs.utilspec.image.php'>Image Processing and Generation</a></dd>
<dd><a href='/manual/en/refs.remote.mail.php'>Mail Related Extensions</a></dd>
<dd><a href='/manual/en/refs.math.php'>Mathematical Extensions</a></dd>
<dd><a href='/manual/en/refs.utilspec.nontext.php'>Non-Text MIME Output</a></dd>
<dd><a href='/manual/en/refs.fileprocess.process.php'>Process Control Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.other.php'>Other Basic Extensions</a></dd>
<dd><a href='/manual/en/refs.remote.other.php'>Other Services</a></dd>
<dd><a href='/manual/en/refs.search.php'>Search Engine Extensions</a></dd>
<dd><a href='/manual/en/refs.utilspec.server.php'>Server Specific Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.session.php'>Session Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.text.php'>Text Processing</a></dd>
<dd><a href='/manual/en/refs.basic.vartype.php'>Variable and Type Related Extensions</a></dd>
<dd><a href='/manual/en/refs.webservice.php'>Web Services</a></dd>
<dd><a href='/manual/en/refs.utilspec.windows.php'>Windows Only Extensions</a></dd>
<dd><a href='/manual/en/refs.xml.php'>XML Manipulation</a></dd>
<dd><a href='/manual/en/refs.ui.php'>GUI Extensions</a></dd>
</dl>
<dl>
<dt>Keyboard Shortcuts</dt><dt>?</dt>
<dd>This help</dd>
<dt>j</dt>
<dd>Next menu item</dd>
<dt>k</dt>
<dd>Previous menu item</dd>
<dt>g p</dt>
<dd>Previous man page</dd>
<dt>g n</dt>
<dd>Next man page</dd>
<dt>G</dt>
<dd>Scroll to bottom</dd>
<dt>g g</dt>
<dd>Scroll to top</dd>
<dt>g h</dt>
<dd>Goto homepage</dd>
<dt>g s</dt>
<dd>Goto search<br>(current page)</dd>
<dt>/</dt>
<dd>Focus search box</dd>
</dl></div></nav>
<div id="goto">
<div class="search">
<div class="text"></div>
<div class="results"><ul></ul></div>
</div>
</div>
<div id="breadcrumbs" class="clearfix">
<div id="breadcrumbs-inner">
<div class="next">
<a href="curl.resources.php">
Resource Types &raquo;
</a>
</div>
<div class="prev">
<a href="curl.installation.php">
&laquo; Installation </a>
</div>
<ul>
<li><a href='index.php'>Preface</a></li> <li><a href='funcref.php'>Function Reference</a></li> <li><a href='refs.remote.other.php'>Other Services</a></li> <li><a href='book.curl.php'>cURL</a></li> <li><a href='curl.setup.php'>Installing/Configuring</a></li> </ul>
</div>
</div>
<div id="layout" class="clearfix">
<section id="layout-content">
<div class="page-tools">
<div class="change-language">
<form action="/manual/change.php" method="get" id="changelang" name="changelang">
<fieldset>
<label for="changelang-langs">Change language:</label>
<select onchange="document.changelang.submit()" name="page" id="changelang-langs">
<option value='en/curl.configuration.php' selected="selected">English</option>
<option value='de/curl.configuration.php'>German</option>
<option value='es/curl.configuration.php'>Spanish</option>
<option value='fr/curl.configuration.php'>French</option>
<option value='it/curl.configuration.php'>Italian</option>
<option value='ja/curl.configuration.php'>Japanese</option>
<option value='pt_BR/curl.configuration.php'>Brazilian Portuguese</option>
<option value='ru/curl.configuration.php'>Russian</option>
<option value='tr/curl.configuration.php'>Turkish</option>
<option value='uk/curl.configuration.php'>Ukrainian</option>
<option value='zh/curl.configuration.php'>Chinese (Simplified)</option>
<option value='help-translate.php'>Other</option>
</select>
</fieldset>
</form>
</div>
</div><div id="curl.configuration" class="section">
<h2 class="title">Runtime Configuration</h2>
<p class="simpara">
The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.
</p>
<p class="para">
<table class="doctable table">
<caption><strong>cURL Configuration Options</strong></caption>
<thead>
<tr>
<th>Name</th>
<th>Default</th>
<th>Changeable</th>
<th>Changelog</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td><a href="curl.configuration.php#ini.curl.cainfo" class="link">curl.cainfo</a></td>
<td>NULL</td>
<td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
<td class="empty">&nbsp;</td>
</tr>
</tbody>
</table>
For further details and definitions of the
INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
</p>
<p class="simpara">Here&#039;s a short explanation of
the configuration directives.</p>
<p class="para">
<dl>
<dt id="ini.curl.cainfo">
<code class="parameter">curl.cainfo</code>
<span class="type"><a href="language.types.string.php" class="type string">string</a></span>
</dt>
<dd>
<p class="para">
A default value for the <strong><code><a href="curl.constants.php#constant.curlopt-cainfo">CURLOPT_CAINFO</a></code></strong> option. This
is required to be an absolute path.
</p>
</dd>
</dl>
</p>
</div> <div class="contribute">
<h3 class="title">Found A Problem?</h3>
<div>
</div>
<div class="edit-bug">
<a href="https://github.com/php/doc-base/blob/master/README.md" title="This will take you to our contribution guidelines on GitHub" target="_blank" rel="noopener noreferrer">Learn How To Improve This Page</a>
•
<a href="https://github.com/php/doc-en/blob/master/reference/curl/ini.xml">Submit a Pull Request</a>
•
<a href="https://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Fcurl.configuration%0A%0A---">Report a Bug</a>
</div>
</div><section id="usernotes">
<div class="head">
<span class="action"><a href="/manual/add-note.php?sect=curl.configuration&amp;repo=en&amp;redirect=https://www.php.net/manual/en/curl.configuration.php">+<small>add a note</small></a></span>
<h3 class="title">User Contributed Notes <span class="count">3 notes</span></h3>
</div><div id="allnotes">
<div class="note" id="126429"> <div class="votes">
<div id="Vu126429">
<a href="/manual/vote-note.php?id=126429&amp;page=curl.configuration&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a>
</div>
<div id="Vd126429">
<a href="/manual/vote-note.php?id=126429&amp;page=curl.configuration&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a>
</div>
<div class="tally" id="V126429" title="59% like this...">
5
</div>
</div>
<a href="#126429" class="name">
<strong class="user"><em>knuklus at gmail dot com</em></strong></a><a class="genanchor" href="#126429"> &para;</a><div class="date" title="2021-09-17 06:33"><strong>5 years ago</strong></div>
<div class="text" id="Hcom126429">
<div class="phpcode"><pre><code class="html">cURL error 60: SSL certificate problem: unable to get local issuer certificate
This problem can occur when developing locally on windows. I am using windows 10 (x64)
In order to fix the error, I downloaded cacert.pem from <a href="https://curl.haxx.se/docs/caextract.html" rel="nofollow" target="_blank">https://curl.haxx.se/docs/caextract.html</a>
Set the following value for in php.ini
curl.cainfo = "C: \ php-8.0.7 \ extras \ ssl \ cacert.pem"</code></pre></div>
</div>
</div>
<div class="note" id="125326"> <div class="votes">
<div id="Vu125326">
<a href="/manual/vote-note.php?id=125326&amp;page=curl.configuration&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a>
</div>
<div id="Vd125326">
<a href="/manual/vote-note.php?id=125326&amp;page=curl.configuration&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a>
</div>
<div class="tally" id="V125326" title="48% like this...">
-1
</div>
</div>
<a href="#125326" class="name">
<strong class="user"><em>ajith at pavanathara dot com</em></strong></a><a class="genanchor" href="#125326"> &para;</a><div class="date" title="2020-09-04 05:36"><strong>6 years ago</strong></div>
<div class="text" id="Hcom125326">
<div class="phpcode"><pre><code class="html">cURL error 60: SSL certificate problem: unable to get local issuer certificate
This local development error comes when curl.cainfo variable is not set correctly.
I faced this issue in PHP Version 7.3.1
In order to fix the error, I downloaded cacert.pem from <a href="https://curl.haxx.se/docs/caextract.html" rel="nofollow" target="_blank">https://curl.haxx.se/docs/caextract.html</a>
Set the following paths in php.ini
curl.cainfo="D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem"
openssl.cafile="D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem"
Even after adding the paths and restart Apache, Inside phpinfo(), both the paths were showing blank.
The error will go only if we set via php code of the project.
Example code worked for me :-
$guzzle = new \GuzzleHttp\Client(['verify' =&gt; 'D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem']);</code></pre></div>
</div>
</div>
<div class="note" id="125327"> <div class="votes">
<div id="Vu125327">
<a href="/manual/vote-note.php?id=125327&amp;page=curl.configuration&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a>
</div>
<div id="Vd125327">
<a href="/manual/vote-note.php?id=125327&amp;page=curl.configuration&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a>
</div>
<div class="tally" id="V125327" title="47% like this...">
-1
</div>
</div>
<a href="#125327" class="name">
<strong class="user"><em>ajith at pavanathara dot com</em></strong></a><a class="genanchor" href="#125327"> &para;</a><div class="date" title="2020-09-04 07:02"><strong>6 years ago</strong></div>
<div class="text" id="Hcom125327">
<div class="phpcode"><pre><code class="html">I was editing wrong php.ini file in last comment.
Even though loaded configuration path was showing as "D:\wamp64\bin\apache\apache2.4.37\bin\php.ini" inside phpinfo() of WAMP Server, It was actually loading "D:\wamp64\bin\apache\apache2.4.37\bin\phpForApache.ini"
Once I set both the variables inside phpForApache.ini, details are displayed in phpinfo() and error has gone without extra coding line.</code></pre></div>
</div>
</div></div>
<div class="foot"><a href="/manual/add-note.php?sect=curl.configuration&amp;repo=en&amp;redirect=https://www.php.net/manual/en/curl.configuration.php">+<small>add a note</small></a></div>
</section> </section><!-- layout-content -->
<aside class='layout-menu'>
<ul class='parent-menu-list'>
<li>
<a href="curl.setup.php">Installing/Configuring</a>
<ul class='child-menu-list'>
<li class="">
<a href="curl.requirements.php" title="Requirements">Requirements</a>
</li>
<li class="">
<a href="curl.installation.php" title="Installation">Installation</a>
</li>
<li class="current">
<a href="curl.configuration.php" title="Runtime Configuration">Runtime Configuration</a>
</li>
<li class="">
<a href="curl.resources.php" title="Resource Types">Resource Types</a>
</li>
</ul>
</li>
</ul>
</aside>
</div><!-- layout -->
<footer>
<div class="container footer-content">
<div class="row-fluid">
<ul class="footmenu">
<li><a href="/manual/en/copyright.php">Copyright &copy; 2001-2026 The PHP Documentation Group</a></li>
<li><a href="/my.php">My PHP.net</a></li>
<li><a href="/contact.php">Contact</a></li>
<li><a href="/sites.php">Other PHP.net sites</a></li>
<li><a href="/privacy.php">Privacy policy</a></li>
</ul>
</div>
</div>
</footer>
<script src="/cached.php?t=&amp;f=/js/ext/jquery-3.6.0.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/FuzzySearch.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/mousetrap.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/jquery.scrollTo.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/search.js"></script>
<script src="/cached.php?t=&amp;f=/js/common.js"></script>
<script type="module" src="/cached.php?t=&amp;f=/js/interactive-examples.js"></script>
<a id="toTop" href="javascript:;"><span id="toTopHover"></span><img width="40" height="40" alt="To Top" src="/images/to-top@2x.png"></a>
<div id="search-modal__backdrop" class="search-modal__backdrop">
<div
role="dialog"
aria-label="Search modal"
id="search-modal"
class="search-modal"
>
<div class="search-modal__header">
<div class="search-modal__form">
<div class="search-modal__input-icon">
<!-- https://feathericons.com search -->
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</div>
<input
type="search"
id="search-modal__input"
class="search-modal__input"
placeholder="Search docs"
aria-label="Search docs"
/>
</div>
<button aria-label="Close" class="search-modal__close">
<!-- https://pictogrammers.com/library/mdi/icon/close/ -->
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
>
<path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/>
</svg>
</button>
</div>
<div
role="listbox"
aria-label="Search results"
id="search-modal__results"
class="search-modal__results"
></div>
<div class="search-modal__helper-text">
<div>
<kbd>↑</kbd> and <kbd>↓</kbd> to navigate •
<kbd>Enter</kbd> to select •
<kbd>Esc</kbd> to close • <kbd>/</kbd> to open
</div>
<div>
Press <kbd>Enter</kbd> without
selection to search using Google
</div>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,803 @@
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-2026 by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="D programming language">
<meta name="description" content="D Programming Language">
<title>std.json - D Programming Language</title>
<link rel="stylesheet" href="../css/codemirror.css">
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/print.css" media="print">
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
</head>
<body id='std.json' class='std'>
<script type="text/javascript">document.body.className += ' have-javascript'</script>
<div id="top"><div class="helper"><div class="helper expand-container"> <div class="logo"><a href=".."><img id="logo" alt="D Logo" src="../images/dlogo.svg"></a></div>
<a href="../menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
<div id="cssmenu"><ul> <li><a href='https://tour.dlang.org'><span>Learn</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../documentation.html'><span>Documentation</span></a>
<ul class='expand-content'> <li><a href='../spec/spec.html'>Language Reference</a></li>
<li><a href='../phobos/index.html'>Library Reference</a></li>
<li><a href='../dmd.html'>Command-line Reference</a></li>
<li class="menu-divider"><a href='../comparison.html'>Feature Overview</a></li>
<li><a href='../articles.html'>Articles</a></li>
</ul></li>
<li><a href='../download.html'><span>Downloads</span></a></li>
<li><a href='https://code.dlang.org'><span>Packages</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../community.html'><span>Community</span></a>
<ul class='expand-content'> <li><a href='https://blog.dlang.org'>Blog</a></li>
<li><a href='../orgs-using-d.html'>Orgs using D</a></li>
<li><a href='https://twitter.com/search?q=%23dlang'>Twitter</a></li>
<li class="menu-divider"><a href='https://discord.gg/bMZk9Q4'>Discord (community-run)</a></li>
<li><a href='https://forum.dlang.org'>Forums</a></li>
<li><a href='irc://irc.libera.chat/d'>IRC</a></li>
<li><a href='https://wiki.dlang.org'>Wiki</a></li>
<li class="menu-divider"><a href='../bugstats.html'>Issues</a></li>
<li><a href='../contributing.html'>Contributing</a></li>
<li class="menu-divider"><a href='../foundation/contributors.html'>Contributors</a></li>
<li><a href='../foundation/index.html'>Foundation</a></li>
<li><a href='..//security.html'>Security Team</a></li>
<li class="menu-divider"><a href='https://store.dlang.org/'>Store</a></li>
<li><a href='../foundation/donate.html'>Donate</a></li>
<li><a href='../foundation/sponsors.html'>Sponsors</a></li>
</ul></li>
<li class='expand-container'><a class='expand-toggle' href='../resources.html'><span>Resources</span></a>
<ul class='expand-content'> <li><a href='https://tour.dlang.org'>Tour</a></li>
<li><a href='https://wiki.dlang.org/Books'>Books</a></li>
<li><a href='https://wiki.dlang.org/Tutorials'>Tutorials</a></li>
<li class="menu-divider"><a href='https://wiki.dlang.org/Development_tools'>Tools</a></li>
<li><a href='https://wiki.dlang.org/Editors'>Editors</a></li>
<li><a href='https://wiki.dlang.org/IDEs'>IDEs</a></li>
<li><a href='https://run.dlang.io'>run.dlang.io</a></li>
<li><a href='http://rainers.github.io/visuald/visuald/StartPage.html'>Visual D</a></li>
<li class="menu-divider"><a href='../acknowledgements.html'>Acknowledgments</a></li>
<li><a href='../dstyle.html'>D Style</a></li>
<li><a href='../spec/glossary.html'>Glossary</a></li>
<li><a href='../sitemap.html'>Sitemap</a></li>
</ul></li>
</ul></div>
<div class="search-container expand-container"> <a href="../search.html" class="expand-toggle" title="Search"><span>Search</span></a>
<div id="search-box"> <form method="get" action="https://google.com/search">
<input type="hidden" id="domains" name="domains" value="dlang.org">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
<span id="search-query"><input id="q" name="q" placeholder="Google Search"></span><span id="search-dropdown"><span class="helper"> <select id="sitesearch" name="sitesearch" size="1">
<option value="dlang.org">Entire Site</option>
<option value="dlang.org/spec">Language</option>
<option selected value="dlang.org/phobos">Library</option>
<option value="forum.dlang.org">Forums</option>
</select>
</span></span><span id="search-submit"><button type="submit"><i class="fa fa-search"></i><span>go</span></button></span>
</form>
</div>
</div>
</div></div></div>
<div class="container">
<div class="subnav-helper"></div> <div class="subnav"> <div class="head"> <h2>Library Reference</h2>
<p><span class="smallprint">version 2.113.0 <span class="separator"><br></span>
</span>
</p>
<p><a href="index.html">overview</a></p>
</div>
<ul>
<li><a href='object.html'><span><em class="tt">object</em></span></a></li>
<li class='expand-container modlist-submenu-std'><a class='expand-toggle' href='#'><span><em class="tt">std</em></span></a>
<ul><li> <a href="std_algorithm.html" title="std.algorithm"><span class="d_inlinecode donthyphenate notranslate">algorithm</span></a><ul><li> <a href="std_algorithm_comparison.html" title="std.algorithm.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="std_algorithm_iteration.html" title="std.algorithm.iteration"><span class="d_inlinecode donthyphenate notranslate">iteration</span></a></li><li> <a href="std_algorithm_mutation.html" title="std.algorithm.mutation"><span class="d_inlinecode donthyphenate notranslate">mutation</span></a></li><li> <a href="std_algorithm_searching.html" title="std.algorithm.searching"><span class="d_inlinecode donthyphenate notranslate">searching</span></a></li><li> <a href="std_algorithm_setops.html" title="std.algorithm.setops"><span class="d_inlinecode donthyphenate notranslate">setops</span></a></li><li> <a href="std_algorithm_sorting.html" title="std.algorithm.sorting"><span class="d_inlinecode donthyphenate notranslate">sorting</span></a>
</li></ul></li><li> <a href="std_array.html" title="std.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_ascii.html" title="std.ascii"><span class="d_inlinecode donthyphenate notranslate">ascii</span></a></li><li> <a href="std_base64.html" title="std.base64"><span class="d_inlinecode donthyphenate notranslate">base64</span></a></li><li> <a href="std_bigint.html" title="std.bigint"><span class="d_inlinecode donthyphenate notranslate">bigint</span></a></li><li> <a href="std_bitmanip.html" title="std.bitmanip"><span class="d_inlinecode donthyphenate notranslate">bitmanip</span></a></li><li> <a href="std_checkedint.html" title="std.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_compiler.html" title="std.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="std_complex.html" title="std.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="std_concurrency.html" title="std.concurrency"><span class="d_inlinecode donthyphenate notranslate">concurrency</span></a></li><li> <a href="std_container.html" title="std.container"><span class="d_inlinecode donthyphenate notranslate">container</span></a><ul><li> <a href="std_container_array.html" title="std.container.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_container_binaryheap.html" title="std.container.binaryheap"><span class="d_inlinecode donthyphenate notranslate">binaryheap</span></a></li><li> <a href="std_container_dlist.html" title="std.container.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="std_container_rbtree.html" title="std.container.rbtree"><span class="d_inlinecode donthyphenate notranslate">rbtree</span></a></li><li> <a href="std_container_slist.html" title="std.container.slist"><span class="d_inlinecode donthyphenate notranslate">slist</span></a></li><li> <a href="std_container_util.html" title="std.container.util"><span class="d_inlinecode donthyphenate notranslate">util</span></a>
</li></ul></li><li> <a href="std_conv.html" title="std.conv"><span class="d_inlinecode donthyphenate notranslate">conv</span></a></li><li> <a href="std_csv.html" title="std.csv"><span class="d_inlinecode donthyphenate notranslate">csv</span></a></li><li> <a href="std_datetime.html" title="std.datetime"><span class="d_inlinecode donthyphenate notranslate">datetime</span></a><ul><li> <a href="std_datetime_date.html" title="std.datetime.date"><span class="d_inlinecode donthyphenate notranslate">date</span></a></li><li> <a href="std_datetime_interval.html" title="std.datetime.interval"><span class="d_inlinecode donthyphenate notranslate">interval</span></a></li><li> <a href="std_datetime_stopwatch.html" title="std.datetime.stopwatch"><span class="d_inlinecode donthyphenate notranslate">stopwatch</span></a></li><li> <a href="std_datetime_systime.html" title="std.datetime.systime"><span class="d_inlinecode donthyphenate notranslate">systime</span></a></li><li> <a href="std_datetime_timezone.html" title="std.datetime.timezone"><span class="d_inlinecode donthyphenate notranslate">timezone</span></a>
</li></ul></li><li> <a href="std_demangle.html" title="std.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="std_digest.html" title="std.digest"><span class="d_inlinecode donthyphenate notranslate">digest</span></a><ul><li> <a href="std_digest_crc.html" title="std.digest.crc"><span class="d_inlinecode donthyphenate notranslate">crc</span></a></li><li> <a href="std_digest_hmac.html" title="std.digest.hmac"><span class="d_inlinecode donthyphenate notranslate">hmac</span></a></li><li> <a href="std_digest_md.html" title="std.digest.md"><span class="d_inlinecode donthyphenate notranslate">md</span></a></li><li> <a href="std_digest_murmurhash.html" title="std.digest.murmurhash"><span class="d_inlinecode donthyphenate notranslate">murmurhash</span></a></li><li> <a href="std_digest_ripemd.html" title="std.digest.ripemd"><span class="d_inlinecode donthyphenate notranslate">ripemd</span></a></li><li> <a href="std_digest_sha.html" title="std.digest.sha"><span class="d_inlinecode donthyphenate notranslate">sha</span></a>
</li></ul></li><li> <a href="std_encoding.html" title="std.encoding"><span class="d_inlinecode donthyphenate notranslate">encoding</span></a></li><li> <a href="std_exception.html" title="std.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">experimental</span></h7><ul><li> <a href="std_experimental_allocator.html" title="std.experimental.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a><ul><li> <a href="std_experimental_allocator_building_blocks.html" title="std.experimental.allocator.building_blocks"><span class="d_inlinecode donthyphenate notranslate">building_blocks</span></a><ul><li> <a href="std_experimental_allocator_building_blocks_affix_allocator.html" title="std.experimental.allocator.building_blocks.affix_allocator"><span class="d_inlinecode donthyphenate notranslate">affix_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_aligned_block_list.html" title="std.experimental.allocator.building_blocks.aligned_block_list"><span class="d_inlinecode donthyphenate notranslate">aligned_block_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_allocator_list.html" title="std.experimental.allocator.building_blocks.allocator_list"><span class="d_inlinecode donthyphenate notranslate">allocator_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_ascending_page_allocator.html" title="std.experimental.allocator.building_blocks.ascending_page_allocator"><span class="d_inlinecode donthyphenate notranslate">ascending_page_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bitmapped_block.html" title="std.experimental.allocator.building_blocks.bitmapped_block"><span class="d_inlinecode donthyphenate notranslate">bitmapped_block</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bucketizer.html" title="std.experimental.allocator.building_blocks.bucketizer"><span class="d_inlinecode donthyphenate notranslate">bucketizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_fallback_allocator.html" title="std.experimental.allocator.building_blocks.fallback_allocator"><span class="d_inlinecode donthyphenate notranslate">fallback_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_list.html" title="std.experimental.allocator.building_blocks.free_list"><span class="d_inlinecode donthyphenate notranslate">free_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_tree.html" title="std.experimental.allocator.building_blocks.free_tree"><span class="d_inlinecode donthyphenate notranslate">free_tree</span></a></li><li> <a href="std_experimental_allocator_building_blocks_kernighan_ritchie.html" title="std.experimental.allocator.building_blocks.kernighan_ritchie"><span class="d_inlinecode donthyphenate notranslate">kernighan_ritchie</span></a></li><li> <a href="std_experimental_allocator_building_blocks_null_allocator.html" title="std.experimental.allocator.building_blocks.null_allocator"><span class="d_inlinecode donthyphenate notranslate">null_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_quantizer.html" title="std.experimental.allocator.building_blocks.quantizer"><span class="d_inlinecode donthyphenate notranslate">quantizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_region.html" title="std.experimental.allocator.building_blocks.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="std_experimental_allocator_building_blocks_scoped_allocator.html" title="std.experimental.allocator.building_blocks.scoped_allocator"><span class="d_inlinecode donthyphenate notranslate">scoped_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_segregator.html" title="std.experimental.allocator.building_blocks.segregator"><span class="d_inlinecode donthyphenate notranslate">segregator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_stats_collector.html" title="std.experimental.allocator.building_blocks.stats_collector"><span class="d_inlinecode donthyphenate notranslate">stats_collector</span></a>
</li></ul></li><li> <a href="std_experimental_allocator_common.html" title="std.experimental.allocator.common"><span class="d_inlinecode donthyphenate notranslate">common</span></a></li><li> <a href="std_experimental_allocator_gc_allocator.html" title="std.experimental.allocator.gc_allocator"><span class="d_inlinecode donthyphenate notranslate">gc_allocator</span></a></li><li> <a href="std_experimental_allocator_mallocator.html" title="std.experimental.allocator.mallocator"><span class="d_inlinecode donthyphenate notranslate">mallocator</span></a></li><li> <a href="std_experimental_allocator_mmap_allocator.html" title="std.experimental.allocator.mmap_allocator"><span class="d_inlinecode donthyphenate notranslate">mmap_allocator</span></a></li><li> <a href="std_experimental_allocator_showcase.html" title="std.experimental.allocator.showcase"><span class="d_inlinecode donthyphenate notranslate">showcase</span></a></li><li> <a href="std_experimental_allocator_typed.html" title="std.experimental.allocator.typed"><span class="d_inlinecode donthyphenate notranslate">typed</span></a>
</li></ul></li><li> <a href="std_experimental_checkedint.html" title="std.experimental.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_experimental_logger.html" title="std.experimental.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_experimental_logger_core.html" title="std.experimental.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_experimental_logger_filelogger.html" title="std.experimental.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_experimental_logger_multilogger.html" title="std.experimental.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_experimental_logger_nulllogger.html" title="std.experimental.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul>
</li></ul></li><li> <a href="std_file.html" title="std.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="std_format.html" title="std.format"><span class="d_inlinecode donthyphenate notranslate">format</span></a><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <a href="std_format_internal_floats.html" title="std.format.internal.floats"><span class="d_inlinecode donthyphenate notranslate">floats</span></a></li><li> <a href="std_format_internal_read.html" title="std.format.internal.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_internal_write.html" title="std.format.internal.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_format_read.html" title="std.format.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_spec.html" title="std.format.spec"><span class="d_inlinecode donthyphenate notranslate">spec</span></a></li><li> <a href="std_format_write.html" title="std.format.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_functional.html" title="std.functional"><span class="d_inlinecode donthyphenate notranslate">functional</span></a></li><li> <a href="std_getopt.html" title="std.getopt"><span class="d_inlinecode donthyphenate notranslate">getopt</span></a></li><li> <a href="std_int128.html" title="std.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="std_json.html" title="std.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="std_logger.html" title="std.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_logger_core.html" title="std.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_logger_filelogger.html" title="std.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_logger_multilogger.html" title="std.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_logger_nulllogger.html" title="std.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul></li><li> <a href="std_math.html" title="std.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a><ul><li> <a href="std_math_algebraic.html" title="std.math.algebraic"><span class="d_inlinecode donthyphenate notranslate">algebraic</span></a></li><li> <a href="std_math_constants.html" title="std.math.constants"><span class="d_inlinecode donthyphenate notranslate">constants</span></a></li><li> <a href="std_math_exponential.html" title="std.math.exponential"><span class="d_inlinecode donthyphenate notranslate">exponential</span></a></li><li> <a href="std_math_hardware.html" title="std.math.hardware"><span class="d_inlinecode donthyphenate notranslate">hardware</span></a></li><li> <a href="std_math_operations.html" title="std.math.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="std_math_remainder.html" title="std.math.remainder"><span class="d_inlinecode donthyphenate notranslate">remainder</span></a></li><li> <a href="std_math_rounding.html" title="std.math.rounding"><span class="d_inlinecode donthyphenate notranslate">rounding</span></a></li><li> <a href="std_math_traits.html" title="std.math.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_math_trigonometry.html" title="std.math.trigonometry"><span class="d_inlinecode donthyphenate notranslate">trigonometry</span></a>
</li></ul></li><li> <a href="std_mathspecial.html" title="std.mathspecial"><span class="d_inlinecode donthyphenate notranslate">mathspecial</span></a></li><li> <a href="std_meta.html" title="std.meta"><span class="d_inlinecode donthyphenate notranslate">meta</span></a></li><li> <a href="std_mmfile.html" title="std.mmfile"><span class="d_inlinecode donthyphenate notranslate">mmfile</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">net</span></h7><ul><li> <a href="std_net_curl.html" title="std.net.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="std_net_isemail.html" title="std.net.isemail"><span class="d_inlinecode donthyphenate notranslate">isemail</span></a>
</li></ul></li><li> <a href="std_numeric.html" title="std.numeric"><span class="d_inlinecode donthyphenate notranslate">numeric</span></a></li><li> <a href="std_outbuffer.html" title="std.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="std_parallelism.html" title="std.parallelism"><span class="d_inlinecode donthyphenate notranslate">parallelism</span></a></li><li> <a href="std_path.html" title="std.path"><span class="d_inlinecode donthyphenate notranslate">path</span></a></li><li> <a href="std_process.html" title="std.process"><span class="d_inlinecode donthyphenate notranslate">process</span></a></li><li> <a href="std_random.html" title="std.random"><span class="d_inlinecode donthyphenate notranslate">random</span></a></li><li> <a href="std_range.html" title="std.range"><span class="d_inlinecode donthyphenate notranslate">range</span></a><ul><li> <a href="std_range_interfaces.html" title="std.range.interfaces"><span class="d_inlinecode donthyphenate notranslate">interfaces</span></a></li><li> <a href="std_range_primitives.html" title="std.range.primitives"><span class="d_inlinecode donthyphenate notranslate">primitives</span></a>
</li></ul></li><li> <a href="std_regex.html" title="std.regex"><span class="d_inlinecode donthyphenate notranslate">regex</span></a></li><li> <a href="std_signals.html" title="std.signals"><span class="d_inlinecode donthyphenate notranslate">signals</span></a></li><li> <a href="std_socket.html" title="std.socket"><span class="d_inlinecode donthyphenate notranslate">socket</span></a></li><li> <a href="std_stdint.html" title="std.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="std_stdio.html" title="std.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="std_string.html" title="std.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="std_sumtype.html" title="std.sumtype"><span class="d_inlinecode donthyphenate notranslate">sumtype</span></a></li><li> <a href="std_system.html" title="std.system"><span class="d_inlinecode donthyphenate notranslate">system</span></a></li><li> <a href="std_traits.html" title="std.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_typecons.html" title="std.typecons"><span class="d_inlinecode donthyphenate notranslate">typecons</span></a></li><li> <a href="std_uni.html" title="std.uni"><span class="d_inlinecode donthyphenate notranslate">uni</span></a></li><li> <a href="std_uri.html" title="std.uri"><span class="d_inlinecode donthyphenate notranslate">uri</span></a></li><li> <a href="std_utf.html" title="std.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a></li><li> <a href="std_uuid.html" title="std.uuid"><span class="d_inlinecode donthyphenate notranslate">uuid</span></a></li><li> <a href="std_variant.html" title="std.variant"><span class="d_inlinecode donthyphenate notranslate">variant</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="std_windows_charset.html" title="std.windows.charset"><span class="d_inlinecode donthyphenate notranslate">charset</span></a></li><li> <a href="std_windows_syserror.html" title="std.windows.syserror"><span class="d_inlinecode donthyphenate notranslate">syserror</span></a>
</li></ul></li><li> <a href="std_zip.html" title="std.zip"><span class="d_inlinecode donthyphenate notranslate">zip</span></a></li><li> <a href="std_zlib.html" title="std.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-etc'><a class='expand-toggle' href='#'><span><em class="tt">etc</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">c</span></h7><ul><li> <a href="etc_c_curl.html" title="etc.c.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="etc_c_odbc.html" title="etc.c.odbc"><span class="d_inlinecode donthyphenate notranslate">odbc</span></a><ul><li> <a href="etc_c_odbc_odbc32.html" title="etc.c.odbc.odbc32"><span class="d_inlinecode donthyphenate notranslate">odbc32</span></a></li><li> <a href="etc_c_odbc_odbc64.html" title="etc.c.odbc.odbc64"><span class="d_inlinecode donthyphenate notranslate">odbc64</span></a></li><li> <a href="etc_c_odbc_sql.html" title="etc.c.odbc.sql"><span class="d_inlinecode donthyphenate notranslate">sql</span></a></li><li> <a href="etc_c_odbc_sqlext.html" title="etc.c.odbc.sqlext"><span class="d_inlinecode donthyphenate notranslate">sqlext</span></a></li><li> <a href="etc_c_odbc_sqltypes.html" title="etc.c.odbc.sqltypes"><span class="d_inlinecode donthyphenate notranslate">sqltypes</span></a></li><li> <a href="etc_c_odbc_sqlucode.html" title="etc.c.odbc.sqlucode"><span class="d_inlinecode donthyphenate notranslate">sqlucode</span></a>
</li></ul></li><li> <a href="etc_c_sqlite3.html" title="etc.c.sqlite3"><span class="d_inlinecode donthyphenate notranslate">sqlite3</span></a></li><li> <a href="etc_c_zlib.html" title="etc.c.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="etc_linux_memoryerror.html" title="etc.linux.memoryerror"><span class="d_inlinecode donthyphenate notranslate">memoryerror</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">valgrind</span></h7><ul><li> <a href="etc_valgrind_valgrind.html" title="etc.valgrind.valgrind"><span class="d_inlinecode donthyphenate notranslate">valgrind</span></a>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <a href="core_atomic.html" title="core.atomic"><span class="d_inlinecode donthyphenate notranslate">atomic</span></a></li><li> <a href="core_attribute.html" title="core.attribute"><span class="d_inlinecode donthyphenate notranslate">attribute</span></a></li><li> <a href="core_bitop.html" title="core.bitop"><span class="d_inlinecode donthyphenate notranslate">bitop</span></a></li><li> <a href="core_builtins.html" title="core.builtins"><span class="d_inlinecode donthyphenate notranslate">builtins</span></a></li><li> <a href="core_checkedint.html" title="core.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="core_cpuid.html" title="core.cpuid"><span class="d_inlinecode donthyphenate notranslate">cpuid</span></a></li><li> <a href="core_demangle.html" title="core.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="core_exception.html" title="core.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_factory.html" title="core.factory"><span class="d_inlinecode donthyphenate notranslate">factory</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">gc</span></h7><ul><li> <a href="core_gc_config.html" title="core.gc.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_gc_gcinterface.html" title="core.gc.gcinterface"><span class="d_inlinecode donthyphenate notranslate">gcinterface</span></a></li><li> <a href="core_gc_registry.html" title="core.gc.registry"><span class="d_inlinecode donthyphenate notranslate">registry</span></a>
</li></ul></li><li> <a href="core_int128.html" title="core.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="core_interpolation.html" title="core.interpolation"><span class="d_inlinecode donthyphenate notranslate">interpolation</span></a></li><li> <a href="core_lifetime.html" title="core.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="core_math.html" title="core.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_memory.html" title="core.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_runtime.html" title="core.runtime"><span class="d_inlinecode donthyphenate notranslate">runtime</span></a></li><li> <a href="core_simd.html" title="core.simd"><span class="d_inlinecode donthyphenate notranslate">simd</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_stdc_assert_.html" title="core.stdc.assert_"><span class="d_inlinecode donthyphenate notranslate">assert_</span></a></li><li> <a href="core_stdc_complex.html" title="core.stdc.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="core_stdc_ctype.html" title="core.stdc.ctype"><span class="d_inlinecode donthyphenate notranslate">ctype</span></a></li><li> <a href="core_stdc_errno.html" title="core.stdc.errno"><span class="d_inlinecode donthyphenate notranslate">errno</span></a></li><li> <a href="core_stdc_fenv.html" title="core.stdc.fenv"><span class="d_inlinecode donthyphenate notranslate">fenv</span></a></li><li> <a href="core_stdc_float_.html" title="core.stdc.float_"><span class="d_inlinecode donthyphenate notranslate">float_</span></a></li><li> <a href="core_stdc_inttypes.html" title="core.stdc.inttypes"><span class="d_inlinecode donthyphenate notranslate">inttypes</span></a></li><li> <a href="core_stdc_limits.html" title="core.stdc.limits"><span class="d_inlinecode donthyphenate notranslate">limits</span></a></li><li> <a href="core_stdc_locale.html" title="core.stdc.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_stdc_math.html" title="core.stdc.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_stdc_signal.html" title="core.stdc.signal"><span class="d_inlinecode donthyphenate notranslate">signal</span></a></li><li> <a href="core_stdc_stdarg.html" title="core.stdc.stdarg"><span class="d_inlinecode donthyphenate notranslate">stdarg</span></a></li><li> <a href="core_stdc_stdatomic.html" title="core.stdc.stdatomic"><span class="d_inlinecode donthyphenate notranslate">stdatomic</span></a></li><li> <a href="core_stdc_stddef.html" title="core.stdc.stddef"><span class="d_inlinecode donthyphenate notranslate">stddef</span></a></li><li> <a href="core_stdc_stdint.html" title="core.stdc.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="core_stdc_stdio.html" title="core.stdc.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="core_stdc_stdlib.html" title="core.stdc.stdlib"><span class="d_inlinecode donthyphenate notranslate">stdlib</span></a></li><li> <a href="core_stdc_string.html" title="core.stdc.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdc_tgmath.html" title="core.stdc.tgmath"><span class="d_inlinecode donthyphenate notranslate">tgmath</span></a></li><li> <a href="core_stdc_time.html" title="core.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_stdc_wchar_.html" title="core.stdc.wchar_"><span class="d_inlinecode donthyphenate notranslate">wchar_</span></a></li><li> <a href="core_stdc_wctype.html" title="core.stdc.wctype"><span class="d_inlinecode donthyphenate notranslate">wctype</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdcpp</span></h7><ul><li> <a href="core_stdcpp_allocator.html" title="core.stdcpp.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a></li><li> <a href="core_stdcpp_array.html" title="core.stdcpp.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_stdcpp_exception.html" title="core.stdcpp.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_stdcpp_memory.html" title="core.stdcpp.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_stdcpp_new_.html" title="core.stdcpp.new_"><span class="d_inlinecode donthyphenate notranslate">new_</span></a></li><li> <a href="core_stdcpp_string.html" title="core.stdcpp.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdcpp_string_view.html" title="core.stdcpp.string_view"><span class="d_inlinecode donthyphenate notranslate">string_view</span></a></li><li> <a href="core_stdcpp_type_traits.html" title="core.stdcpp.type_traits"><span class="d_inlinecode donthyphenate notranslate">type_traits</span></a></li><li> <a href="core_stdcpp_typeinfo.html" title="core.stdcpp.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="core_stdcpp_utility.html" title="core.stdcpp.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a></li><li> <a href="core_stdcpp_vector.html" title="core.stdcpp.vector"><span class="d_inlinecode donthyphenate notranslate">vector</span></a></li><li> <a href="core_stdcpp_xutility.html" title="core.stdcpp.xutility"><span class="d_inlinecode donthyphenate notranslate">xutility</span></a>
</li></ul></li><li> <a href="core_sync.html" title="core.sync"><span class="d_inlinecode donthyphenate notranslate">sync</span></a><ul><li> <a href="core_sync_barrier.html" title="core.sync.barrier"><span class="d_inlinecode donthyphenate notranslate">barrier</span></a></li><li> <a href="core_sync_condition.html" title="core.sync.condition"><span class="d_inlinecode donthyphenate notranslate">condition</span></a></li><li> <a href="core_sync_config.html" title="core.sync.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_sync_event.html" title="core.sync.event"><span class="d_inlinecode donthyphenate notranslate">event</span></a></li><li> <a href="core_sync_exception.html" title="core.sync.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_sync_mutex.html" title="core.sync.mutex"><span class="d_inlinecode donthyphenate notranslate">mutex</span></a></li><li> <a href="core_sync_rwmutex.html" title="core.sync.rwmutex"><span class="d_inlinecode donthyphenate notranslate">rwmutex</span></a></li><li> <a href="core_sync_semaphore.html" title="core.sync.semaphore"><span class="d_inlinecode donthyphenate notranslate">semaphore</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">darwin</span></h7><ul><li> <a href="core_sys_darwin_crt_externs.html" title="core.sys.darwin.crt_externs"><span class="d_inlinecode donthyphenate notranslate">crt_externs</span></a></li><li> <a href="core_sys_darwin_ifaddrs.html" title="core.sys.darwin.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">mach</span></h7><ul><li> <a href="core_sys_darwin_mach_getsect.html" title="core.sys.darwin.mach.getsect"><span class="d_inlinecode donthyphenate notranslate">getsect</span></a></li><li> <a href="core_sys_darwin_mach_loader.html" title="core.sys.darwin.mach.loader"><span class="d_inlinecode donthyphenate notranslate">loader</span></a></li><li> <a href="core_sys_darwin_mach_nlist.html" title="core.sys.darwin.mach.nlist"><span class="d_inlinecode donthyphenate notranslate">nlist</span></a></li><li> <a href="core_sys_darwin_mach_stab.html" title="core.sys.darwin.mach.stab"><span class="d_inlinecode donthyphenate notranslate">stab</span></a></li><li> <a href="core_sys_darwin_mach_thread_act.html" title="core.sys.darwin.mach.thread_act"><span class="d_inlinecode donthyphenate notranslate">thread_act</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_darwin_sys_sysctl.html" title="core.sys.darwin.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dragonflybsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_dragonflybsd_sys_sysctl.html" title="core.sys.dragonflybsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">freebsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_freebsd_sys_sysctl.html" title="core.sys.freebsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="core_sys_linux_epoll.html" title="core.sys.linux.epoll"><span class="d_inlinecode donthyphenate notranslate">epoll</span></a></li><li> <a href="core_sys_linux_fcntl.html" title="core.sys.linux.fcntl"><span class="d_inlinecode donthyphenate notranslate">fcntl</span></a></li><li> <a href="core_sys_linux_fs.html" title="core.sys.linux.fs"><span class="d_inlinecode donthyphenate notranslate">fs</span></a></li><li> <a href="core_sys_linux_ifaddrs.html" title="core.sys.linux.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <a href="core_sys_linux_io_uring.html" title="core.sys.linux.io_uring"><span class="d_inlinecode donthyphenate notranslate">io_uring</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netinet</span></h7><ul><li> <a href="core_sys_linux_netinet_tcp.html" title="core.sys.linux.netinet.tcp"><span class="d_inlinecode donthyphenate notranslate">tcp</span></a>
</li></ul></li><li> <a href="core_sys_linux_perf_event.html" title="core.sys.linux.perf_event"><span class="d_inlinecode donthyphenate notranslate">perf_event</span></a></li><li> <a href="core_sys_linux_sched.html" title="core.sys.linux.sched"><span class="d_inlinecode donthyphenate notranslate">sched</span></a></li><li> <a href="core_sys_linux_string.html" title="core.sys.linux.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_linux_sys_eventfd.html" title="core.sys.linux.sys.eventfd"><span class="d_inlinecode donthyphenate notranslate">eventfd</span></a></li><li> <a href="core_sys_linux_sys_file.html" title="core.sys.linux.sys.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a>
</li></ul></li><li> <a href="core_sys_linux_unistd.html" title="core.sys.linux.unistd"><span class="d_inlinecode donthyphenate notranslate">unistd</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_netbsd_sys_sysctl.html" title="core.sys.netbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">openbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_openbsd_sys_sysctl.html" title="core.sys.openbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">posix</span></h7><ul><li> <a href="core_sys_posix_iconv.html" title="core.sys.posix.iconv"><span class="d_inlinecode donthyphenate notranslate">iconv</span></a></li><li> <a href="core_sys_posix_locale.html" title="core.sys.posix.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_sys_posix_mqueue.html" title="core.sys.posix.mqueue"><span class="d_inlinecode donthyphenate notranslate">mqueue</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_posix_stdc_time.html" title="core.sys.posix.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_posix_string.html" title="core.sys.posix.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_sys_posix_strings.html" title="core.sys.posix.strings"><span class="d_inlinecode donthyphenate notranslate">strings</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_posix_sys_ioctl.html" title="core.sys.posix.sys.ioctl"><span class="d_inlinecode donthyphenate notranslate">ioctl</span></a></li><li> <a href="core_sys_posix_sys_types.html" title="core.sys.posix.sys.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="core_sys_windows_core.html" title="core.sys.windows.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="core_sys_windows_dll.html" title="core.sys.windows.dll"><span class="d_inlinecode donthyphenate notranslate">dll</span></a></li><li> <a href="core_sys_windows_lmaccess.html" title="core.sys.windows.lmaccess"><span class="d_inlinecode donthyphenate notranslate">lmaccess</span></a></li><li> <a href="core_sys_windows_lmsvc.html" title="core.sys.windows.lmsvc"><span class="d_inlinecode donthyphenate notranslate">lmsvc</span></a></li><li> <a href="core_sys_windows_shlwapi.html" title="core.sys.windows.shlwapi"><span class="d_inlinecode donthyphenate notranslate">shlwapi</span></a></li><li> <a href="core_sys_windows_stacktrace.html" title="core.sys.windows.stacktrace"><span class="d_inlinecode donthyphenate notranslate">stacktrace</span></a></li><li> <a href="core_sys_windows_stat.html" title="core.sys.windows.stat"><span class="d_inlinecode donthyphenate notranslate">stat</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_windows_stdc_time.html" title="core.sys.windows.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_windows_threadaux.html" title="core.sys.windows.threadaux"><span class="d_inlinecode donthyphenate notranslate">threadaux</span></a></li><li> <a href="core_sys_windows_vfw.html" title="core.sys.windows.vfw"><span class="d_inlinecode donthyphenate notranslate">vfw</span></a></li><li> <a href="core_sys_windows_winbase.html" title="core.sys.windows.winbase"><span class="d_inlinecode donthyphenate notranslate">winbase</span></a></li><li> <a href="core_sys_windows_winsock2.html" title="core.sys.windows.winsock2"><span class="d_inlinecode donthyphenate notranslate">winsock2</span></a>
</li></ul>
</li></ul></li><li> <a href="core_thread.html" title="core.thread"><span class="d_inlinecode donthyphenate notranslate">thread</span></a><ul><li> <a href="core_thread_context.html" title="core.thread.context"><span class="d_inlinecode donthyphenate notranslate">context</span></a></li><li> <a href="core_thread_fiber.html" title="core.thread.fiber"><span class="d_inlinecode donthyphenate notranslate">fiber</span></a><ul><li> <a href="core_thread_fiber_base.html" title="core.thread.fiber.base"><span class="d_inlinecode donthyphenate notranslate">base</span></a>
</li></ul></li><li> <a href="core_thread_osthread.html" title="core.thread.osthread"><span class="d_inlinecode donthyphenate notranslate">osthread</span></a></li><li> <a href="core_thread_threadbase.html" title="core.thread.threadbase"><span class="d_inlinecode donthyphenate notranslate">threadbase</span></a></li><li> <a href="core_thread_threadgroup.html" title="core.thread.threadgroup"><span class="d_inlinecode donthyphenate notranslate">threadgroup</span></a></li><li> <a href="core_thread_types.html" title="core.thread.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul></li><li> <a href="core_time.html" title="core.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_vararg.html" title="core.vararg"><span class="d_inlinecode donthyphenate notranslate">vararg</span></a></li><li> <a href="core_volatile.html" title="core.volatile"><span class="d_inlinecode donthyphenate notranslate">volatile</span></a>
</li></ul>
</li>
<div class="modlist-internal-separator">Internal API</div>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">array</span></h7><ul><li> <a href="core_internal_array_appending.html" title="core.internal.array.appending"><span class="d_inlinecode donthyphenate notranslate">appending</span></a></li><li> <a href="core_internal_array_arrayassign.html" title="core.internal.array.arrayassign"><span class="d_inlinecode donthyphenate notranslate">arrayassign</span></a></li><li> <a href="core_internal_array_capacity.html" title="core.internal.array.capacity"><span class="d_inlinecode donthyphenate notranslate">capacity</span></a></li><li> <a href="core_internal_array_casting.html" title="core.internal.array.casting"><span class="d_inlinecode donthyphenate notranslate">casting</span></a></li><li> <a href="core_internal_array_comparison.html" title="core.internal.array.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="core_internal_array_concatenation.html" title="core.internal.array.concatenation"><span class="d_inlinecode donthyphenate notranslate">concatenation</span></a></li><li> <a href="core_internal_array_construction.html" title="core.internal.array.construction"><span class="d_inlinecode donthyphenate notranslate">construction</span></a></li><li> <a href="core_internal_array_duplication.html" title="core.internal.array.duplication"><span class="d_inlinecode donthyphenate notranslate">duplication</span></a></li><li> <a href="core_internal_array_equality.html" title="core.internal.array.equality"><span class="d_inlinecode donthyphenate notranslate">equality</span></a></li><li> <a href="core_internal_array_operations.html" title="core.internal.array.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="core_internal_array_utils.html" title="core.internal.array.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="core_internal_util_array.html" title="core.internal.util.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_internal_util_math.html" title="core.internal.util.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a>
</li></ul>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-dmd'><a class='expand-toggle' href='#'><span><em class="tt">dmd</em></span></a>
<ul><li> <a href="dmd_access.html" title="dmd.access"><span class="d_inlinecode donthyphenate notranslate">access</span></a></li><li> <a href="dmd_aggregate.html" title="dmd.aggregate"><span class="d_inlinecode donthyphenate notranslate">aggregate</span></a></li><li> <a href="dmd_aliasthis.html" title="dmd.aliasthis"><span class="d_inlinecode donthyphenate notranslate">aliasthis</span></a></li><li> <a href="dmd_argtypes_aarch64.html" title="dmd.argtypes_aarch64"><span class="d_inlinecode donthyphenate notranslate">argtypes_aarch64</span></a></li><li> <a href="dmd_argtypes_sysv_x64.html" title="dmd.argtypes_sysv_x64"><span class="d_inlinecode donthyphenate notranslate">argtypes_sysv_x64</span></a></li><li> <a href="dmd_argtypes_x86.html" title="dmd.argtypes_x86"><span class="d_inlinecode donthyphenate notranslate">argtypes_x86</span></a></li><li> <a href="dmd_arrayop.html" title="dmd.arrayop"><span class="d_inlinecode donthyphenate notranslate">arrayop</span></a></li><li> <a href="dmd_arraytypes.html" title="dmd.arraytypes"><span class="d_inlinecode donthyphenate notranslate">arraytypes</span></a></li><li> <a href="dmd_ast_node.html" title="dmd.ast_node"><span class="d_inlinecode donthyphenate notranslate">ast_node</span></a></li><li> <a href="dmd_astbase.html" title="dmd.astbase"><span class="d_inlinecode donthyphenate notranslate">astbase</span></a></li><li> <a href="dmd_astcodegen.html" title="dmd.astcodegen"><span class="d_inlinecode donthyphenate notranslate">astcodegen</span></a></li><li> <a href="dmd_astenums.html" title="dmd.astenums"><span class="d_inlinecode donthyphenate notranslate">astenums</span></a></li><li> <a href="dmd_asttypename.html" title="dmd.asttypename"><span class="d_inlinecode donthyphenate notranslate">asttypename</span></a></li><li> <a href="dmd_attrib.html" title="dmd.attrib"><span class="d_inlinecode donthyphenate notranslate">attrib</span></a></li><li> <a href="dmd_attribsem.html" title="dmd.attribsem"><span class="d_inlinecode donthyphenate notranslate">attribsem</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">backend</span></h7><ul><li> <a href="dmd_backend_aarray.html" title="dmd.backend.aarray"><span class="d_inlinecode donthyphenate notranslate">aarray</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">arm</span></h7><ul><li> <a href="dmd_backend_arm_cod1.html" title="dmd.backend.arm.cod1"><span class="d_inlinecode donthyphenate notranslate">cod1</span></a></li><li> <a href="dmd_backend_arm_cod2.html" title="dmd.backend.arm.cod2"><span class="d_inlinecode donthyphenate notranslate">cod2</span></a></li><li> <a href="dmd_backend_arm_cod3.html" title="dmd.backend.arm.cod3"><span class="d_inlinecode donthyphenate notranslate">cod3</span></a></li><li> <a href="dmd_backend_arm_cod4.html" title="dmd.backend.arm.cod4"><span class="d_inlinecode donthyphenate notranslate">cod4</span></a></li><li> <a href="dmd_backend_arm_disasmarm.html" title="dmd.backend.arm.disasmarm"><span class="d_inlinecode donthyphenate notranslate">disasmarm</span></a></li><li> <a href="dmd_backend_arm_instr.html" title="dmd.backend.arm.instr"><span class="d_inlinecode donthyphenate notranslate">instr</span></a>
</li></ul></li><li> <a href="dmd_backend_backconfig.html" title="dmd.backend.backconfig"><span class="d_inlinecode donthyphenate notranslate">backconfig</span></a></li><li> <a href="dmd_backend_barray.html" title="dmd.backend.barray"><span class="d_inlinecode donthyphenate notranslate">barray</span></a></li><li> <a href="dmd_backend_bcomplex.html" title="dmd.backend.bcomplex"><span class="d_inlinecode donthyphenate notranslate">bcomplex</span></a></li><li> <a href="dmd_backend_blockopt.html" title="dmd.backend.blockopt"><span class="d_inlinecode donthyphenate notranslate">blockopt</span></a></li><li> <a href="dmd_backend_cc.html" title="dmd.backend.cc"><span class="d_inlinecode donthyphenate notranslate">cc</span></a></li><li> <a href="dmd_backend_cdef.html" title="dmd.backend.cdef"><span class="d_inlinecode donthyphenate notranslate">cdef</span></a></li><li> <a href="dmd_backend_cg.html" title="dmd.backend.cg"><span class="d_inlinecode donthyphenate notranslate">cg</span></a></li><li> <a href="dmd_backend_cgcs.html" title="dmd.backend.cgcs"><span class="d_inlinecode donthyphenate notranslate">cgcs</span></a></li><li> <a href="dmd_backend_cgcse.html" title="dmd.backend.cgcse"><span class="d_inlinecode donthyphenate notranslate">cgcse</span></a></li><li> <a href="dmd_backend_cgcv.html" title="dmd.backend.cgcv"><span class="d_inlinecode donthyphenate notranslate">cgcv</span></a></li><li> <a href="dmd_backend_cgelem.html" title="dmd.backend.cgelem"><span class="d_inlinecode donthyphenate notranslate">cgelem</span></a></li><li> <a href="dmd_backend_cgen.html" title="dmd.backend.cgen"><span class="d_inlinecode donthyphenate notranslate">cgen</span></a></li><li> <a href="dmd_backend_cgsched.html" title="dmd.backend.cgsched"><span class="d_inlinecode donthyphenate notranslate">cgsched</span></a></li><li> <a href="dmd_backend_code.html" title="dmd.backend.code"><span class="d_inlinecode donthyphenate notranslate">code</span></a></li><li> <a href="dmd_backend_codebuilder.html" title="dmd.backend.codebuilder"><span class="d_inlinecode donthyphenate notranslate">codebuilder</span></a></li><li> <a href="dmd_backend_cv4.html" title="dmd.backend.cv4"><span class="d_inlinecode donthyphenate notranslate">cv4</span></a></li><li> <a href="dmd_backend_cv8.html" title="dmd.backend.cv8"><span class="d_inlinecode donthyphenate notranslate">cv8</span></a></li><li> <a href="dmd_backend_dcgcv.html" title="dmd.backend.dcgcv"><span class="d_inlinecode donthyphenate notranslate">dcgcv</span></a></li><li> <a href="dmd_backend_dcode.html" title="dmd.backend.dcode"><span class="d_inlinecode donthyphenate notranslate">dcode</span></a></li><li> <a href="dmd_backend_debugprint.html" title="dmd.backend.debugprint"><span class="d_inlinecode donthyphenate notranslate">debugprint</span></a></li><li> <a href="dmd_backend_divcoeff.html" title="dmd.backend.divcoeff"><span class="d_inlinecode donthyphenate notranslate">divcoeff</span></a></li><li> <a href="dmd_backend_dlist.html" title="dmd.backend.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="dmd_backend_dout.html" title="dmd.backend.dout"><span class="d_inlinecode donthyphenate notranslate">dout</span></a></li><li> <a href="dmd_backend_drtlsym.html" title="dmd.backend.drtlsym"><span class="d_inlinecode donthyphenate notranslate">drtlsym</span></a></li><li> <a href="dmd_backend_dt.html" title="dmd.backend.dt"><span class="d_inlinecode donthyphenate notranslate">dt</span></a></li><li> <a href="dmd_backend_dtype.html" title="dmd.backend.dtype"><span class="d_inlinecode donthyphenate notranslate">dtype</span></a></li><li> <a href="dmd_backend_dvarstats.html" title="dmd.backend.dvarstats"><span class="d_inlinecode donthyphenate notranslate">dvarstats</span></a></li><li> <a href="dmd_backend_dvec.html" title="dmd.backend.dvec"><span class="d_inlinecode donthyphenate notranslate">dvec</span></a></li><li> <a href="dmd_backend_dwarf.html" title="dmd.backend.dwarf"><span class="d_inlinecode donthyphenate notranslate">dwarf</span></a></li><li> <a href="dmd_backend_dwarf2.html" title="dmd.backend.dwarf2"><span class="d_inlinecode donthyphenate notranslate">dwarf2</span></a></li><li> <a href="dmd_backend_dwarfdbginf.html" title="dmd.backend.dwarfdbginf"><span class="d_inlinecode donthyphenate notranslate">dwarfdbginf</span></a></li><li> <a href="dmd_backend_dwarfeh.html" title="dmd.backend.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="dmd_backend_ee.html" title="dmd.backend.ee"><span class="d_inlinecode donthyphenate notranslate">ee</span></a></li><li> <a href="dmd_backend_eh.html" title="dmd.backend.eh"><span class="d_inlinecode donthyphenate notranslate">eh</span></a></li><li> <a href="dmd_backend_el.html" title="dmd.backend.el"><span class="d_inlinecode donthyphenate notranslate">el</span></a></li>Line truncated
</li></ul>
</li></ul></li><li> <a href="dmd_blockexit.html" title="dmd.blockexit"><span class="d_inlinecode donthyphenate notranslate">blockexit</span></a></li><li> <a href="dmd_builtin.html" title="dmd.builtin"><span class="d_inlinecode donthyphenate notranslate">builtin</span></a></li><li> <a href="dmd_canthrow.html" title="dmd.canthrow"><span class="d_inlinecode donthyphenate notranslate">canthrow</span></a></li><li> <a href="dmd_chkformat.html" title="dmd.chkformat"><span class="d_inlinecode donthyphenate notranslate">chkformat</span></a></li><li> <a href="dmd_cli.html" title="dmd.cli"><span class="d_inlinecode donthyphenate notranslate">cli</span></a></li><li> <a href="dmd_clone.html" title="dmd.clone"><span class="d_inlinecode donthyphenate notranslate">clone</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">common</span></h7><ul><li> <a href="dmd_common_bitfields.html" title="dmd.common.bitfields"><span class="d_inlinecode donthyphenate notranslate">bitfields</span></a></li><li> <a href="dmd_common_blake3.html" title="dmd.common.blake3"><span class="d_inlinecode donthyphenate notranslate">blake3</span></a></li><li> <a href="dmd_common_charactertables.html" title="dmd.common.charactertables"><span class="d_inlinecode donthyphenate notranslate">charactertables</span></a></li><li> <a href="dmd_common_file.html" title="dmd.common.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_common_identifiertables.html" title="dmd.common.identifiertables"><span class="d_inlinecode donthyphenate notranslate">identifiertables</span></a></li><li> <a href="dmd_common_int128.html" title="dmd.common.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="dmd_common_outbuffer.html" title="dmd.common.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="dmd_common_smallbuffer.html" title="dmd.common.smallbuffer"><span class="d_inlinecode donthyphenate notranslate">smallbuffer</span></a>
</li></ul></li><li> <a href="dmd_compiler.html" title="dmd.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="dmd_cond.html" title="dmd.cond"><span class="d_inlinecode donthyphenate notranslate">cond</span></a></li><li> <a href="dmd_console.html" title="dmd.console"><span class="d_inlinecode donthyphenate notranslate">console</span></a></li><li> <a href="dmd_constfold.html" title="dmd.constfold"><span class="d_inlinecode donthyphenate notranslate">constfold</span></a></li><li> <a href="dmd_cparse.html" title="dmd.cparse"><span class="d_inlinecode donthyphenate notranslate">cparse</span></a></li><li> <a href="dmd_cpreprocess.html" title="dmd.cpreprocess"><span class="d_inlinecode donthyphenate notranslate">cpreprocess</span></a></li><li> <a href="dmd_ctfeexpr.html" title="dmd.ctfeexpr"><span class="d_inlinecode donthyphenate notranslate">ctfeexpr</span></a></li><li> <a href="dmd_ctorflow.html" title="dmd.ctorflow"><span class="d_inlinecode donthyphenate notranslate">ctorflow</span></a></li><li> <a href="dmd_cxxfrontend.html" title="dmd.cxxfrontend"><span class="d_inlinecode donthyphenate notranslate">cxxfrontend</span></a></li><li> <a href="dmd_dcast.html" title="dmd.dcast"><span class="d_inlinecode donthyphenate notranslate">dcast</span></a></li><li> <a href="dmd_dclass.html" title="dmd.dclass"><span class="d_inlinecode donthyphenate notranslate">dclass</span></a></li><li> <a href="dmd_declaration.html" title="dmd.declaration"><span class="d_inlinecode donthyphenate notranslate">declaration</span></a></li><li> <a href="dmd_delegatize.html" title="dmd.delegatize"><span class="d_inlinecode donthyphenate notranslate">delegatize</span></a></li><li> <a href="dmd_denum.html" title="dmd.denum"><span class="d_inlinecode donthyphenate notranslate">denum</span></a></li><li> <a href="dmd_deps.html" title="dmd.deps"><span class="d_inlinecode donthyphenate notranslate">deps</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dfa</span></h7><ul><li> <a href="dmd_dfa_entry.html" title="dmd.dfa.entry"><span class="d_inlinecode donthyphenate notranslate">entry</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">fast</span></h7><ul><li> <a href="dmd_dfa_fast_analysis.html" title="dmd.dfa.fast.analysis"><span class="d_inlinecode donthyphenate notranslate">analysis</span></a></li><li> <a href="dmd_dfa_fast_expression.html" title="dmd.dfa.fast.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_dfa_fast_report.html" title="dmd.dfa.fast.report"><span class="d_inlinecode donthyphenate notranslate">report</span></a></li><li> <a href="dmd_dfa_fast_statement.html" title="dmd.dfa.fast.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_dfa_fast_structure.html" title="dmd.dfa.fast.structure"><span class="d_inlinecode donthyphenate notranslate">structure</span></a>
</li></ul></li><li> <a href="dmd_dfa_utils.html" title="dmd.dfa.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <a href="dmd_dimport.html" title="dmd.dimport"><span class="d_inlinecode donthyphenate notranslate">dimport</span></a></li><li> <a href="dmd_dinifile.html" title="dmd.dinifile"><span class="d_inlinecode donthyphenate notranslate">dinifile</span></a></li><li> <a href="dmd_dinterpret.html" title="dmd.dinterpret"><span class="d_inlinecode donthyphenate notranslate">dinterpret</span></a></li><li> <a href="dmd_dmacro.html" title="dmd.dmacro"><span class="d_inlinecode donthyphenate notranslate">dmacro</span></a></li><li> <a href="dmd_dmdparams.html" title="dmd.dmdparams"><span class="d_inlinecode donthyphenate notranslate">dmdparams</span></a></li><li> <a href="dmd_dmodule.html" title="dmd.dmodule"><span class="d_inlinecode donthyphenate notranslate">dmodule</span></a></li><li> <a href="dmd_dmsc.html" title="dmd.dmsc"><span class="d_inlinecode donthyphenate notranslate">dmsc</span></a></li><li> <a href="dmd_doc.html" title="dmd.doc"><span class="d_inlinecode donthyphenate notranslate">doc</span></a></li><li> <a href="dmd_dscope.html" title="dmd.dscope"><span class="d_inlinecode donthyphenate notranslate">dscope</span></a></li><li> <a href="dmd_dstruct.html" title="dmd.dstruct"><span class="d_inlinecode donthyphenate notranslate">dstruct</span></a></li><li> <a href="dmd_dsymbol.html" title="dmd.dsymbol"><span class="d_inlinecode donthyphenate notranslate">dsymbol</span></a></li><li> <a href="dmd_dsymbolsem.html" title="dmd.dsymbolsem"><span class="d_inlinecode donthyphenate notranslate">dsymbolsem</span></a></li><li> <a href="dmd_dtemplate.html" title="dmd.dtemplate"><span class="d_inlinecode donthyphenate notranslate">dtemplate</span></a></li><li> <a href="dmd_dtoh.html" title="dmd.dtoh"><span class="d_inlinecode donthyphenate notranslate">dtoh</span></a></li><li> <a href="dmd_dversion.html" title="dmd.dversion"><span class="d_inlinecode donthyphenate notranslate">dversion</span></a></li><li> <a href="dmd_entity.html" title="dmd.entity"><span class="d_inlinecode donthyphenate notranslate">entity</span></a></li><li> <a href="dmd_enumsem.html" title="dmd.enumsem"><span class="d_inlinecode donthyphenate notranslate">enumsem</span></a></li><li> <a href="dmd_errors.html" title="dmd.errors"><span class="d_inlinecode donthyphenate notranslate">errors</span></a></li><li> <a href="dmd_errorsink.html" title="dmd.errorsink"><span class="d_inlinecode donthyphenate notranslate">errorsink</span></a></li><li> <a href="dmd_escape.html" title="dmd.escape"><span class="d_inlinecode donthyphenate notranslate">escape</span></a></li><li> <a href="dmd_expression.html" title="dmd.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_expressionsem.html" title="dmd.expressionsem"><span class="d_inlinecode donthyphenate notranslate">expressionsem</span></a></li><li> <a href="dmd_file_manager.html" title="dmd.file_manager"><span class="d_inlinecode donthyphenate notranslate">file_manager</span></a></li><li> <a href="dmd_frontend.html" title="dmd.frontend"><span class="d_inlinecode donthyphenate notranslate">frontend</span></a></li><li> <a href="dmd_func.html" title="dmd.func"><span class="d_inlinecode donthyphenate notranslate">func</span></a></li><li> <a href="dmd_funcsem.html" title="dmd.funcsem"><span class="d_inlinecode donthyphenate notranslate">funcsem</span></a></li><li> <a href="dmd_globals.html" title="dmd.globals"><span class="d_inlinecode donthyphenate notranslate">globals</span></a></li><li> <a href="dmd_glue.html" title="dmd.glue"><span class="d_inlinecode donthyphenate notranslate">glue</span></a><ul><li> <a href="dmd_glue_e2ir.html" title="dmd.glue.e2ir"><span class="d_inlinecode donthyphenate notranslate">e2ir</span></a></li><li> <a href="dmd_glue_objc.html" title="dmd.glue.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_glue_s2ir.html" title="dmd.glue.s2ir"><span class="d_inlinecode donthyphenate notranslate">s2ir</span></a></li><li> <a href="dmd_glue_tocsym.html" title="dmd.glue.tocsym"><span class="d_inlinecode donthyphenate notranslate">tocsym</span></a></li><li> <a href="dmd_glue_toctype.html" title="dmd.glue.toctype"><span class="d_inlinecode donthyphenate notranslate">toctype</span></a></li><li> <a href="dmd_glue_tocvdebug.html" title="dmd.glue.tocvdebug"><span class="d_inlinecode donthyphenate notranslate">tocvdebug</span></a></li><li> <a href="dmd_glue_todt.html" title="dmd.glue.todt"><span class="d_inlinecode donthyphenate notranslate">todt</span></a></li><li> <a href="dmd_glue_toir.html" title="dmd.glue.toir"><span class="d_inlinecode donthyphenate notranslate">toir</span></a></li><li> <a href="dmd_glue_toobj.html" title="dmd.glue.toobj"><span class="d_inlinecode donthyphenate notranslate">toobj</span></a>
</li></ul></li><li> <a href="dmd_hdrgen.html" title="dmd.hdrgen"><span class="d_inlinecode donthyphenate notranslate">hdrgen</span></a></li><li> <a href="dmd_iasm.html" title="dmd.iasm"><span class="d_inlinecode donthyphenate notranslate">iasm</span></a><ul><li> <a href="dmd_iasm_dmdaarch64.html" title="dmd.iasm.dmdaarch64"><span class="d_inlinecode donthyphenate notranslate">dmdaarch64</span></a></li><li> <a href="dmd_iasm_dmdx86.html" title="dmd.iasm.dmdx86"><span class="d_inlinecode donthyphenate notranslate">dmdx86</span></a></li><li> <a href="dmd_iasm_gcc.html" title="dmd.iasm.gcc"><span class="d_inlinecode donthyphenate notranslate">gcc</span></a>
</li></ul></li><li> <a href="dmd_id.html" title="dmd.id"><span class="d_inlinecode donthyphenate notranslate">id</span></a></li><li> <a href="dmd_identifier.html" title="dmd.identifier"><span class="d_inlinecode donthyphenate notranslate">identifier</span></a></li><li> <a href="dmd_impcnvtab.html" title="dmd.impcnvtab"><span class="d_inlinecode donthyphenate notranslate">impcnvtab</span></a></li><li> <a href="dmd_imphint.html" title="dmd.imphint"><span class="d_inlinecode donthyphenate notranslate">imphint</span></a></li><li> <a href="dmd_importc.html" title="dmd.importc"><span class="d_inlinecode donthyphenate notranslate">importc</span></a></li><li> <a href="dmd_init.html" title="dmd.init"><span class="d_inlinecode donthyphenate notranslate">init</span></a></li><li> <a href="dmd_initsem.html" title="dmd.initsem"><span class="d_inlinecode donthyphenate notranslate">initsem</span></a></li><li> <a href="dmd_inline.html" title="dmd.inline"><span class="d_inlinecode donthyphenate notranslate">inline</span></a></li><li> <a href="dmd_inlinecost.html" title="dmd.inlinecost"><span class="d_inlinecode donthyphenate notranslate">inlinecost</span></a></li><li> <a href="dmd_intrange.html" title="dmd.intrange"><span class="d_inlinecode donthyphenate notranslate">intrange</span></a></li><li> <a href="dmd_json.html" title="dmd.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="dmd_lambdacomp.html" title="dmd.lambdacomp"><span class="d_inlinecode donthyphenate notranslate">lambdacomp</span></a></li><li> <a href="dmd_lexer.html" title="dmd.lexer"><span class="d_inlinecode donthyphenate notranslate">lexer</span></a></li><li> <a href="dmd_lib.html" title="dmd.lib"><span class="d_inlinecode donthyphenate notranslate">lib</span></a><ul><li> <a href="dmd_lib_elf.html" title="dmd.lib.elf"><span class="d_inlinecode donthyphenate notranslate">elf</span></a></li><li> <a href="dmd_lib_mach.html" title="dmd.lib.mach"><span class="d_inlinecode donthyphenate notranslate">mach</span></a></li><li> <a href="dmd_lib_mscoff.html" title="dmd.lib.mscoff"><span class="d_inlinecode donthyphenate notranslate">mscoff</span></a></li><li> <a href="dmd_lib_scanelf.html" title="dmd.lib.scanelf"><span class="d_inlinecode donthyphenate notranslate">scanelf</span></a></li><li> <a href="dmd_lib_scanmach.html" title="dmd.lib.scanmach"><span class="d_inlinecode donthyphenate notranslate">scanmach</span></a></li><li> <a href="dmd_lib_scanmscoff.html" title="dmd.lib.scanmscoff"><span class="d_inlinecode donthyphenate notranslate">scanmscoff</span></a>
</li></ul></li><li> <a href="dmd_link.html" title="dmd.link"><span class="d_inlinecode donthyphenate notranslate">link</span></a></li><li> <a href="dmd_location.html" title="dmd.location"><span class="d_inlinecode donthyphenate notranslate">location</span></a></li><li> <a href="dmd_main.html" title="dmd.main"><span class="d_inlinecode donthyphenate notranslate">main</span></a></li><li> <a href="dmd_mangle.html" title="dmd.mangle"><span class="d_inlinecode donthyphenate notranslate">mangle</span></a><ul><li> <a href="dmd_mangle_basic.html" title="dmd.mangle.basic"><span class="d_inlinecode donthyphenate notranslate">basic</span></a></li><li> <a href="dmd_mangle_cpp.html" title="dmd.mangle.cpp"><span class="d_inlinecode donthyphenate notranslate">cpp</span></a></li><li> <a href="dmd_mangle_cppwin.html" title="dmd.mangle.cppwin"><span class="d_inlinecode donthyphenate notranslate">cppwin</span></a>
</li></ul></li><li> <a href="dmd_mars.html" title="dmd.mars"><span class="d_inlinecode donthyphenate notranslate">mars</span></a></li><li> <a href="dmd_mtype.html" title="dmd.mtype"><span class="d_inlinecode donthyphenate notranslate">mtype</span></a></li><li> <a href="dmd_mustuse.html" title="dmd.mustuse"><span class="d_inlinecode donthyphenate notranslate">mustuse</span></a></li><li> <a href="dmd_nogc.html" title="dmd.nogc"><span class="d_inlinecode donthyphenate notranslate">nogc</span></a></li><li> <a href="dmd_nspace.html" title="dmd.nspace"><span class="d_inlinecode donthyphenate notranslate">nspace</span></a></li><li> <a href="dmd_ob.html" title="dmd.ob"><span class="d_inlinecode donthyphenate notranslate">ob</span></a></li><li> <a href="dmd_objc.html" title="dmd.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_opover.html" title="dmd.opover"><span class="d_inlinecode donthyphenate notranslate">opover</span></a></li><li> <a href="dmd_optimize.html" title="dmd.optimize"><span class="d_inlinecode donthyphenate notranslate">optimize</span></a></li><li> <a href="dmd_parse.html" title="dmd.parse"><span class="d_inlinecode donthyphenate notranslate">parse</span></a></li><li> <a href="dmd_pragmasem.html" title="dmd.pragmasem"><span class="d_inlinecode donthyphenate notranslate">pragmasem</span></a></li><li> <a href="dmd_printast.html" title="dmd.printast"><span class="d_inlinecode donthyphenate notranslate">printast</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">root</span></h7><ul><li> <a href="dmd_root_aav.html" title="dmd.root.aav"><span class="d_inlinecode donthyphenate notranslate">aav</span></a></li><li> <a href="dmd_root_array.html" title="dmd.root.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="dmd_root_bitarray.html" title="dmd.root.bitarray"><span class="d_inlinecode donthyphenate notranslate">bitarray</span></a></li><li> <a href="dmd_root_complex.html" title="dmd.root.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="dmd_root_ctfloat.html" title="dmd.root.ctfloat"><span class="d_inlinecode donthyphenate notranslate">ctfloat</span></a></li><li> <a href="dmd_root_env.html" title="dmd.root.env"><span class="d_inlinecode donthyphenate notranslate">env</span></a></li><li> <a href="dmd_root_file.html" title="dmd.root.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_root_filename.html" title="dmd.root.filename"><span class="d_inlinecode donthyphenate notranslate">filename</span></a></li><li> <a href="dmd_root_hash.html" title="dmd.root.hash"><span class="d_inlinecode donthyphenate notranslate">hash</span></a></li><li> <a href="dmd_root_longdouble.html" title="dmd.root.longdouble"><span class="d_inlinecode donthyphenate notranslate">longdouble</span></a></li><li> <a href="dmd_root_man.html" title="dmd.root.man"><span class="d_inlinecode donthyphenate notranslate">man</span></a></li><li> <a href="dmd_root_optional.html" title="dmd.root.optional"><span class="d_inlinecode donthyphenate notranslate">optional</span></a></li><li> <a href="dmd_root_port.html" title="dmd.root.port"><span class="d_inlinecode donthyphenate notranslate">port</span></a></li><li> <a href="dmd_root_region.html" title="dmd.root.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="dmd_root_response.html" title="dmd.root.response"><span class="d_inlinecode donthyphenate notranslate">response</span></a></li><li> <a href="dmd_root_rmem.html" title="dmd.root.rmem"><span class="d_inlinecode donthyphenate notranslate">rmem</span></a></li><li> <a href="dmd_root_speller.html" title="dmd.root.speller"><span class="d_inlinecode donthyphenate notranslate">speller</span></a></li><li> <a href="dmd_root_string.html" title="dmd.root.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="dmd_root_stringtable.html" title="dmd.root.stringtable"><span class="d_inlinecode donthyphenate notranslate">stringtable</span></a></li><li> <a href="dmd_root_strtold.html" title="dmd.root.strtold"><span class="d_inlinecode donthyphenate notranslate">strtold</span></a></li><li> <a href="dmd_root_utf.html" title="dmd.root.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a>
</li></ul></li><li> <a href="dmd_rootobject.html" title="dmd.rootobject"><span class="d_inlinecode donthyphenate notranslate">rootobject</span></a></li><li> <a href="dmd_safe.html" title="dmd.safe"><span class="d_inlinecode donthyphenate notranslate">safe</span></a></li><li> <a href="dmd_sarif.html" title="dmd.sarif"><span class="d_inlinecode donthyphenate notranslate">sarif</span></a></li><li> <a href="dmd_semantic2.html" title="dmd.semantic2"><span class="d_inlinecode donthyphenate notranslate">semantic2</span></a></li><li> <a href="dmd_semantic3.html" title="dmd.semantic3"><span class="d_inlinecode donthyphenate notranslate">semantic3</span></a></li><li> <a href="dmd_sideeffect.html" title="dmd.sideeffect"><span class="d_inlinecode donthyphenate notranslate">sideeffect</span></a></li><li> <a href="dmd_statement.html" title="dmd.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_statementsem.html" title="dmd.statementsem"><span class="d_inlinecode donthyphenate notranslate">statementsem</span></a></li><li> <a href="dmd_staticassert.html" title="dmd.staticassert"><span class="d_inlinecode donthyphenate notranslate">staticassert</span></a></li><li> <a href="dmd_staticcond.html" title="dmd.staticcond"><span class="d_inlinecode donthyphenate notranslate">staticcond</span></a></li><li> <a href="dmd_stmtstate.html" title="dmd.stmtstate"><span class="d_inlinecode donthyphenate notranslate">stmtstate</span></a></li><li> <a href="dmd_target.html" title="dmd.target"><span class="d_inlinecode donthyphenate notranslate">target</span></a></li><li> <a href="dmd_targetcompiler.html" title="dmd.targetcompiler"><span class="d_inlinecode donthyphenate notranslate">targetcompiler</span></a></li><li> <a href="dmd_templateparamsem.html" title="dmd.templateparamsem"><span class="d_inlinecode donthyphenate notranslate">templateparamsem</span></a></li><li> <a href="dmd_templatesem.html" title="dmd.templatesem"><span class="d_inlinecode donthyphenate notranslate">templatesem</span></a></li><li> <a href="dmd_timetrace.html" title="dmd.timetrace"><span class="d_inlinecode donthyphenate notranslate">timetrace</span></a></li><li> <a href="dmd_tokens.html" title="dmd.tokens"><span class="d_inlinecode donthyphenate notranslate">tokens</span></a></li><li> <a href="dmd_traits.html" title="dmd.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="dmd_typesem.html" title="dmd.typesem"><span class="d_inlinecode donthyphenate notranslate">typesem</span></a></li><li> <a href="dmd_typinf.html" title="dmd.typinf"><span class="d_inlinecode donthyphenate notranslate">typinf</span></a></li><li> <a href="dmd_utils.html" title="dmd.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a></li><li> <a href="dmd_visitor.html" title="dmd.visitor"><span class="d_inlinecode donthyphenate notranslate">visitor</span></a><ul><li> <a href="dmd_visitor_foreachvar.html" title="dmd.visitor.foreachvar"><span class="d_inlinecode donthyphenate notranslate">foreachvar</span></a></li><li> <a href="dmd_visitor_parsetime.html" title="dmd.visitor.parsetime"><span class="d_inlinecode donthyphenate notranslate">parsetime</span></a></li><li> <a href="dmd_visitor_permissive.html" title="dmd.visitor.permissive"><span class="d_inlinecode donthyphenate notranslate">permissive</span></a></li><li> <a href="dmd_visitor_postorder.html" title="dmd.visitor.postorder"><span class="d_inlinecode donthyphenate notranslate">postorder</span></a></li><li> <a href="dmd_visitor_statement_rewrite_walker.html" title="dmd.visitor.statement_rewrite_walker"><span class="d_inlinecode donthyphenate notranslate">statement_rewrite_walker</span></a></li><li> <a href="dmd_visitor_strict.html" title="dmd.visitor.strict"><span class="d_inlinecode donthyphenate notranslate">strict</span></a></li><li> <a href="dmd_visitor_transitive.html" title="dmd.visitor.transitive"><span class="d_inlinecode donthyphenate notranslate">transitive</span></a>
</li></ul></li><li> <a href="dmd_vsoptions.html" title="dmd.vsoptions"><span class="d_inlinecode donthyphenate notranslate">vsoptions</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-rt'><a class='expand-toggle' href='#'><span><em class="tt">rt</em></span></a>
<ul><li> <a href="rt_aApply.html" title="rt.aApply"><span class="d_inlinecode donthyphenate notranslate">aApply</span></a></li><li> <a href="rt_aApplyR.html" title="rt.aApplyR"><span class="d_inlinecode donthyphenate notranslate">aApplyR</span></a></li><li> <a href="rt_alloca.html" title="rt.alloca"><span class="d_inlinecode donthyphenate notranslate">alloca</span></a></li><li> <a href="rt_arraycat.html" title="rt.arraycat"><span class="d_inlinecode donthyphenate notranslate">arraycat</span></a></li><li> <a href="rt_cmath2.html" title="rt.cmath2"><span class="d_inlinecode donthyphenate notranslate">cmath2</span></a></li><li> <a href="rt_config.html" title="rt.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="rt_cover.html" title="rt.cover"><span class="d_inlinecode donthyphenate notranslate">cover</span></a></li><li> <a href="rt_critical_.html" title="rt.critical_"><span class="d_inlinecode donthyphenate notranslate">critical_</span></a></li><li> <a href="rt_deh.html" title="rt.deh"><span class="d_inlinecode donthyphenate notranslate">deh</span></a></li><li> <a href="rt_deh_win32.html" title="rt.deh_win32"><span class="d_inlinecode donthyphenate notranslate">deh_win32</span></a></li><li> <a href="rt_deh_win64_posix.html" title="rt.deh_win64_posix"><span class="d_inlinecode donthyphenate notranslate">deh_win64_posix</span></a></li><li> <a href="rt_dmain2.html" title="rt.dmain2"><span class="d_inlinecode donthyphenate notranslate">dmain2</span></a></li><li> <a href="rt_dwarfeh.html" title="rt.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="rt_ehalloc.html" title="rt.ehalloc"><span class="d_inlinecode donthyphenate notranslate">ehalloc</span></a></li><li> <a href="rt_invariant_.html" title="rt.invariant_"><span class="d_inlinecode donthyphenate notranslate">invariant_</span></a></li><li> <a href="rt_lifetime.html" title="rt.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="rt_llmath.html" title="rt.llmath"><span class="d_inlinecode donthyphenate notranslate">llmath</span></a></li><li> <a href="rt_memory.html" title="rt.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="rt_memset.html" title="rt.memset"><span class="d_inlinecode donthyphenate notranslate">memset</span></a></li><li> <a href="rt_minfo.html" title="rt.minfo"><span class="d_inlinecode donthyphenate notranslate">minfo</span></a></li><li> <a href="rt_monitor_.html" title="rt.monitor_"><span class="d_inlinecode donthyphenate notranslate">monitor_</span></a></li><li> <a href="rt_msvc.html" title="rt.msvc"><span class="d_inlinecode donthyphenate notranslate">msvc</span></a></li><li> <a href="rt_msvc_math.html" title="rt.msvc_math"><span class="d_inlinecode donthyphenate notranslate">msvc_math</span></a></li><li> <a href="rt_profilegc.html" title="rt.profilegc"><span class="d_inlinecode donthyphenate notranslate">profilegc</span></a></li><li> <a href="rt_sections.html" title="rt.sections"><span class="d_inlinecode donthyphenate notranslate">sections</span></a></li><li> <a href="rt_sections_darwin_64.html" title="rt.sections_darwin_64"><span class="d_inlinecode donthyphenate notranslate">sections_darwin_64</span></a></li><li> <a href="rt_sections_elf_shared.html" title="rt.sections_elf_shared"><span class="d_inlinecode donthyphenate notranslate">sections_elf_shared</span></a></li><li> <a href="rt_sections_osx_64.html" title="rt.sections_osx_64"><span class="d_inlinecode donthyphenate notranslate">sections_osx_64</span></a></li><li> <a href="rt_sections_osx_x86.html" title="rt.sections_osx_x86"><span class="d_inlinecode donthyphenate notranslate">sections_osx_x86</span></a></li><li> <a href="rt_sections_solaris.html" title="rt.sections_solaris"><span class="d_inlinecode donthyphenate notranslate">sections_solaris</span></a></li><li> <a href="rt_sections_win64.html" title="rt.sections_win64"><span class="d_inlinecode donthyphenate notranslate">sections_win64</span></a></li><li> <a href="rt_tlsgc.html" title="rt.tlsgc"><span class="d_inlinecode donthyphenate notranslate">tlsgc</span></a></li><li> <a href="rt_trace.html" title="rt.trace"><span class="d_inlinecode donthyphenate notranslate">trace</span></a></li><li> <a href="rt_tracegc.html" title="rt.tracegc"><span class="d_inlinecode donthyphenate notranslate">tracegc</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="rt_util_typeinfo.html" title="rt.util.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="rt_util_utility.html" title="rt.util.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a>
</li></ul>
</li></ul>
</li></ul>
</div>
<div class="hyphenate" id="content">
<div id="tools"><div > <div class="tip smallprint"> <a href="https://github.com/dlang/phobos/issues/new?title=%5Bstd.json%5D%20&amp;label=Severity:Enhancement">Report a bug</a>
<div > If you spot a problem with this page, click here to create a GitHub issue.
</div>
</div>
<div class="tip smallprint"> <a href="https://github.com/dlang/phobos/edit/master/std/json.d">Improve this page</a>
<div > 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.
</div>
</div>
</div></div>
<h1><span class="d_title">std.json</span></h1>
<div class="quickindex" id="quickindex"></div>
<div class="summary">Implements functionality to read and write JavaScript Object Notation values.
</div><div class="description">JavaScript Object Notation is a lightweight data interchange format commonly used in web services and configuration files.
It's easy for humans to read and write, and it's easy for machines to parse and generate.
<div class="blankline"></div>
<span class="red">Warning: While <a href="#JSONValue"><span class="d_inlinecode donthyphenate notranslate">JSONValue</span></a> is fine for small-scale use, at the range of hundreds of megabytes it is
known to cause and exacerbate GC problems. If you encounter problems, try replacing it with a stream parser. See
also <a href="https://forum.dlang.org/post/dzfyaxypmkdrpakmycjv@forum.dlang.org">https://forum.dlang.org/post/<span class="__cf_email__" data-cfemail="6c08160a150d14151c0107081e1c0d0701150f061a2c0a031e19014208000d020b42031e0b">[email&#160;protected]</span></a>.</span>
</div>
<div class="keyval License"><span class="key keyLicense">License:</span> <div class="val valLicense"><a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
</div></div>
<div class="keyval Authors"><span class="key keyAuthors">Authors:</span> <div class="val valAuthors">Jeremie Pelletier, David Herberth
</div></div>
<div class="val"><p class="keyval Section"><span class="key keySection">References</span>
<a href="http://json.org/">http://json.org/</a>, <a href="https://seriot.ch/projects/parsing_json.html">https://seriot.ch/projects/parsing_json.html</a>
</p></div>
<div class="val"><p class="keyval Section"><span class="key keySection">Source</span>
<span class="phobos_src"><a class="https" href="https://github.com/dlang/phobos/blob/master/std/json.d">std/json.d</a></span></p></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate"><span class="d_keyword">import</span> std.conv : to;
<span class="d_comment">// parse a file or string of json into a usable structure
</span>string s = <span class="d_string">`{ "language": "D", "rating": 3.5, "code": "42" }`</span>;
JSONValue j = parseJSON(s);
<span class="d_comment">// j and j["language"] return JSONValue,
</span><span class="d_comment">// j["language"].str returns a string
</span>writeln(j[<span class="d_string">"language"</span>].str); <span class="d_comment">// "D"
</span>writeln(j[<span class="d_string">"rating"</span>].floating); <span class="d_comment">// 3.5
</span>
<span class="d_comment">// check a type
</span><span class="d_keyword">long</span> x;
<span class="d_keyword">if</span> (<span class="d_keyword">const</span>(JSONValue)* code = <span class="d_string">"code"</span> <span class="d_keyword">in</span> j)
{
<span class="d_keyword">if</span> (code.type() == JSONType.integer)
x = code.integer;
<span class="d_keyword">else</span>
x = to!<span class="d_keyword">int</span>(code.str);
}
<span class="d_comment">// create a json struct
</span>JSONValue jj = [ <span class="d_string">"language"</span>: <span class="d_string">"D"</span> ];
<span class="d_comment">// rating doesnt exist yet, so use .object to assign
</span>jj.object[<span class="d_string">"rating"</span>] = JSONValue(3.5);
<span class="d_comment">// create an array to assign to list
</span>jj.object[<span class="d_string">"list"</span>] = JSONValue( [<span class="d_string">"a"</span>, <span class="d_string">"b"</span>, <span class="d_string">"c"</span>] );
<span class="d_comment">// list already exists, so .object optional
</span>jj[<span class="d_string">"list"</span>].array ~= JSONValue(<span class="d_string">"D"</span>);
string jjStr = <span class="d_string">`{"language":"D","list":["a","b","c","D"],"rating":3.5}`</span>;
writeln(jj.toString); <span class="d_comment">// jjStr
</span></pre>
</div></div>
<dl><dt class="d_decl"><div ><span class="def-anchor" id=".JSONFloatLiteral"></span><div class="quickindex" id="quickindex.JSONFloatLiteral"></div>enum <span class="def-anchor" id="JSONFloatLiteral"></span><code class="ddoc_psymbol">JSONFloatLiteral</code>: string;
<br></div></dt>
<dd><div class="summary">String literals used to represent special float values within JSON strings.</div>
<dl><dt class="d_decl"><div ><span class="def-anchor" id=".JSONFloatLiteral.nan"></span><div class="quickindex" id="quickindex.JSONFloatLiteral.nan"></div><span class="def-anchor" id="nan"></span><code class="ddoc_psymbol">nan</code><br></div></dt>
<dd><div class="summary">String representation of floating-point NaN</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONFloatLiteral.inf"></span><div class="quickindex" id="quickindex.JSONFloatLiteral.inf"></div><span class="def-anchor" id="inf"></span><code class="ddoc_psymbol">inf</code><br></div></dt>
<dd><div class="summary">String representation of floating-point Infinity</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONFloatLiteral.negativeInf"></span><div class="quickindex" id="quickindex.JSONFloatLiteral.negativeInf"></div><span class="def-anchor" id="negativeInf"></span><code class="ddoc_psymbol">negativeInf</code><br></div></dt>
<dd><div class="summary">String representation of floating-point negative Infinity</div>
</dd>
</dl>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions"></span><div class="quickindex" id="quickindex.JSONOptions"></div>enum <span class="def-anchor" id="JSONOptions"></span><code class="ddoc_psymbol">JSONOptions</code>: int;
<br></div></dt>
<dd><div class="summary">Flags that control how JSON is encoded and parsed.</div>
<dl><dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.none"></span><div class="quickindex" id="quickindex.JSONOptions.none"></div><span class="def-anchor" id="none"></span><code class="ddoc_psymbol">none</code><br></div></dt>
<dd><div class="summary">Standard parsing and encoding</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.specialFloatLiterals"></span><div class="quickindex" id="quickindex.JSONOptions.specialFloatLiterals"></div><span class="def-anchor" id="specialFloatLiterals"></span><code class="ddoc_psymbol">specialFloatLiterals</code><br></div></dt>
<dd><div class="summary">Encode NaN and Inf float values as strings</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.escapeNonAsciiChars"></span><div class="quickindex" id="quickindex.JSONOptions.escapeNonAsciiChars"></div><span class="def-anchor" id="escapeNonAsciiChars"></span><code class="ddoc_psymbol">escapeNonAsciiChars</code><br></div></dt>
<dd><div class="summary">Encode non-ASCII characters with a Unicode escape sequence</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.doNotEscapeSlashes"></span><div class="quickindex" id="quickindex.JSONOptions.doNotEscapeSlashes"></div><span class="def-anchor" id="doNotEscapeSlashes"></span><code class="ddoc_psymbol">doNotEscapeSlashes</code><br></div></dt>
<dd><div class="summary">Do not escape slashes ('/')</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.strictParsing"></span><div class="quickindex" id="quickindex.JSONOptions.strictParsing"></div><span class="def-anchor" id="strictParsing"></span><code class="ddoc_psymbol">strictParsing</code><br></div></dt>
<dd><div class="summary">Strictly follow RFC-8259 grammar when parsing</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONOptions.preserveObjectOrder"></span><div class="quickindex" id="quickindex.JSONOptions.preserveObjectOrder"></div><span class="def-anchor" id="preserveObjectOrder"></span><code class="ddoc_psymbol">preserveObjectOrder</code><br></div></dt>
<dd><div class="summary">Preserve order of object keys when parsing</div>
</dd>
</dl>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONType"></span><div class="quickindex" id="quickindex.JSONType"></div>enum <span class="def-anchor" id="JSONType"></span><code class="ddoc_psymbol">JSONType</code>: byte;
<br></div></dt>
<dd><div class="summary">Enumeration of JSON types</div>
<dl><dt class="d_decl"><div ><span class="def-anchor" id=".JSONType.null_"></span><div class="quickindex" id="quickindex.JSONType.null_"></div><span class="def-anchor" id="null_"></span><code class="ddoc_psymbol">null_</code><br><br><span class="def-anchor" id=".JSONType.string"></span><div class="quickindex" id="quickindex.JSONType.string"></div><span class="def-anchor" id="string"></span><code class="ddoc_psymbol">string</code><br><br><span class="def-anchor" id=".JSONType.integer"></span><div class="quickindex" id="quickindex.JSONType.integer"></div><span class="def-anchor" id="integer"></span><code class="ddoc_psymbol">integer</code><br><br><span class="def-anchor" id=".JSONType.uinteger"></span><div class="quickindex" id="quickindex.JSONType.uinteger"></div><span class="def-anchor" id="uinteger"></span><code class="ddoc_psymbol">uinteger</code><br><br><span class="def-anchor" id=".JSONType.float_"></span><div class="quickindex" id="quickindex.JSONType.float_"></div><span class="def-anchor" id="float_"></span><code class="ddoc_psymbol">float_</code><br><br><span class="def-anchor" id=".JSONType.array"></span><div class="quickindex" id="quickindex.JSONType.array"></div><span class="def-anchor" id="array"></span><code class="ddoc_psymbol">array</code><br><br><span class="def-anchor" id=".JSONType.object"></span><div class="quickindex" id="quickindex.JSONType.object"></div><span class="def-anchor" id="object"></span><code class="ddoc_psymbol">object</code><br><br><span class="def-anchor" id=".JSONType.true_"></span><div class="quickindex" id="quickindex.JSONType.true_"></div><span class="def-anchor" id="true_"></span><code class="ddoc_psymbol">true_</code><br><br><span class="def-anchor" id=".JSONType.false_"></span><div class="quickindex" id="quickindex.JSONType.false_"></div><span class="def-anchor" id="false_"></span><code class="ddoc_psymbol">false_</code><br></div></dt>
<dd><div class="summary">Indicates the type of a <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>.</div>
</dd>
</dl>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue"></span><div class="quickindex" id="quickindex.JSONValue"></div>struct <span class="def-anchor" id="JSONValue"></span><code class="ddoc_psymbol">JSONValue</code>;
<br></div></dt>
<dd><div class="summary">JSON value node</div>
<dl><dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.type"></span><div class="quickindex" id="quickindex.JSONValue.type"></div>pure nothrow @nogc @property @safe JSONType <span class="def-anchor" id="type"></span><code class="ddoc_psymbol">type</code>() const;
<br></div></dt>
<dd><div class="summary">Returns the JSONType of the value stored in this structure.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">string s = <span class="d_string">"{ \"language\": \"D\" }"</span>;
JSONValue j = parseJSON(s);
writeln(j.<span class="d_psymbol">type</span>); <span class="d_comment">// JSONType.object
</span>writeln(j[<span class="d_string">"language"</span>].<span class="d_psymbol">type</span>); <span class="d_comment">// JSONType.string
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.str"></span><div class="quickindex" id="quickindex.JSONValue.str"></div>pure @property @trusted string <span class="def-anchor" id="str"></span><code class="ddoc_psymbol">str</code>() const return scope;
<br><br>pure nothrow @nogc @property @trusted string <span class="def-anchor" id="str"></span><code class="ddoc_psymbol">str</code>(return scope string <code class="ddoc_param">v</code>) return;
<br></div></dt>
<dd><div class="summary">Value getter/setter for <span class="d_inlinecode donthyphenate notranslate">JSONType.string</span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.string</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = [ <span class="d_string">"language"</span>: <span class="d_string">"D"</span> ];
<span class="d_comment">// get value
</span>writeln(j[<span class="d_string">"language"</span>].<span class="d_psymbol">str</span>); <span class="d_comment">// "D"
</span>
<span class="d_comment">// change existing key to new string
</span>j[<span class="d_string">"language"</span>].<span class="d_psymbol">str</span> = <span class="d_string">"Perl"</span>;
writeln(j[<span class="d_string">"language"</span>].<span class="d_psymbol">str</span>); <span class="d_comment">// "Perl"
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.integer"></span><div class="quickindex" id="quickindex.JSONValue.integer"></div>pure @property @safe long <span class="def-anchor" id="integer"></span><code class="ddoc_psymbol">integer</code>() const;
<br><br>pure nothrow @nogc @property @safe long <span class="def-anchor" id="integer"></span><code class="ddoc_psymbol">integer</code>(long <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for <span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="integer"></span><code class="ddoc_psymbol">integer</code></span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="integer"></span><code class="ddoc_psymbol">integer</code></span>.</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.uinteger"></span><div class="quickindex" id="quickindex.JSONValue.uinteger"></div>pure @property @safe ulong <span class="def-anchor" id="uinteger"></span><code class="ddoc_psymbol">uinteger</code>() const;
<br><br>pure nothrow @nogc @property @safe ulong <span class="def-anchor" id="uinteger"></span><code class="ddoc_psymbol">uinteger</code>(ulong <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for <span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="uinteger"></span><code class="ddoc_psymbol">uinteger</code></span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="uinteger"></span><code class="ddoc_psymbol">uinteger</code></span>.</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.floating"></span><div class="quickindex" id="quickindex.JSONValue.floating"></div>pure @property @safe double <span class="def-anchor" id="floating"></span><code class="ddoc_psymbol">floating</code>() const;
<br><br>pure nothrow @nogc @property @safe double <span class="def-anchor" id="floating"></span><code class="ddoc_psymbol">floating</code>(double <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for <span class="d_inlinecode donthyphenate notranslate">JSONType.float_</span>. Note that despite
the name, this is a <b>64</b>-bit <span class="d_inlinecode donthyphenate notranslate">double</span>, not a 32-bit <span class="d_inlinecode donthyphenate notranslate">float</span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.float_</span>.</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.boolean"></span><div class="quickindex" id="quickindex.JSONValue.boolean"></div>pure @property @safe bool <span class="def-anchor" id="boolean"></span><code class="ddoc_psymbol">boolean</code>() const;
<br><br>pure nothrow @nogc @property @safe bool <span class="def-anchor" id="boolean"></span><code class="ddoc_psymbol">boolean</code>(bool <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for boolean stored in JSON.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">this.type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.true_</span> or <span class="d_inlinecode donthyphenate notranslate">JSONType.false_</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = <span class="d_keyword">true</span>;
writeln(j.<span class="d_psymbol">boolean</span>); <span class="d_comment">// true
</span>
j.<span class="d_psymbol">boolean</span> = <span class="d_keyword">false</span>;
writeln(j.<span class="d_psymbol">boolean</span>); <span class="d_comment">// false
</span>
j.integer = 12;
<span class="d_keyword">import</span> std.exception : assertThrown;
assertThrown!JSONException(j.<span class="d_psymbol">boolean</span>);
</pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.object"></span><div class="quickindex" id="quickindex.JSONValue.object"></div>pure @property ref @system inout(JSONValue[string]) <span class="def-anchor" id="object"></span><code class="ddoc_psymbol">object</code>() inout return;
<br><br>pure nothrow @nogc @property @trusted JSONValue[string] <span class="def-anchor" id="object"></span><code class="ddoc_psymbol">object</code>(return scope JSONValue[string] <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for unordered <span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="object"></span><code class="ddoc_psymbol">object</code></span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="object"></span><code class="ddoc_psymbol">object</code></span> or the object is ordered.
</div></div>
<div class="val"><p class="keyval Section"><span class="key keySection">Note</span>
This is @system because of the following pattern:
<pre class="d_code notranslate"><span class="d_keyword">auto</span> a = &amp;(json.<span class="d_psymbol">object</span>());
json.uinteger = 0; <span class="d_comment">// overwrite AA pointer
</span>(*a)[<span class="d_string">"hello"</span>] = <span class="d_string">"world"</span>; <span class="d_comment">// segmentation fault
</span></pre>
</p></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.objectNoRef"></span><div class="quickindex" id="quickindex.JSONValue.objectNoRef"></div>pure @property @trusted inout(JSONValue[string]) <span class="def-anchor" id="objectNoRef"></span><code class="ddoc_psymbol">objectNoRef</code>() inout;
<br></div></dt>
<dd><div class="summary">Value getter for unordered <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>.
Unlike <span class="d_inlinecode donthyphenate notranslate">object</span>, this retrieves the object by value
and can be used in @safe code.
</div><div class="description"> One possible caveat is that, if the returned value is null,
modifications will not be visible:
<pre class="d_code notranslate">JSONValue json;
json.object = <span class="d_keyword">null</span>;
json.<span class="d_psymbol">objectNoRef</span>[<span class="d_string">"hello"</span>] = JSONValue(<span class="d_string">"world"</span>);
<span class="d_keyword">assert</span>(<span class="d_string">"hello"</span> !<span class="d_keyword">in</span> json.object);
</pre>
</div>
<div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>.</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.orderedObject"></span><div class="quickindex" id="quickindex.JSONValue.orderedObject"></div>pure @property ref @system inout(OrderedObjectMember[]) <span class="def-anchor" id="orderedObject"></span><code class="ddoc_psymbol">orderedObject</code>() inout return;
<br><br>pure nothrow @nogc @property @trusted OrderedObjectMember[] <span class="def-anchor" id="orderedObject"></span><code class="ddoc_psymbol">orderedObject</code>(return scope OrderedObjectMember[] <code class="ddoc_param">v</code>);
<br></div></dt>
<dd><div class="summary">Value getter/setter for ordered <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.object</span> or the object is unordered.
</div></div>
<div class="val"><p class="keyval Section"><span class="key keySection">Note</span>
This is @system because of the following pattern:
<pre class="d_code notranslate"><span class="d_keyword">auto</span> a = &amp;(json.<span class="d_psymbol">orderedObject</span>());
json.uinteger = 0; <span class="d_comment">// overwrite AA pointer
</span>(*a)[<span class="d_string">"hello"</span>] = <span class="d_string">"world"</span>; <span class="d_comment">// segmentation fault
</span></pre>
</p></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.orderedObjectNoRef"></span><div class="quickindex" id="quickindex.JSONValue.orderedObjectNoRef"></div>pure @property @trusted inout(OrderedObjectMember[]) <span class="def-anchor" id="orderedObjectNoRef"></span><code class="ddoc_psymbol">orderedObjectNoRef</code>() inout;
<br></div></dt>
<dd><div class="summary">Value getter for ordered <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>.
Unlike <span class="d_inlinecode donthyphenate notranslate">orderedObject</span>, this retrieves the object by value
and can be used in @safe code.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.isOrdered"></span><div class="quickindex" id="quickindex.JSONValue.isOrdered"></div>pure @property @trusted bool <span class="def-anchor" id="isOrdered"></span><code class="ddoc_psymbol">isOrdered</code>() const;
<br></div></dt>
<dd><div class="summary">Returns <span class="d_inlinecode donthyphenate notranslate">true</span> if the order of keys of the represented object is being preserved.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.array"></span><div class="quickindex" id="quickindex.JSONValue.array"></div>pure @property ref @system inout(JSONValue[]) <span class="def-anchor" id="array"></span><code class="ddoc_psymbol">array</code>() inout scope return;
<br><br>pure nothrow @nogc @property @trusted JSONValue[] <span class="def-anchor" id="array"></span><code class="ddoc_psymbol">array</code>(return scope JSONValue[] <code class="ddoc_param">v</code>) scope;
<br></div></dt>
<dd><div class="summary">Value getter/setter for <span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="array"></span><code class="ddoc_psymbol">array</code></span>.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.<span class="def-anchor" id="array"></span><code class="ddoc_psymbol">array</code></span>.
</div></div>
<div class="val"><p class="keyval Section"><span class="key keySection">Note</span>
This is @system because of the following pattern:
<pre class="d_code notranslate"><span class="d_keyword">auto</span> a = &amp;(json.<span class="d_psymbol">array</span>());
json.uinteger = 0; <span class="d_comment">// overwrite array pointer
</span>(*a)[0] = <span class="d_string">"world"</span>; <span class="d_comment">// segmentation fault
</span></pre>
</p></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.arrayNoRef"></span><div class="quickindex" id="quickindex.JSONValue.arrayNoRef"></div>pure @property @trusted inout(JSONValue[]) <span class="def-anchor" id="arrayNoRef"></span><code class="ddoc_psymbol">arrayNoRef</code>() inout;
<br></div></dt>
<dd><div class="summary">Value getter for <span class="d_inlinecode donthyphenate notranslate">JSONType.array</span>.
Unlike <span class="d_inlinecode donthyphenate notranslate">array</span>, this retrieves the array by value and can be used in @safe code.
</div><div class="description"> One possible caveat is that, if you append to the returned array,
the new values aren't visible in the <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>:
<pre class="d_code notranslate">JSONValue json;
json.array = [JSONValue(<span class="d_string">"hello"</span>)];
json.<span class="d_psymbol">arrayNoRef</span> ~= JSONValue(<span class="d_string">"world"</span>);
<span class="d_keyword">assert</span>(json.array.length == 1);
</pre>
</div>
<div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> for read access if <span class="d_inlinecode donthyphenate notranslate">type</span> is not
<span class="d_inlinecode donthyphenate notranslate">JSONType.array</span>.</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.isNull"></span><div class="quickindex" id="quickindex.JSONValue.isNull"></div>pure nothrow @nogc @property @safe bool <span class="def-anchor" id="isNull"></span><code class="ddoc_psymbol">isNull</code>() const;
<br></div></dt>
<dd><div class="summary">Test whether the type is <span class="d_inlinecode donthyphenate notranslate">JSONType.null_</span></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.get"></span><div class="quickindex" id="quickindex.JSONValue.get"></div>pure @property @safe inout<span class="template_param_list" title="Template parameter list">(T)</span> <span class="def-anchor" id="get"></span><code class="ddoc_psymbol">get</code>(T)() inout const;
<br><br>pure @property @trusted inout(T) <span class="def-anchor" id="get"></span><code class="ddoc_psymbol">get</code><span class="template_param_list" title="Template parameter list">(T : JSONValue[string])</span>() inout;
<br></div></dt>
<dd><div class="summary">A convenience getter that returns this <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> as the specified D type.
</div><div class="val"><p class="keyval Section"><span class="key keySection">Note</span>
Only numeric types, <span class="d_inlinecode donthyphenate notranslate">bool</span>, <span class="d_inlinecode donthyphenate notranslate">string</span>, <span class="d_inlinecode donthyphenate notranslate">JSONValue[string]</span>, and <span class="d_inlinecode donthyphenate notranslate">JSONValue[]</span> types are accepted
</p></div>
<div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> if <span class="d_inlinecode donthyphenate notranslate">T</span> cannot hold the contents of this <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>
<span class="d_inlinecode donthyphenate notranslate">ConvException</span> in case of integer overflow when converting to <span class="d_inlinecode donthyphenate notranslate">T</span></div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate"><span class="d_keyword">import</span> std.exception;
<span class="d_keyword">import</span> std.conv;
string s =
<span class="d_string">`{
"a": 123,
"b": 3.1415,
"c": "text",
"d": true,
"e": [1, 2, 3],
"f": { "a": 1 },
"g": -45,
"h": `</span> ~ <span class="d_keyword">ulong</span>.max.to!string ~ <span class="d_string">`,
}`</span>;
<span class="d_keyword">struct</span> a { }
<span class="d_keyword">immutable</span> json = parseJSON(s);
writeln(json[<span class="d_string">"a"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">double</span>); <span class="d_comment">// 123.0
</span>writeln(json[<span class="d_string">"a"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">int</span>); <span class="d_comment">// 123
</span>writeln(json[<span class="d_string">"a"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">uint</span>); <span class="d_comment">// 123
</span>writeln(json[<span class="d_string">"b"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">double</span>); <span class="d_comment">// 3.1415
</span>assertThrown!JSONException(json[<span class="d_string">"b"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">int</span>);
writeln(json[<span class="d_string">"c"</span>].<span class="d_psymbol">get</span>!string); <span class="d_comment">// "text"
</span>writeln(json[<span class="d_string">"d"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">bool</span>); <span class="d_comment">// true
</span>assertNotThrown(json[<span class="d_string">"e"</span>].<span class="d_psymbol">get</span>!(JSONValue[]));
assertNotThrown(json[<span class="d_string">"f"</span>].<span class="d_psymbol">get</span>!(JSONValue[string]));
<span class="d_keyword">static</span> <span class="d_keyword">assert</span>(!<span class="d_keyword">__traits</span>(compiles, json[<span class="d_string">"a"</span>].<span class="d_psymbol">get</span>!a));
assertThrown!JSONException(json[<span class="d_string">"e"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">float</span>);
assertThrown!JSONException(json[<span class="d_string">"d"</span>].<span class="d_psymbol">get</span>!(JSONValue[string]));
assertThrown!JSONException(json[<span class="d_string">"f"</span>].<span class="d_psymbol">get</span>!(JSONValue[]));
writeln(json[<span class="d_string">"g"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">int</span>); <span class="d_comment">// -45
</span>assertThrown!ConvException(json[<span class="d_string">"g"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">uint</span>);
writeln(json[<span class="d_string">"h"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">ulong</span>); <span class="d_comment">// ulong.max
</span>assertThrown!ConvException(json[<span class="d_string">"h"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">uint</span>);
assertNotThrown(json[<span class="d_string">"h"</span>].<span class="d_psymbol">get</span>!<span class="d_keyword">float</span>);
</pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.this"></span><div class="quickindex" id="quickindex.JSONValue.this"></div>this<span class="template_param_list" title="Template parameter list">(T)</span>(T <code class="ddoc_param">arg</code>)<br><span class="constraint">if (!isStaticArray!T)</span>;
<br><br>this<span class="template_param_list" title="Template parameter list">(T)</span>(ref T <code class="ddoc_param">arg</code>)<br><span class="constraint">if (isStaticArray!T)</span>;
<br><br>this<span class="template_param_list" title="Template parameter list">(T : JSONValue)</span>(inout T <code class="ddoc_param">arg</code>) inout;
<br></div></dt>
<dd><div class="summary">Constructor for <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>. If <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">arg</code></span> is a <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>
its value and type will be copied to the new <span class="d_inlinecode donthyphenate notranslate">JSONValue</span>.
Note that this is a shallow copy: if type is <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>
or <span class="d_inlinecode donthyphenate notranslate">JSONType.array</span> then only the reference to the data will
be copied.
Otherwise, <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">arg</code></span> must be implicitly convertible to one of the
following types: <span class="d_inlinecode donthyphenate notranslate">typeof(null)</span>, <span class="d_inlinecode donthyphenate notranslate">string</span>, <span class="d_inlinecode donthyphenate notranslate">ulong</span>,
<span class="d_inlinecode donthyphenate notranslate">long</span>, <span class="d_inlinecode donthyphenate notranslate">double</span>, an associative array <span class="d_inlinecode donthyphenate notranslate">V[K]</span> for any <span class="d_inlinecode donthyphenate notranslate">V</span>
and <span class="d_inlinecode donthyphenate notranslate">K</span> i.e. a JSON object, any array or <span class="d_inlinecode donthyphenate notranslate">bool</span>. The type will
be set accordingly.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = JSONValue( <span class="d_string">"a string"</span> );
j = JSONValue(42);
j = JSONValue( [1, 2, 3] );
writeln(j.type); <span class="d_comment">// JSONType.array
</span>
j = JSONValue( [<span class="d_string">"language"</span>: <span class="d_string">"D"</span>] );
writeln(j.type); <span class="d_comment">// JSONType.object
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.emptyObject"></span><div class="quickindex" id="quickindex.JSONValue.emptyObject"></div>enum JSONValue <span class="def-anchor" id="emptyObject"></span><code class="ddoc_psymbol">emptyObject</code>;
<br></div></dt>
<dd><div class="summary">An enum value that can be used to obtain a <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> representing
an empty JSON object.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue obj1 = JSONValue.<span class="d_psymbol">emptyObject</span>;
writeln(obj1.type); <span class="d_comment">// JSONType.object
</span>obj1.object[<span class="d_string">"a"</span>] = JSONValue(1);
writeln(obj1.object[<span class="d_string">"a"</span>]); <span class="d_comment">// JSONValue(1)
</span>
JSONValue obj2 = JSONValue.<span class="d_psymbol">emptyObject</span>;
<span class="d_keyword">assert</span>(<span class="d_string">"a"</span> !<span class="d_keyword">in</span> obj2.object);
obj2.object[<span class="d_string">"b"</span>] = JSONValue(5);
<span class="d_keyword">assert</span>(obj1 != obj2);
</pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.emptyOrderedObject"></span><div class="quickindex" id="quickindex.JSONValue.emptyOrderedObject"></div>enum JSONValue <span class="def-anchor" id="emptyOrderedObject"></span><code class="ddoc_psymbol">emptyOrderedObject</code>;
<br></div></dt>
<dd><div class="summary">An enum value that can be used to obtain a <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> representing
an empty JSON object.
Unlike <span class="d_inlinecode donthyphenate notranslate">emptyObject</span>, the order of inserted keys is preserved.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue obj = JSONValue.<span class="d_psymbol">emptyOrderedObject</span>;
writeln(obj.type); <span class="d_comment">// JSONType.object
</span><span class="d_keyword">assert</span>(obj.isOrdered);
obj[<span class="d_string">"b"</span>] = JSONValue(2);
obj[<span class="d_string">"a"</span>] = JSONValue(1);
writeln(obj[<span class="d_string">"a"</span>]); <span class="d_comment">// JSONValue(1)
</span>writeln(obj[<span class="d_string">"b"</span>]); <span class="d_comment">// JSONValue(2)
</span>
string[] keys;
<span class="d_keyword">foreach</span> (string k, JSONValue v; obj)
keys ~= k;
writeln(keys); <span class="d_comment">// ["b", "a"]
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.emptyArray"></span><div class="quickindex" id="quickindex.JSONValue.emptyArray"></div>enum JSONValue <span class="def-anchor" id="emptyArray"></span><code class="ddoc_psymbol">emptyArray</code>;
<br></div></dt>
<dd><div class="summary">An enum value that can be used to obtain a <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> representing
an empty JSON array.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue arr1 = JSONValue.<span class="d_psymbol">emptyArray</span>;
writeln(arr1.type); <span class="d_comment">// JSONType.array
</span>writeln(arr1.array.length); <span class="d_comment">// 0
</span>arr1.array ~= JSONValue(<span class="d_string">"Hello"</span>);
writeln(arr1.array.length); <span class="d_comment">// 1
</span>writeln(arr1.array[0]); <span class="d_comment">// JSONValue("Hello")
</span>
JSONValue arr2 = JSONValue.<span class="d_psymbol">emptyArray</span>;
writeln(arr2.array.length); <span class="d_comment">// 0
</span><span class="d_keyword">assert</span>(arr1 != arr2);
</pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opIndex"></span><div class="quickindex" id="quickindex.JSONValue.opIndex"></div>pure ref @safe inout(JSONValue) <span class="def-anchor" id="opIndex"></span><code class="ddoc_psymbol">opIndex</code>(size_t <code class="ddoc_param">i</code>) inout;
<br></div></dt>
<dd><div class="summary">Array syntax for JSON arrays.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> if <span class="d_inlinecode donthyphenate notranslate">type</span> is not <span class="d_inlinecode donthyphenate notranslate">JSONType.array</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = JSONValue( [42, 43, 44] );
writeln(j[0].integer); <span class="d_comment">// 42
</span>writeln(j[1].integer); <span class="d_comment">// 43
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opIndex.2"></span><div class="quickindex" id="quickindex.JSONValue.opIndex.2"></div>pure ref @safe inout(JSONValue) <span class="def-anchor" id="opIndex"></span><code class="ddoc_psymbol">opIndex</code>(return scope string <code class="ddoc_param">k</code>) inout;
<br></div></dt>
<dd><div class="summary">Hash syntax for JSON objects.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> if <span class="d_inlinecode donthyphenate notranslate">type</span> is not <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = JSONValue( [<span class="d_string">"language"</span>: <span class="d_string">"D"</span>] );
writeln(j[<span class="d_string">"language"</span>].str); <span class="d_comment">// "D"
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opIndexAssign"></span><div class="quickindex" id="quickindex.JSONValue.opIndexAssign"></div>void <span class="def-anchor" id="opIndexAssign"></span><code class="ddoc_psymbol">opIndexAssign</code><span class="template_param_list" title="Template parameter list">(T)</span>(auto ref T <code class="ddoc_param">value</code>, string <code class="ddoc_param">key</code>);
<br><br>void <span class="def-anchor" id="opIndexAssign"></span><code class="ddoc_psymbol">opIndexAssign</code><span class="template_param_list" title="Template parameter list">(T)</span>(T <code class="ddoc_param">arg</code>, size_t <code class="ddoc_param">i</code>);
<br></div></dt>
<dd><div class="summary">Provides support for index assignments, which sets the
corresponding value of the JSON object's <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">key</code></span> field to <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">value</code></span>.
</div><div class="description">If the <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> is <span class="d_inlinecode donthyphenate notranslate">JSONType.null_</span>, then this function
initializes it with a JSON object and then performs
the index assignment.
</div>
<div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> if <span class="d_inlinecode donthyphenate notranslate">type</span> is not <span class="d_inlinecode donthyphenate notranslate">JSONType.object</span>
or <span class="d_inlinecode donthyphenate notranslate">JSONType.null_</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = JSONValue( [<span class="d_string">"language"</span>: <span class="d_string">"D"</span>] );
j[<span class="d_string">"language"</span>].str = <span class="d_string">"Perl"</span>;
writeln(j[<span class="d_string">"language"</span>].str); <span class="d_comment">// "Perl"
</span></pre>
</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = JSONValue( [<span class="d_string">"Perl"</span>, <span class="d_string">"C"</span>] );
j[1].str = <span class="d_string">"D"</span>;
writeln(j[1].str); <span class="d_comment">// "D"
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opBinaryRight"></span><div class="quickindex" id="quickindex.JSONValue.opBinaryRight"></div>@safe inout(JSONValue)* <span class="def-anchor" id="opBinaryRight"></span><code class="ddoc_psymbol">opBinaryRight</code><span class="template_param_list" title="Template parameter list">(string op : "in")</span>(string <code class="ddoc_param">k</code>) inout;
<br></div></dt>
<dd><div class="summary">Provides support for the <span class="d_inlinecode donthyphenate notranslate">in</span> operator.
</div><div class="description">Tests whether a key can be found in an object.
</div>
<div class="keyval Returns"><span class="key keyReturns">Returns:</span> <div class="val valReturns">When found, the <span class="d_inlinecode donthyphenate notranslate">inout(JSONValue)*</span> that matches to the key,
otherwise <span class="d_inlinecode donthyphenate notranslate">null</span>.
</div></div>
<div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><span class="d_inlinecode donthyphenate notranslate">JSONException</span> if the right hand side argument <span class="d_inlinecode donthyphenate notranslate">JSONType</span>
is not <span class="d_inlinecode donthyphenate notranslate">object</span>.</div></div>
<span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate">JSONValue j = [ <span class="d_string">"language"</span>: <span class="d_string">"D"</span>, <span class="d_string">"author"</span>: <span class="d_string">"walter"</span> ];
string a = (<span class="d_string">"author"</span> <span class="d_keyword">in</span> j).str;
*(<span class="d_string">"author"</span> <span class="d_keyword">in</span> j) = <span class="d_string">"Walter"</span>;
writeln(j[<span class="d_string">"author"</span>].str); <span class="d_comment">// "Walter"
</span></pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opEquals"></span><div class="quickindex" id="quickindex.JSONValue.opEquals"></div>pure nothrow @nogc @safe bool <span class="def-anchor" id="opEquals"></span><code class="ddoc_psymbol">opEquals</code>(const JSONValue <code class="ddoc_param">rhs</code>) const;
<br><br>pure nothrow @nogc @trusted bool <span class="def-anchor" id="opEquals"></span><code class="ddoc_psymbol">opEquals</code>(ref const JSONValue <code class="ddoc_param">rhs</code>) const;
<br></div></dt>
<dd><div class="summary">Compare two JSONValues for equality
</div><div class="description">JSON arrays and objects are compared deeply. The order of object keys does not matter.
<div class="blankline"></div>
Floating point numbers are compared for exact equality, not approximal equality.
<div class="blankline"></div>
Different number types (unsigned, signed, and floating) will be compared by converting
them to a common type, in the same way that comparison of built-in D <span class="d_inlinecode donthyphenate notranslate">int</span>, <span class="d_inlinecode donthyphenate notranslate">uint</span> and
<span class="d_inlinecode donthyphenate notranslate">float</span> works.
<div class="blankline"></div>
Other than that, types must match exactly.
Empty arrays are not equal to empty objects, and booleans are never equal to integers.
</div>
<div class="keyval Returns"><span class="key keyReturns">Returns:</span> <div class="val valReturns">whether this <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> is equal to <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">rhs</code></span></div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.toHash"></span><div class="quickindex" id="quickindex.JSONValue.toHash"></div>pure nothrow @nogc @trusted hash_t <span class="def-anchor" id="toHash"></span><code class="ddoc_psymbol">toHash</code>() const;
<br></div></dt>
<dd><div class="summary">Calculate a numerical hash value for this value,
allowing <span class="d_inlinecode donthyphenate notranslate">JSONValue</span> to be used in associative arrays.</div><span class="dlang_runnable"></span><div class="keyval Examples"><span class="key keyExamples">Examples:</span> <div class="val valExamples"><pre class="d_code notranslate"><span class="d_keyword">assert</span>(JSONValue(10).opEquals(JSONValue(10.0)));
<span class="d_keyword">assert</span>(JSONValue(10) != (JSONValue(10.5)));
<span class="d_keyword">assert</span>(JSONValue(1) != JSONValue(<span class="d_keyword">true</span>));
<span class="d_keyword">assert</span>(JSONValue.emptyArray != JSONValue.emptyObject);
<span class="d_keyword">assert</span>(parseJSON(<span class="d_string">`{"a": 1, "b": 2}`</span>).opEquals(parseJSON(<span class="d_string">`{"b": 2, "a": 1}`</span>)));
</pre>
</div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opApply"></span><div class="quickindex" id="quickindex.JSONValue.opApply"></div>@system int <span class="def-anchor" id="opApply"></span><code class="ddoc_psymbol">opApply</code>(scope int delegate(size_t index, ref JSONValue) <code class="ddoc_param">dg</code>);
<br></div></dt>
<dd><div class="summary">Implements the foreach <span class="d_inlinecode donthyphenate notranslate"><span class="def-anchor" id="opApply"></span><code class="ddoc_psymbol">opApply</code></span> interface for json arrays.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.opApply.2"></span><div class="quickindex" id="quickindex.JSONValue.opApply.2"></div>@system int <span class="def-anchor" id="opApply"></span><code class="ddoc_psymbol">opApply</code>(scope int delegate(string key, ref JSONValue) <code class="ddoc_param">dg</code>);
<br></div></dt>
<dd><div class="summary">Implements the foreach <span class="d_inlinecode donthyphenate notranslate"><span class="def-anchor" id="opApply"></span><code class="ddoc_psymbol">opApply</code></span> interface for json objects.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.toString"></span><div class="quickindex" id="quickindex.JSONValue.toString"></div>@safe string <span class="def-anchor" id="toString"></span><code class="ddoc_psymbol">toString</code>(in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none) const;
<br></div></dt>
<dd><div class="summary">Implicitly calls <span class="d_inlinecode donthyphenate notranslate">toJSON</span> on this JSONValue.
</div><div class="description"><i>options</i> can be used to tweak the conversion behavior.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.toString.2"></span><div class="quickindex" id="quickindex.JSONValue.toString.2"></div>void <span class="def-anchor" id="toString"></span><code class="ddoc_psymbol">toString</code><span class="template_param_list" title="Template parameter list">(Out)</span>(Out <code class="ddoc_param">sink</code>, in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none) const;
<br></div></dt>
<dd>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.toPrettyString"></span><div class="quickindex" id="quickindex.JSONValue.toPrettyString"></div>@safe string <span class="def-anchor" id="toPrettyString"></span><code class="ddoc_psymbol">toPrettyString</code>(in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none) const;
<br></div></dt>
<dd><div class="summary">Implicitly calls <span class="d_inlinecode donthyphenate notranslate">toJSON</span> on this JSONValue, like <span class="d_inlinecode donthyphenate notranslate">toString</span>, but
also passes <i>true</i> as <i>pretty</i> argument.
</div><div class="description"><i>options</i> can be used to tweak the conversion behavior</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONValue.toPrettyString.2"></span><div class="quickindex" id="quickindex.JSONValue.toPrettyString.2"></div>void <span class="def-anchor" id="toPrettyString"></span><code class="ddoc_psymbol">toPrettyString</code><span class="template_param_list" title="Template parameter list">(Out)</span>(Out <code class="ddoc_param">sink</code>, in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none) const;
<br></div></dt>
<dd>
</dd>
</dl>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".parseJSON"></span><div class="quickindex" id="quickindex.parseJSON"></div>JSONValue <span class="def-anchor" id="parseJSON"></span><code class="ddoc_psymbol">parseJSON</code><span class="template_param_list" title="Template parameter list">(T)</span>(T <code class="ddoc_param">json</code>, int <code class="ddoc_param">maxDepth</code> = -1, JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none)<br><span class="constraint">if (isSomeFiniteCharInputRange!T)</span>;
<br></div></dt>
<dd><div class="summary">Parses a serialized string and returns a tree of JSON values.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><a href="#JSONException"><span class="d_inlinecode donthyphenate notranslate">JSONException</span></a> if string does not follow the JSON grammar or the depth exceeds the max depth,
<a href="#ConvException"><span class="d_inlinecode donthyphenate notranslate">ConvException</span></a> if a number in the input cannot be represented by a native D type.
</div></div>
<div class="keyval Parameters"><span class="key keyParameters">Parameters:</span> <div class="val valParameters"><table class="params"><tr class="param"><td class="param_id">T <code class="ddoc_param">json</code></td>
<td class="param_desc">json-formatted string to parse</td></tr>
<tr class="param"><td class="param_id">int <code class="ddoc_param">maxDepth</code></td>
<td class="param_desc">maximum depth of nesting allowed, -1 disables depth checking</td></tr>
<tr class="param"><td class="param_id">JSONOptions <code class="ddoc_param">options</code></td>
<td class="param_desc">enable decoding string representations of NaN/Inf as float values</td></tr>
</table></div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".parseJSON.2"></span><div class="quickindex" id="quickindex.parseJSON.2"></div>JSONValue <span class="def-anchor" id="parseJSON"></span><code class="ddoc_psymbol">parseJSON</code><span class="template_param_list" title="Template parameter list">(T)</span>(T <code class="ddoc_param">json</code>, JSONOptions <code class="ddoc_param">options</code>)<br><span class="constraint">if (isSomeFiniteCharInputRange!T)</span>;
<br></div></dt>
<dd><div class="summary">Parses a serialized string and returns a tree of JSON values.
</div><div class="keyval Throws"><span class="key keyThrows">Throws:</span> <div class="val valThrows"><a href="#JSONException"><span class="d_inlinecode donthyphenate notranslate">JSONException</span></a> if the depth exceeds the max depth.
</div></div>
<div class="keyval Parameters"><span class="key keyParameters">Parameters:</span> <div class="val valParameters"><table class="params"><tr class="param"><td class="param_id">T <code class="ddoc_param">json</code></td>
<td class="param_desc">json-formatted string to parse</td></tr>
<tr class="param"><td class="param_id">JSONOptions <code class="ddoc_param">options</code></td>
<td class="param_desc">enable decoding string representations of NaN/Inf as float values</td></tr>
</table></div></div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".toJSON"></span><div class="quickindex" id="quickindex.toJSON"></div>@safe string <span class="def-anchor" id="toJSON"></span><code class="ddoc_psymbol">toJSON</code>(ref const JSONValue <code class="ddoc_param">root</code>, in bool <code class="ddoc_param">pretty</code> = false, in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none);
<br></div></dt>
<dd><div class="summary">Takes a tree of JSON values and returns the serialized string.
</div><div class="description">Any Object types will be serialized in a key-sorted order.
<div class="blankline"></div>
If <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">pretty</code></span> is false no whitespaces are generated.
If <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">pretty</code></span> is true serialized string is formatted to be human-readable.
Set the <a href="#JSONOptions.specialFloatLiterals"><span class="d_inlinecode donthyphenate notranslate">JSONOptions.specialFloatLiterals</span></a> flag is set in <span class="d_inlinecode donthyphenate notranslate"><code class="ddoc_param">options</code></span> to encode NaN/Infinity as strings.</div>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".toJSON.2"></span><div class="quickindex" id="quickindex.toJSON.2"></div>void <span class="def-anchor" id="toJSON"></span><code class="ddoc_psymbol">toJSON</code><span class="template_param_list" title="Template parameter list">(Out)</span>(auto ref Out <code class="ddoc_param">json</code>, ref const JSONValue <code class="ddoc_param">root</code>, in bool <code class="ddoc_param">pretty</code> = false, in JSONOptions <code class="ddoc_param">options</code> = JSONOptions.none)<br><span class="constraint">if (isOutputRange!(Out, char))</span>;
<br></div></dt>
<dd>
</dd>
<dt class="d_decl"><div ><span class="def-anchor" id=".JSONException"></span><div class="quickindex" id="quickindex.JSONException"></div>class <span class="def-anchor" id="JSONException"></span><code class="ddoc_psymbol">JSONException</code>: <span class="ddoc_psuper_symbol">object.Exception</span>;
<br></div></dt>
<dd><div class="summary">Exception thrown on JSON errors</div>
</dd>
</dl>
<div class="smallprint" id="copyright">Copyright &copy; 1999-2026 by the <a href="../foundation_overview.html">D Language Foundation</a> | Page generated by
<a href="../spec/ddoc.html">Ddoc</a> on Mon Oct 26 00:38:03 2026
</div>
</div>
</div>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="../js/jquery-3.7.1.min.js">\x3C/script>');</script>
<script type="text/javascript" src="../js/dlang.js"></script>
<script type="text/javascript" src="../js/codemirror-compressed.js"></script>
<script type="text/javascript" src="../js/run.js"></script>
<script type="text/javascript" src="../js/run_examples.js"></script>
<script type="text/javascript" src="../js/listanchors.js"></script>
<script type="text/javascript" src="../js/show_contributors.js"></script>
<script type="text/javascript">jQuery(document).ready(listanchors);</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="Images/gtk-logo.ico" type="image/x-icon" />
<link rel="shortcut icon" href="Images/gtk-logo.ico" type="image/x-icon" />
<title>GtkD.org</title>
</head>
<body>
<div id="wrap">
<div id="header">
<div class="container">
<img id="logo" src="Images/Logo.png" alt="GtkD">
<ul id="menu">
<li class="selected"><a href="#">About</a></li>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="https://github.com/gtkd-developers/GtkD/">Development</a></li>
<li><a href="https://forum.gtkd.org">Support</a></li>
</ul>
</div>
</div>
<div id="content">
<div class="container">
<h1>Welcome to GtkD</h1>
<p>GtkD is a D binding and OO wrapper of GTK+, and is released on the LGPL license.</p>
<p>GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API.</p>
<h2>GtkD 3.10 is out! Download it now!</h2>
<p>what is new on GtkD:</p>
<ul>
<li>Wraps GTK+ 3.24 API</li>
<li>Wraps GStreamer 1.16 API</li>
<li><a href="changelog.html">Full change log</a></li>
</ul>
<h2>Latest Release: 3.10.0 (2021-11-11)</h2>
<p>Download the latest release now: <a href="https://gtkd.org/Downloads/sources/GtkD-3.10.0.zip">gtkD-3.10.0.zip</a></p>
<p><b>Linux Users:</b> be sure to have the latest 3.x GTK+ libraries installed!</p>
<p><b>Windows Users:</b> please use a GTK+ installer: <a href="https://gtkd.org/Downloads/runtime/gtk3-runtime_3.24.8_32bit.exe">version 3.24.8 (32 bits)</a> or <a href="https://gtkd.org/Downloads/runtime/gtk3-runtime_3.24.8_64bit.exe">version 3.24.8 (64 bits)</a>. (43MB)</p>
<p><b>Mac OS X Users:</b> use the new OS X native GTK+ installer (beta) from <a href="http://gtk-osx.sourceforge.net/">gtk-osx.sourceforge.net/</a>.<br>
See also <a href="https://github.com/gtkd-developers/GtkD/wiki/Mac-OS-X-Notes">Mac OS X Notes</a>.
</div>
</div>
</div>
<div id="footer">
<div class="container">
Copyright © 2021 The GtkD Team.
</div>
</div>
</body>
</html>
@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-2026 by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="D programming language">
<meta name="description" content="D Programming Language">
<title>Table of Contents - D Programming Language</title>
<link rel="stylesheet" href="../css/codemirror.css">
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/print.css" media="print">
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
</head>
<body id='Table of Contents' class='doc'>
<script type="text/javascript">document.body.className += ' have-javascript'</script>
<div id="top"><div class="helper"><div class="helper expand-container"> <div class="logo"><a href=".."><img id="logo" alt="D Logo" src="../images/dlogo.svg"></a></div>
<a href="../menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
<div id="cssmenu"><ul> <li><a href='https://tour.dlang.org'><span>Learn</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../documentation.html'><span>Documentation</span></a>
<ul class='expand-content'> <li><a href='../spec/spec.html'>Language Reference</a></li>
<li><a href='../phobos/index.html'>Library Reference</a></li>
<li><a href='../dmd.html'>Command-line Reference</a></li>
<li class="menu-divider"><a href='../comparison.html'>Feature Overview</a></li>
<li><a href='../articles.html'>Articles</a></li>
</ul></li>
<li><a href='../download.html'><span>Downloads</span></a></li>
<li><a href='https://code.dlang.org'><span>Packages</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../community.html'><span>Community</span></a>
<ul class='expand-content'> <li><a href='https://blog.dlang.org'>Blog</a></li>
<li><a href='../orgs-using-d.html'>Orgs using D</a></li>
<li><a href='https://twitter.com/search?q=%23dlang'>Twitter</a></li>
<li class="menu-divider"><a href='https://discord.gg/bMZk9Q4'>Discord (community-run)</a></li>
<li><a href='https://forum.dlang.org'>Forums</a></li>
<li><a href='irc://irc.libera.chat/d'>IRC</a></li>
<li><a href='https://wiki.dlang.org'>Wiki</a></li>
<li class="menu-divider"><a href='../bugstats.html'>Issues</a></li>
<li><a href='../contributing.html'>Contributing</a></li>
<li class="menu-divider"><a href='../foundation/contributors.html'>Contributors</a></li>
<li><a href='../foundation/index.html'>Foundation</a></li>
<li><a href='..//security.html'>Security Team</a></li>
<li class="menu-divider"><a href='https://store.dlang.org/'>Store</a></li>
<li><a href='../foundation/donate.html'>Donate</a></li>
<li><a href='../foundation/sponsors.html'>Sponsors</a></li>
</ul></li>
<li class='expand-container'><a class='expand-toggle' href='../resources.html'><span>Resources</span></a>
<ul class='expand-content'> <li><a href='https://tour.dlang.org'>Tour</a></li>
<li><a href='https://wiki.dlang.org/Books'>Books</a></li>
<li><a href='https://wiki.dlang.org/Tutorials'>Tutorials</a></li>
<li class="menu-divider"><a href='https://wiki.dlang.org/Development_tools'>Tools</a></li>
<li><a href='https://wiki.dlang.org/Editors'>Editors</a></li>
<li><a href='https://wiki.dlang.org/IDEs'>IDEs</a></li>
<li><a href='https://run.dlang.io'>run.dlang.io</a></li>
<li><a href='http://rainers.github.io/visuald/visuald/StartPage.html'>Visual D</a></li>
<li class="menu-divider"><a href='../acknowledgements.html'>Acknowledgments</a></li>
<li><a href='../dstyle.html'>D Style</a></li>
<li><a href='../spec/glossary.html'>Glossary</a></li>
<li><a href='../sitemap.html'>Sitemap</a></li>
</ul></li>
</ul></div>
<div class="search-container expand-container"> <a href="../search.html" class="expand-toggle" title="Search"><span>Search</span></a>
<div id="search-box"> <form method="get" action="https://google.com/search">
<input type="hidden" id="domains" name="domains" value="dlang.org">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
<span id="search-query"><input id="q" name="q" placeholder="Google Search"></span><span id="search-dropdown"><span class="helper"> <select id="sitesearch" name="sitesearch" size="1">
<option value="dlang.org">Entire Site</option>
<option selected value="dlang.org/spec">Language</option>
<option value="dlang.org/phobos">Library</option>
<option value="forum.dlang.org">Forums</option>
</select>
</span></span><span id="search-submit"><button type="submit"><i class="fa fa-search"></i><span>go</span></button></span>
</form>
</div>
</div>
</div></div></div>
<div class="container">
<div class="subnav-helper"></div> <div class="subnav"> <div class="head"><h2>Language Reference</h2> <p class="subnav-duplicate"><a href="../spec/spec.html">table of contents</a></p></div>
<ul> <li><a href=' ../spec/intro.html'>Introduction</a></li><li><a href=' ../spec/lex.html'>Lexical</a></li><li><a href=' ../spec/istring.html'>Interpolation Expression Sequence</a></li><li><a href=' ../spec/grammar.html'>Grammar</a></li><li><a href=' ../spec/module.html'>Modules</a></li><li><a href=' ../spec/declaration.html'>Declarations</a></li><li><a href=' ../spec/type.html'>Types</a></li><li><a href=' ../spec/property.html'>Properties</a></li><li><a href=' ../spec/attribute.html'>Attributes</a></li><li><a href=' ../spec/pragma.html'>Pragmas</a></li><li><a href=' ../spec/expression.html'>Expressions</a></li><li><a href=' ../spec/statement.html'>Statements</a></li><li><a href=' ../spec/arrays.html'>Arrays</a></li><li><a href=' ../spec/hash-map.html'>Associative Arrays</a></li><li><a href=' ../spec/struct.html'>Structs and Unions</a></li><li><a href=' ../spec/class.html'>Classes</a></li><li><a href=' ../spec/interface.html'>Interfaces</a></li><li><a href=' ../spec/enum.html'>Enums</a></li><li><a href=' ../spec/const3.html'>Type Qualifiers</a></li><li><a href=' ../spec/function.html'>Functions</a></li><li><a href=' ../spec/operatoroverloading.html'>Operator Overloading</a></li><li><a href=' ../spec/template.html'>Templates</a></li><li><a href=' ../spec/template-mixin.html'>Template Mixins</a></li><li><a href=' ../spec/contracts.html'>Contract Programming</a></li><li><a href=' ../spec/version.html'>Conditional Compilation</a></li><li><a href=' ../spec/traits.html'>Traits</a></li><li><a href=' ../spec/errors.html'>Error Handling</a></li><li><a href=' ../spec/unittest.html'>Unit Tests</a></li><li><a href=' ../spec/garbage.html'>Garbage Collection</a></li><li><a href=' ../spec/float.html'>Floating Point</a></li><li><a href=' ../spec/iasm.html'>D x86 Inline Assembler</a></li><li><a href=' ../spec/ddoc.html'>Embedded Documentation</a></li><li><a href=' ../spec/interfaceToC.html'>Interfacing to C</a></li><li><a href=' ../spec/cpp_interface.html'>Interfacing to C++</a></li><li><a href=' ../spec/objc_interface.html'>Interfacing to Objective-C</a></li><li><a href=' ../spec/portability.html'>Portability Guide</a></li><li><a href=' ../spec/entity.html'>Named Character Entities</a></li><li><a href=' ../spec/memory-safe-d.html'>Memory Safety</a></li><li><a href=' ../spec/abi.html'>Application Binary Interface</a></li><li><a href=' ../spec/simd.html'>Vector Extensions</a></li><li><a href=' ../spec/betterc.html'>Better C</a></li><li><a href=' ../spec/importc.html'>ImportC</a></li><li><a href=' ../spec/ob.html'>Live Functions</a></li><li><a href=' ../spec/windows.html'>Windows Programming</a></li><li><a href=' ../spec/glossary.html'>Glossary</a></li><li><a href=' ../spec/legacy.html'>Legacy Code</a></li><li><a href=' ../spec/editions.html'>Editions
</a></li>
</ul>
</div>
<div class="hyphenate" id="content">
<div id="tools"><div > <div class="tip smallprint"> <a href="https://github.com/dlang/dmd/issues/new?title=%5BTable of Contents%5D%20&amp;label=Severity:Enhancement">Report a bug</a>
<div > If you spot a problem with this page, click here to create a GitHub issue.
</div>
</div>
<div class="tip smallprint"> <a href="https://github.com/dlang/dmd/edit/master/spec/spec.dd">Improve this page</a>
<div > 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.
</div>
</div>
</div></div>
<h1>Table of Contents</h1>
<div class="blankline"></div>
<div class="blankline"></div>
<p>This is the specification for the D Programming Language.
For more information see <a href="https://dlang.org">dlang.org</a>.</p>
<div class="blankline"></div>
<p>This is also available as a
<a href="../dlangspec.mobi">Mobi ebook</a>.
</p>
<div class="blankline"></div>
<ul><li> <a href="intro.html">Introduction</a></li><li> <a href="lex.html">Lexical</a></li><li> <a href="istring.html">Interpolation Expression Sequence</a></li><li> <a href="grammar.html">Grammar</a></li><li> <a href="module.html">Modules</a></li><li> <a href="declaration.html">Declarations</a></li><li> <a href="type.html">Types</a></li><li> <a href="property.html">Properties</a></li><li> <a href="attribute.html">Attributes</a></li><li> <a href="pragma.html">Pragmas</a></li><li> <a href="expression.html">Expressions</a></li><li> <a href="statement.html">Statements</a></li><li> <a href="arrays.html">Arrays</a></li><li> <a href="hash-map.html">Associative Arrays</a></li><li> <a href="struct.html">Structs and Unions</a></li><li> <a href="class.html">Classes</a></li><li> <a href="interface.html">Interfaces</a></li><li> <a href="enum.html">Enums</a></li><li> <a href="const3.html">Type Qualifiers</a></li><li> <a href="function.html">Functions</a></li><li> <a href="operatoroverloading.html">Operator Overloading</a></li><li> <a href="template.html">Templates</a></li><li> <a href="template-mixin.html">Template Mixins</a></li><li> <a href="contracts.html">Contract Programming</a></li><li> <a href="version.html">Conditional Compilation</a></li><li> <a href="traits.html">Traits</a></li><li> <a href="errors.html">Error Handling</a></li><li> <a href="unittest.html">Unit Tests</a></li><li> <a href="garbage.html">Garbage Collection</a></li><li> <a href="float.html">Floating Point</a></li><li> <a href="iasm.html">D x86 Inline Assembler</a></li><li> <a href="ddoc.html">Embedded Documentation</a></li><li> <a href="interfaceToC.html">Interfacing to C</a></li><li> <a href="cpp_interface.html">Interfacing to C++</a></li><li> <a href="objc_interface.html">Interfacing to Objective-C</a></li><li> <a href="portability.html">Portability Guide</a></li><li> <a href="entity.html">Named Character Entities</a></li><li> <a href="memory-safe-d.html">Memory Safety</a></li><li> <a href="abi.html">Application Binary Interface</a></li><li> <a href="simd.html">Vector Extensions</a></li><li> <a href="betterc.html">Better C</a></li><li> <a href="importc.html">Import C</a></li><li> <a href="ob.html">Live Functions</a></li><li> <a href="windows.html">Windows Programming</a></li><li> <a href="glossary.html">Glossary</a></li><li> <a href="legacy.html">Legacy Code</a></li><li> <a href="editions.html">Editions</a>
</li></ul>
<div class="smallprint" id="copyright">Copyright &copy; 1999-2026 by the <a href="../foundation_overview.html">D Language Foundation</a> | Page generated by
<a href="../spec/ddoc.html">Ddoc</a> on Mon Oct 26 00:46:11 2026
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="../js/jquery-3.7.1.min.js">\x3C/script>');</script>
<script type="text/javascript" src="../js/dlang.js"></script>
<script type="text/javascript" src="../js/codemirror-compressed.js"></script>
<script type="text/javascript" src="../js/run.js"></script>
<script type="text/javascript" src="../js/listanchors.js"></script>
<script type="text/javascript">jQuery(document).ready(addVersionSelector);</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,239 @@
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-2026 by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="D programming language">
<meta name="description" content="D Programming Language">
<title>std.experimental.logger - D Programming Language</title>
<link rel="stylesheet" href="../css/codemirror.css">
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/print.css" media="print">
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
</head>
<body id='std.experimental.logger' class='std'>
<script type="text/javascript">document.body.className += ' have-javascript'</script>
<div id="top"><div class="helper"><div class="helper expand-container"> <div class="logo"><a href=".."><img id="logo" alt="D Logo" src="../images/dlogo.svg"></a></div>
<a href="../menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
<div id="cssmenu"><ul> <li><a href='https://tour.dlang.org'><span>Learn</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../documentation.html'><span>Documentation</span></a>
<ul class='expand-content'> <li><a href='../spec/spec.html'>Language Reference</a></li>
<li><a href='../phobos/index.html'>Library Reference</a></li>
<li><a href='../dmd.html'>Command-line Reference</a></li>
<li class="menu-divider"><a href='../comparison.html'>Feature Overview</a></li>
<li><a href='../articles.html'>Articles</a></li>
</ul></li>
<li><a href='../download.html'><span>Downloads</span></a></li>
<li><a href='https://code.dlang.org'><span>Packages</span></a></li>
<li class='expand-container'><a class='expand-toggle' href='../community.html'><span>Community</span></a>
<ul class='expand-content'> <li><a href='https://blog.dlang.org'>Blog</a></li>
<li><a href='../orgs-using-d.html'>Orgs using D</a></li>
<li><a href='https://twitter.com/search?q=%23dlang'>Twitter</a></li>
<li class="menu-divider"><a href='https://discord.gg/bMZk9Q4'>Discord (community-run)</a></li>
<li><a href='https://forum.dlang.org'>Forums</a></li>
<li><a href='irc://irc.libera.chat/d'>IRC</a></li>
<li><a href='https://wiki.dlang.org'>Wiki</a></li>
<li class="menu-divider"><a href='../bugstats.html'>Issues</a></li>
<li><a href='../contributing.html'>Contributing</a></li>
<li class="menu-divider"><a href='../foundation/contributors.html'>Contributors</a></li>
<li><a href='../foundation/index.html'>Foundation</a></li>
<li><a href='..//security.html'>Security Team</a></li>
<li class="menu-divider"><a href='https://store.dlang.org/'>Store</a></li>
<li><a href='../foundation/donate.html'>Donate</a></li>
<li><a href='../foundation/sponsors.html'>Sponsors</a></li>
</ul></li>
<li class='expand-container'><a class='expand-toggle' href='../resources.html'><span>Resources</span></a>
<ul class='expand-content'> <li><a href='https://tour.dlang.org'>Tour</a></li>
<li><a href='https://wiki.dlang.org/Books'>Books</a></li>
<li><a href='https://wiki.dlang.org/Tutorials'>Tutorials</a></li>
<li class="menu-divider"><a href='https://wiki.dlang.org/Development_tools'>Tools</a></li>
<li><a href='https://wiki.dlang.org/Editors'>Editors</a></li>
<li><a href='https://wiki.dlang.org/IDEs'>IDEs</a></li>
<li><a href='https://run.dlang.io'>run.dlang.io</a></li>
<li><a href='http://rainers.github.io/visuald/visuald/StartPage.html'>Visual D</a></li>
<li class="menu-divider"><a href='../acknowledgements.html'>Acknowledgments</a></li>
<li><a href='../dstyle.html'>D Style</a></li>
<li><a href='../spec/glossary.html'>Glossary</a></li>
<li><a href='../sitemap.html'>Sitemap</a></li>
</ul></li>
</ul></div>
<div class="search-container expand-container"> <a href="../search.html" class="expand-toggle" title="Search"><span>Search</span></a>
<div id="search-box"> <form method="get" action="https://google.com/search">
<input type="hidden" id="domains" name="domains" value="dlang.org">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
<span id="search-query"><input id="q" name="q" placeholder="Google Search"></span><span id="search-dropdown"><span class="helper"> <select id="sitesearch" name="sitesearch" size="1">
<option value="dlang.org">Entire Site</option>
<option value="dlang.org/spec">Language</option>
<option selected value="dlang.org/phobos">Library</option>
<option value="forum.dlang.org">Forums</option>
</select>
</span></span><span id="search-submit"><button type="submit"><i class="fa fa-search"></i><span>go</span></button></span>
</form>
</div>
</div>
</div></div></div>
<div class="container">
<div class="subnav-helper"></div> <div class="subnav"> <div class="head"> <h2>Library Reference</h2>
<p><span class="smallprint">version 2.113.0 <span class="separator"><br></span>
</span>
</p>
<p><a href="index.html">overview</a></p>
</div>
<ul>
<li><a href='object.html'><span><em class="tt">object</em></span></a></li>
<li class='expand-container modlist-submenu-std'><a class='expand-toggle' href='#'><span><em class="tt">std</em></span></a>
<ul><li> <a href="std_algorithm.html" title="std.algorithm"><span class="d_inlinecode donthyphenate notranslate">algorithm</span></a><ul><li> <a href="std_algorithm_comparison.html" title="std.algorithm.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="std_algorithm_iteration.html" title="std.algorithm.iteration"><span class="d_inlinecode donthyphenate notranslate">iteration</span></a></li><li> <a href="std_algorithm_mutation.html" title="std.algorithm.mutation"><span class="d_inlinecode donthyphenate notranslate">mutation</span></a></li><li> <a href="std_algorithm_searching.html" title="std.algorithm.searching"><span class="d_inlinecode donthyphenate notranslate">searching</span></a></li><li> <a href="std_algorithm_setops.html" title="std.algorithm.setops"><span class="d_inlinecode donthyphenate notranslate">setops</span></a></li><li> <a href="std_algorithm_sorting.html" title="std.algorithm.sorting"><span class="d_inlinecode donthyphenate notranslate">sorting</span></a>
</li></ul></li><li> <a href="std_array.html" title="std.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_ascii.html" title="std.ascii"><span class="d_inlinecode donthyphenate notranslate">ascii</span></a></li><li> <a href="std_base64.html" title="std.base64"><span class="d_inlinecode donthyphenate notranslate">base64</span></a></li><li> <a href="std_bigint.html" title="std.bigint"><span class="d_inlinecode donthyphenate notranslate">bigint</span></a></li><li> <a href="std_bitmanip.html" title="std.bitmanip"><span class="d_inlinecode donthyphenate notranslate">bitmanip</span></a></li><li> <a href="std_checkedint.html" title="std.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_compiler.html" title="std.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="std_complex.html" title="std.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="std_concurrency.html" title="std.concurrency"><span class="d_inlinecode donthyphenate notranslate">concurrency</span></a></li><li> <a href="std_container.html" title="std.container"><span class="d_inlinecode donthyphenate notranslate">container</span></a><ul><li> <a href="std_container_array.html" title="std.container.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="std_container_binaryheap.html" title="std.container.binaryheap"><span class="d_inlinecode donthyphenate notranslate">binaryheap</span></a></li><li> <a href="std_container_dlist.html" title="std.container.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="std_container_rbtree.html" title="std.container.rbtree"><span class="d_inlinecode donthyphenate notranslate">rbtree</span></a></li><li> <a href="std_container_slist.html" title="std.container.slist"><span class="d_inlinecode donthyphenate notranslate">slist</span></a></li><li> <a href="std_container_util.html" title="std.container.util"><span class="d_inlinecode donthyphenate notranslate">util</span></a>
</li></ul></li><li> <a href="std_conv.html" title="std.conv"><span class="d_inlinecode donthyphenate notranslate">conv</span></a></li><li> <a href="std_csv.html" title="std.csv"><span class="d_inlinecode donthyphenate notranslate">csv</span></a></li><li> <a href="std_datetime.html" title="std.datetime"><span class="d_inlinecode donthyphenate notranslate">datetime</span></a><ul><li> <a href="std_datetime_date.html" title="std.datetime.date"><span class="d_inlinecode donthyphenate notranslate">date</span></a></li><li> <a href="std_datetime_interval.html" title="std.datetime.interval"><span class="d_inlinecode donthyphenate notranslate">interval</span></a></li><li> <a href="std_datetime_stopwatch.html" title="std.datetime.stopwatch"><span class="d_inlinecode donthyphenate notranslate">stopwatch</span></a></li><li> <a href="std_datetime_systime.html" title="std.datetime.systime"><span class="d_inlinecode donthyphenate notranslate">systime</span></a></li><li> <a href="std_datetime_timezone.html" title="std.datetime.timezone"><span class="d_inlinecode donthyphenate notranslate">timezone</span></a>
</li></ul></li><li> <a href="std_demangle.html" title="std.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="std_digest.html" title="std.digest"><span class="d_inlinecode donthyphenate notranslate">digest</span></a><ul><li> <a href="std_digest_crc.html" title="std.digest.crc"><span class="d_inlinecode donthyphenate notranslate">crc</span></a></li><li> <a href="std_digest_hmac.html" title="std.digest.hmac"><span class="d_inlinecode donthyphenate notranslate">hmac</span></a></li><li> <a href="std_digest_md.html" title="std.digest.md"><span class="d_inlinecode donthyphenate notranslate">md</span></a></li><li> <a href="std_digest_murmurhash.html" title="std.digest.murmurhash"><span class="d_inlinecode donthyphenate notranslate">murmurhash</span></a></li><li> <a href="std_digest_ripemd.html" title="std.digest.ripemd"><span class="d_inlinecode donthyphenate notranslate">ripemd</span></a></li><li> <a href="std_digest_sha.html" title="std.digest.sha"><span class="d_inlinecode donthyphenate notranslate">sha</span></a>
</li></ul></li><li> <a href="std_encoding.html" title="std.encoding"><span class="d_inlinecode donthyphenate notranslate">encoding</span></a></li><li> <a href="std_exception.html" title="std.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">experimental</span></h7><ul><li> <a href="std_experimental_allocator.html" title="std.experimental.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a><ul><li> <a href="std_experimental_allocator_building_blocks.html" title="std.experimental.allocator.building_blocks"><span class="d_inlinecode donthyphenate notranslate">building_blocks</span></a><ul><li> <a href="std_experimental_allocator_building_blocks_affix_allocator.html" title="std.experimental.allocator.building_blocks.affix_allocator"><span class="d_inlinecode donthyphenate notranslate">affix_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_aligned_block_list.html" title="std.experimental.allocator.building_blocks.aligned_block_list"><span class="d_inlinecode donthyphenate notranslate">aligned_block_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_allocator_list.html" title="std.experimental.allocator.building_blocks.allocator_list"><span class="d_inlinecode donthyphenate notranslate">allocator_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_ascending_page_allocator.html" title="std.experimental.allocator.building_blocks.ascending_page_allocator"><span class="d_inlinecode donthyphenate notranslate">ascending_page_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bitmapped_block.html" title="std.experimental.allocator.building_blocks.bitmapped_block"><span class="d_inlinecode donthyphenate notranslate">bitmapped_block</span></a></li><li> <a href="std_experimental_allocator_building_blocks_bucketizer.html" title="std.experimental.allocator.building_blocks.bucketizer"><span class="d_inlinecode donthyphenate notranslate">bucketizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_fallback_allocator.html" title="std.experimental.allocator.building_blocks.fallback_allocator"><span class="d_inlinecode donthyphenate notranslate">fallback_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_list.html" title="std.experimental.allocator.building_blocks.free_list"><span class="d_inlinecode donthyphenate notranslate">free_list</span></a></li><li> <a href="std_experimental_allocator_building_blocks_free_tree.html" title="std.experimental.allocator.building_blocks.free_tree"><span class="d_inlinecode donthyphenate notranslate">free_tree</span></a></li><li> <a href="std_experimental_allocator_building_blocks_kernighan_ritchie.html" title="std.experimental.allocator.building_blocks.kernighan_ritchie"><span class="d_inlinecode donthyphenate notranslate">kernighan_ritchie</span></a></li><li> <a href="std_experimental_allocator_building_blocks_null_allocator.html" title="std.experimental.allocator.building_blocks.null_allocator"><span class="d_inlinecode donthyphenate notranslate">null_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_quantizer.html" title="std.experimental.allocator.building_blocks.quantizer"><span class="d_inlinecode donthyphenate notranslate">quantizer</span></a></li><li> <a href="std_experimental_allocator_building_blocks_region.html" title="std.experimental.allocator.building_blocks.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="std_experimental_allocator_building_blocks_scoped_allocator.html" title="std.experimental.allocator.building_blocks.scoped_allocator"><span class="d_inlinecode donthyphenate notranslate">scoped_allocator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_segregator.html" title="std.experimental.allocator.building_blocks.segregator"><span class="d_inlinecode donthyphenate notranslate">segregator</span></a></li><li> <a href="std_experimental_allocator_building_blocks_stats_collector.html" title="std.experimental.allocator.building_blocks.stats_collector"><span class="d_inlinecode donthyphenate notranslate">stats_collector</span></a>
</li></ul></li><li> <a href="std_experimental_allocator_common.html" title="std.experimental.allocator.common"><span class="d_inlinecode donthyphenate notranslate">common</span></a></li><li> <a href="std_experimental_allocator_gc_allocator.html" title="std.experimental.allocator.gc_allocator"><span class="d_inlinecode donthyphenate notranslate">gc_allocator</span></a></li><li> <a href="std_experimental_allocator_mallocator.html" title="std.experimental.allocator.mallocator"><span class="d_inlinecode donthyphenate notranslate">mallocator</span></a></li><li> <a href="std_experimental_allocator_mmap_allocator.html" title="std.experimental.allocator.mmap_allocator"><span class="d_inlinecode donthyphenate notranslate">mmap_allocator</span></a></li><li> <a href="std_experimental_allocator_showcase.html" title="std.experimental.allocator.showcase"><span class="d_inlinecode donthyphenate notranslate">showcase</span></a></li><li> <a href="std_experimental_allocator_typed.html" title="std.experimental.allocator.typed"><span class="d_inlinecode donthyphenate notranslate">typed</span></a>
</li></ul></li><li> <a href="std_experimental_checkedint.html" title="std.experimental.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="std_experimental_logger.html" title="std.experimental.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_experimental_logger_core.html" title="std.experimental.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_experimental_logger_filelogger.html" title="std.experimental.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_experimental_logger_multilogger.html" title="std.experimental.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_experimental_logger_nulllogger.html" title="std.experimental.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul>
</li></ul></li><li> <a href="std_file.html" title="std.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="std_format.html" title="std.format"><span class="d_inlinecode donthyphenate notranslate">format</span></a><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <a href="std_format_internal_floats.html" title="std.format.internal.floats"><span class="d_inlinecode donthyphenate notranslate">floats</span></a></li><li> <a href="std_format_internal_read.html" title="std.format.internal.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_internal_write.html" title="std.format.internal.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_format_read.html" title="std.format.read"><span class="d_inlinecode donthyphenate notranslate">read</span></a></li><li> <a href="std_format_spec.html" title="std.format.spec"><span class="d_inlinecode donthyphenate notranslate">spec</span></a></li><li> <a href="std_format_write.html" title="std.format.write"><span class="d_inlinecode donthyphenate notranslate">write</span></a>
</li></ul></li><li> <a href="std_functional.html" title="std.functional"><span class="d_inlinecode donthyphenate notranslate">functional</span></a></li><li> <a href="std_getopt.html" title="std.getopt"><span class="d_inlinecode donthyphenate notranslate">getopt</span></a></li><li> <a href="std_int128.html" title="std.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="std_json.html" title="std.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="std_logger.html" title="std.logger"><span class="d_inlinecode donthyphenate notranslate">logger</span></a><ul><li> <a href="std_logger_core.html" title="std.logger.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="std_logger_filelogger.html" title="std.logger.filelogger"><span class="d_inlinecode donthyphenate notranslate">filelogger</span></a></li><li> <a href="std_logger_multilogger.html" title="std.logger.multilogger"><span class="d_inlinecode donthyphenate notranslate">multilogger</span></a></li><li> <a href="std_logger_nulllogger.html" title="std.logger.nulllogger"><span class="d_inlinecode donthyphenate notranslate">nulllogger</span></a>
</li></ul></li><li> <a href="std_math.html" title="std.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a><ul><li> <a href="std_math_algebraic.html" title="std.math.algebraic"><span class="d_inlinecode donthyphenate notranslate">algebraic</span></a></li><li> <a href="std_math_constants.html" title="std.math.constants"><span class="d_inlinecode donthyphenate notranslate">constants</span></a></li><li> <a href="std_math_exponential.html" title="std.math.exponential"><span class="d_inlinecode donthyphenate notranslate">exponential</span></a></li><li> <a href="std_math_hardware.html" title="std.math.hardware"><span class="d_inlinecode donthyphenate notranslate">hardware</span></a></li><li> <a href="std_math_operations.html" title="std.math.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="std_math_remainder.html" title="std.math.remainder"><span class="d_inlinecode donthyphenate notranslate">remainder</span></a></li><li> <a href="std_math_rounding.html" title="std.math.rounding"><span class="d_inlinecode donthyphenate notranslate">rounding</span></a></li><li> <a href="std_math_traits.html" title="std.math.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_math_trigonometry.html" title="std.math.trigonometry"><span class="d_inlinecode donthyphenate notranslate">trigonometry</span></a>
</li></ul></li><li> <a href="std_mathspecial.html" title="std.mathspecial"><span class="d_inlinecode donthyphenate notranslate">mathspecial</span></a></li><li> <a href="std_meta.html" title="std.meta"><span class="d_inlinecode donthyphenate notranslate">meta</span></a></li><li> <a href="std_mmfile.html" title="std.mmfile"><span class="d_inlinecode donthyphenate notranslate">mmfile</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">net</span></h7><ul><li> <a href="std_net_curl.html" title="std.net.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="std_net_isemail.html" title="std.net.isemail"><span class="d_inlinecode donthyphenate notranslate">isemail</span></a>
</li></ul></li><li> <a href="std_numeric.html" title="std.numeric"><span class="d_inlinecode donthyphenate notranslate">numeric</span></a></li><li> <a href="std_outbuffer.html" title="std.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="std_parallelism.html" title="std.parallelism"><span class="d_inlinecode donthyphenate notranslate">parallelism</span></a></li><li> <a href="std_path.html" title="std.path"><span class="d_inlinecode donthyphenate notranslate">path</span></a></li><li> <a href="std_process.html" title="std.process"><span class="d_inlinecode donthyphenate notranslate">process</span></a></li><li> <a href="std_random.html" title="std.random"><span class="d_inlinecode donthyphenate notranslate">random</span></a></li><li> <a href="std_range.html" title="std.range"><span class="d_inlinecode donthyphenate notranslate">range</span></a><ul><li> <a href="std_range_interfaces.html" title="std.range.interfaces"><span class="d_inlinecode donthyphenate notranslate">interfaces</span></a></li><li> <a href="std_range_primitives.html" title="std.range.primitives"><span class="d_inlinecode donthyphenate notranslate">primitives</span></a>
</li></ul></li><li> <a href="std_regex.html" title="std.regex"><span class="d_inlinecode donthyphenate notranslate">regex</span></a></li><li> <a href="std_signals.html" title="std.signals"><span class="d_inlinecode donthyphenate notranslate">signals</span></a></li><li> <a href="std_socket.html" title="std.socket"><span class="d_inlinecode donthyphenate notranslate">socket</span></a></li><li> <a href="std_stdint.html" title="std.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="std_stdio.html" title="std.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="std_string.html" title="std.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="std_sumtype.html" title="std.sumtype"><span class="d_inlinecode donthyphenate notranslate">sumtype</span></a></li><li> <a href="std_system.html" title="std.system"><span class="d_inlinecode donthyphenate notranslate">system</span></a></li><li> <a href="std_traits.html" title="std.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="std_typecons.html" title="std.typecons"><span class="d_inlinecode donthyphenate notranslate">typecons</span></a></li><li> <a href="std_uni.html" title="std.uni"><span class="d_inlinecode donthyphenate notranslate">uni</span></a></li><li> <a href="std_uri.html" title="std.uri"><span class="d_inlinecode donthyphenate notranslate">uri</span></a></li><li> <a href="std_utf.html" title="std.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a></li><li> <a href="std_uuid.html" title="std.uuid"><span class="d_inlinecode donthyphenate notranslate">uuid</span></a></li><li> <a href="std_variant.html" title="std.variant"><span class="d_inlinecode donthyphenate notranslate">variant</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="std_windows_charset.html" title="std.windows.charset"><span class="d_inlinecode donthyphenate notranslate">charset</span></a></li><li> <a href="std_windows_syserror.html" title="std.windows.syserror"><span class="d_inlinecode donthyphenate notranslate">syserror</span></a>
</li></ul></li><li> <a href="std_zip.html" title="std.zip"><span class="d_inlinecode donthyphenate notranslate">zip</span></a></li><li> <a href="std_zlib.html" title="std.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-etc'><a class='expand-toggle' href='#'><span><em class="tt">etc</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">c</span></h7><ul><li> <a href="etc_c_curl.html" title="etc.c.curl"><span class="d_inlinecode donthyphenate notranslate">curl</span></a></li><li> <a href="etc_c_odbc.html" title="etc.c.odbc"><span class="d_inlinecode donthyphenate notranslate">odbc</span></a><ul><li> <a href="etc_c_odbc_odbc32.html" title="etc.c.odbc.odbc32"><span class="d_inlinecode donthyphenate notranslate">odbc32</span></a></li><li> <a href="etc_c_odbc_odbc64.html" title="etc.c.odbc.odbc64"><span class="d_inlinecode donthyphenate notranslate">odbc64</span></a></li><li> <a href="etc_c_odbc_sql.html" title="etc.c.odbc.sql"><span class="d_inlinecode donthyphenate notranslate">sql</span></a></li><li> <a href="etc_c_odbc_sqlext.html" title="etc.c.odbc.sqlext"><span class="d_inlinecode donthyphenate notranslate">sqlext</span></a></li><li> <a href="etc_c_odbc_sqltypes.html" title="etc.c.odbc.sqltypes"><span class="d_inlinecode donthyphenate notranslate">sqltypes</span></a></li><li> <a href="etc_c_odbc_sqlucode.html" title="etc.c.odbc.sqlucode"><span class="d_inlinecode donthyphenate notranslate">sqlucode</span></a>
</li></ul></li><li> <a href="etc_c_sqlite3.html" title="etc.c.sqlite3"><span class="d_inlinecode donthyphenate notranslate">sqlite3</span></a></li><li> <a href="etc_c_zlib.html" title="etc.c.zlib"><span class="d_inlinecode donthyphenate notranslate">zlib</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="etc_linux_memoryerror.html" title="etc.linux.memoryerror"><span class="d_inlinecode donthyphenate notranslate">memoryerror</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">valgrind</span></h7><ul><li> <a href="etc_valgrind_valgrind.html" title="etc.valgrind.valgrind"><span class="d_inlinecode donthyphenate notranslate">valgrind</span></a>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <a href="core_atomic.html" title="core.atomic"><span class="d_inlinecode donthyphenate notranslate">atomic</span></a></li><li> <a href="core_attribute.html" title="core.attribute"><span class="d_inlinecode donthyphenate notranslate">attribute</span></a></li><li> <a href="core_bitop.html" title="core.bitop"><span class="d_inlinecode donthyphenate notranslate">bitop</span></a></li><li> <a href="core_builtins.html" title="core.builtins"><span class="d_inlinecode donthyphenate notranslate">builtins</span></a></li><li> <a href="core_checkedint.html" title="core.checkedint"><span class="d_inlinecode donthyphenate notranslate">checkedint</span></a></li><li> <a href="core_cpuid.html" title="core.cpuid"><span class="d_inlinecode donthyphenate notranslate">cpuid</span></a></li><li> <a href="core_demangle.html" title="core.demangle"><span class="d_inlinecode donthyphenate notranslate">demangle</span></a></li><li> <a href="core_exception.html" title="core.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_factory.html" title="core.factory"><span class="d_inlinecode donthyphenate notranslate">factory</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">gc</span></h7><ul><li> <a href="core_gc_config.html" title="core.gc.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_gc_gcinterface.html" title="core.gc.gcinterface"><span class="d_inlinecode donthyphenate notranslate">gcinterface</span></a></li><li> <a href="core_gc_registry.html" title="core.gc.registry"><span class="d_inlinecode donthyphenate notranslate">registry</span></a>
</li></ul></li><li> <a href="core_int128.html" title="core.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="core_interpolation.html" title="core.interpolation"><span class="d_inlinecode donthyphenate notranslate">interpolation</span></a></li><li> <a href="core_lifetime.html" title="core.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="core_math.html" title="core.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_memory.html" title="core.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_runtime.html" title="core.runtime"><span class="d_inlinecode donthyphenate notranslate">runtime</span></a></li><li> <a href="core_simd.html" title="core.simd"><span class="d_inlinecode donthyphenate notranslate">simd</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_stdc_assert_.html" title="core.stdc.assert_"><span class="d_inlinecode donthyphenate notranslate">assert_</span></a></li><li> <a href="core_stdc_complex.html" title="core.stdc.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="core_stdc_ctype.html" title="core.stdc.ctype"><span class="d_inlinecode donthyphenate notranslate">ctype</span></a></li><li> <a href="core_stdc_errno.html" title="core.stdc.errno"><span class="d_inlinecode donthyphenate notranslate">errno</span></a></li><li> <a href="core_stdc_fenv.html" title="core.stdc.fenv"><span class="d_inlinecode donthyphenate notranslate">fenv</span></a></li><li> <a href="core_stdc_float_.html" title="core.stdc.float_"><span class="d_inlinecode donthyphenate notranslate">float_</span></a></li><li> <a href="core_stdc_inttypes.html" title="core.stdc.inttypes"><span class="d_inlinecode donthyphenate notranslate">inttypes</span></a></li><li> <a href="core_stdc_limits.html" title="core.stdc.limits"><span class="d_inlinecode donthyphenate notranslate">limits</span></a></li><li> <a href="core_stdc_locale.html" title="core.stdc.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_stdc_math.html" title="core.stdc.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a></li><li> <a href="core_stdc_signal.html" title="core.stdc.signal"><span class="d_inlinecode donthyphenate notranslate">signal</span></a></li><li> <a href="core_stdc_stdarg.html" title="core.stdc.stdarg"><span class="d_inlinecode donthyphenate notranslate">stdarg</span></a></li><li> <a href="core_stdc_stdatomic.html" title="core.stdc.stdatomic"><span class="d_inlinecode donthyphenate notranslate">stdatomic</span></a></li><li> <a href="core_stdc_stddef.html" title="core.stdc.stddef"><span class="d_inlinecode donthyphenate notranslate">stddef</span></a></li><li> <a href="core_stdc_stdint.html" title="core.stdc.stdint"><span class="d_inlinecode donthyphenate notranslate">stdint</span></a></li><li> <a href="core_stdc_stdio.html" title="core.stdc.stdio"><span class="d_inlinecode donthyphenate notranslate">stdio</span></a></li><li> <a href="core_stdc_stdlib.html" title="core.stdc.stdlib"><span class="d_inlinecode donthyphenate notranslate">stdlib</span></a></li><li> <a href="core_stdc_string.html" title="core.stdc.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdc_tgmath.html" title="core.stdc.tgmath"><span class="d_inlinecode donthyphenate notranslate">tgmath</span></a></li><li> <a href="core_stdc_time.html" title="core.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_stdc_wchar_.html" title="core.stdc.wchar_"><span class="d_inlinecode donthyphenate notranslate">wchar_</span></a></li><li> <a href="core_stdc_wctype.html" title="core.stdc.wctype"><span class="d_inlinecode donthyphenate notranslate">wctype</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdcpp</span></h7><ul><li> <a href="core_stdcpp_allocator.html" title="core.stdcpp.allocator"><span class="d_inlinecode donthyphenate notranslate">allocator</span></a></li><li> <a href="core_stdcpp_array.html" title="core.stdcpp.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_stdcpp_exception.html" title="core.stdcpp.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_stdcpp_memory.html" title="core.stdcpp.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="core_stdcpp_new_.html" title="core.stdcpp.new_"><span class="d_inlinecode donthyphenate notranslate">new_</span></a></li><li> <a href="core_stdcpp_string.html" title="core.stdcpp.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_stdcpp_string_view.html" title="core.stdcpp.string_view"><span class="d_inlinecode donthyphenate notranslate">string_view</span></a></li><li> <a href="core_stdcpp_type_traits.html" title="core.stdcpp.type_traits"><span class="d_inlinecode donthyphenate notranslate">type_traits</span></a></li><li> <a href="core_stdcpp_typeinfo.html" title="core.stdcpp.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="core_stdcpp_utility.html" title="core.stdcpp.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a></li><li> <a href="core_stdcpp_vector.html" title="core.stdcpp.vector"><span class="d_inlinecode donthyphenate notranslate">vector</span></a></li><li> <a href="core_stdcpp_xutility.html" title="core.stdcpp.xutility"><span class="d_inlinecode donthyphenate notranslate">xutility</span></a>
</li></ul></li><li> <a href="core_sync.html" title="core.sync"><span class="d_inlinecode donthyphenate notranslate">sync</span></a><ul><li> <a href="core_sync_barrier.html" title="core.sync.barrier"><span class="d_inlinecode donthyphenate notranslate">barrier</span></a></li><li> <a href="core_sync_condition.html" title="core.sync.condition"><span class="d_inlinecode donthyphenate notranslate">condition</span></a></li><li> <a href="core_sync_config.html" title="core.sync.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="core_sync_event.html" title="core.sync.event"><span class="d_inlinecode donthyphenate notranslate">event</span></a></li><li> <a href="core_sync_exception.html" title="core.sync.exception"><span class="d_inlinecode donthyphenate notranslate">exception</span></a></li><li> <a href="core_sync_mutex.html" title="core.sync.mutex"><span class="d_inlinecode donthyphenate notranslate">mutex</span></a></li><li> <a href="core_sync_rwmutex.html" title="core.sync.rwmutex"><span class="d_inlinecode donthyphenate notranslate">rwmutex</span></a></li><li> <a href="core_sync_semaphore.html" title="core.sync.semaphore"><span class="d_inlinecode donthyphenate notranslate">semaphore</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">darwin</span></h7><ul><li> <a href="core_sys_darwin_crt_externs.html" title="core.sys.darwin.crt_externs"><span class="d_inlinecode donthyphenate notranslate">crt_externs</span></a></li><li> <a href="core_sys_darwin_ifaddrs.html" title="core.sys.darwin.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">mach</span></h7><ul><li> <a href="core_sys_darwin_mach_getsect.html" title="core.sys.darwin.mach.getsect"><span class="d_inlinecode donthyphenate notranslate">getsect</span></a></li><li> <a href="core_sys_darwin_mach_loader.html" title="core.sys.darwin.mach.loader"><span class="d_inlinecode donthyphenate notranslate">loader</span></a></li><li> <a href="core_sys_darwin_mach_nlist.html" title="core.sys.darwin.mach.nlist"><span class="d_inlinecode donthyphenate notranslate">nlist</span></a></li><li> <a href="core_sys_darwin_mach_stab.html" title="core.sys.darwin.mach.stab"><span class="d_inlinecode donthyphenate notranslate">stab</span></a></li><li> <a href="core_sys_darwin_mach_thread_act.html" title="core.sys.darwin.mach.thread_act"><span class="d_inlinecode donthyphenate notranslate">thread_act</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_darwin_sys_sysctl.html" title="core.sys.darwin.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dragonflybsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_dragonflybsd_sys_sysctl.html" title="core.sys.dragonflybsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">freebsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_freebsd_sys_sysctl.html" title="core.sys.freebsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">linux</span></h7><ul><li> <a href="core_sys_linux_epoll.html" title="core.sys.linux.epoll"><span class="d_inlinecode donthyphenate notranslate">epoll</span></a></li><li> <a href="core_sys_linux_fcntl.html" title="core.sys.linux.fcntl"><span class="d_inlinecode donthyphenate notranslate">fcntl</span></a></li><li> <a href="core_sys_linux_fs.html" title="core.sys.linux.fs"><span class="d_inlinecode donthyphenate notranslate">fs</span></a></li><li> <a href="core_sys_linux_ifaddrs.html" title="core.sys.linux.ifaddrs"><span class="d_inlinecode donthyphenate notranslate">ifaddrs</span></a></li><li> <a href="core_sys_linux_io_uring.html" title="core.sys.linux.io_uring"><span class="d_inlinecode donthyphenate notranslate">io_uring</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netinet</span></h7><ul><li> <a href="core_sys_linux_netinet_tcp.html" title="core.sys.linux.netinet.tcp"><span class="d_inlinecode donthyphenate notranslate">tcp</span></a>
</li></ul></li><li> <a href="core_sys_linux_perf_event.html" title="core.sys.linux.perf_event"><span class="d_inlinecode donthyphenate notranslate">perf_event</span></a></li><li> <a href="core_sys_linux_sched.html" title="core.sys.linux.sched"><span class="d_inlinecode donthyphenate notranslate">sched</span></a></li><li> <a href="core_sys_linux_string.html" title="core.sys.linux.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_linux_sys_eventfd.html" title="core.sys.linux.sys.eventfd"><span class="d_inlinecode donthyphenate notranslate">eventfd</span></a></li><li> <a href="core_sys_linux_sys_file.html" title="core.sys.linux.sys.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a>
</li></ul></li><li> <a href="core_sys_linux_unistd.html" title="core.sys.linux.unistd"><span class="d_inlinecode donthyphenate notranslate">unistd</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">netbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_netbsd_sys_sysctl.html" title="core.sys.netbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">openbsd</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_openbsd_sys_sysctl.html" title="core.sys.openbsd.sys.sysctl"><span class="d_inlinecode donthyphenate notranslate">sysctl</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">posix</span></h7><ul><li> <a href="core_sys_posix_iconv.html" title="core.sys.posix.iconv"><span class="d_inlinecode donthyphenate notranslate">iconv</span></a></li><li> <a href="core_sys_posix_locale.html" title="core.sys.posix.locale"><span class="d_inlinecode donthyphenate notranslate">locale</span></a></li><li> <a href="core_sys_posix_mqueue.html" title="core.sys.posix.mqueue"><span class="d_inlinecode donthyphenate notranslate">mqueue</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_posix_stdc_time.html" title="core.sys.posix.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_posix_string.html" title="core.sys.posix.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="core_sys_posix_strings.html" title="core.sys.posix.strings"><span class="d_inlinecode donthyphenate notranslate">strings</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">sys</span></h7><ul><li> <a href="core_sys_posix_sys_ioctl.html" title="core.sys.posix.sys.ioctl"><span class="d_inlinecode donthyphenate notranslate">ioctl</span></a></li><li> <a href="core_sys_posix_sys_types.html" title="core.sys.posix.sys.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">windows</span></h7><ul><li> <a href="core_sys_windows_core.html" title="core.sys.windows.core"><span class="d_inlinecode donthyphenate notranslate">core</span></a></li><li> <a href="core_sys_windows_dll.html" title="core.sys.windows.dll"><span class="d_inlinecode donthyphenate notranslate">dll</span></a></li><li> <a href="core_sys_windows_lmaccess.html" title="core.sys.windows.lmaccess"><span class="d_inlinecode donthyphenate notranslate">lmaccess</span></a></li><li> <a href="core_sys_windows_lmsvc.html" title="core.sys.windows.lmsvc"><span class="d_inlinecode donthyphenate notranslate">lmsvc</span></a></li><li> <a href="core_sys_windows_shlwapi.html" title="core.sys.windows.shlwapi"><span class="d_inlinecode donthyphenate notranslate">shlwapi</span></a></li><li> <a href="core_sys_windows_stacktrace.html" title="core.sys.windows.stacktrace"><span class="d_inlinecode donthyphenate notranslate">stacktrace</span></a></li><li> <a href="core_sys_windows_stat.html" title="core.sys.windows.stat"><span class="d_inlinecode donthyphenate notranslate">stat</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">stdc</span></h7><ul><li> <a href="core_sys_windows_stdc_time.html" title="core.sys.windows.stdc.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a>
</li></ul></li><li> <a href="core_sys_windows_threadaux.html" title="core.sys.windows.threadaux"><span class="d_inlinecode donthyphenate notranslate">threadaux</span></a></li><li> <a href="core_sys_windows_vfw.html" title="core.sys.windows.vfw"><span class="d_inlinecode donthyphenate notranslate">vfw</span></a></li><li> <a href="core_sys_windows_winbase.html" title="core.sys.windows.winbase"><span class="d_inlinecode donthyphenate notranslate">winbase</span></a></li><li> <a href="core_sys_windows_winsock2.html" title="core.sys.windows.winsock2"><span class="d_inlinecode donthyphenate notranslate">winsock2</span></a>
</li></ul>
</li></ul></li><li> <a href="core_thread.html" title="core.thread"><span class="d_inlinecode donthyphenate notranslate">thread</span></a><ul><li> <a href="core_thread_context.html" title="core.thread.context"><span class="d_inlinecode donthyphenate notranslate">context</span></a></li><li> <a href="core_thread_fiber.html" title="core.thread.fiber"><span class="d_inlinecode donthyphenate notranslate">fiber</span></a><ul><li> <a href="core_thread_fiber_base.html" title="core.thread.fiber.base"><span class="d_inlinecode donthyphenate notranslate">base</span></a>
</li></ul></li><li> <a href="core_thread_osthread.html" title="core.thread.osthread"><span class="d_inlinecode donthyphenate notranslate">osthread</span></a></li><li> <a href="core_thread_threadbase.html" title="core.thread.threadbase"><span class="d_inlinecode donthyphenate notranslate">threadbase</span></a></li><li> <a href="core_thread_threadgroup.html" title="core.thread.threadgroup"><span class="d_inlinecode donthyphenate notranslate">threadgroup</span></a></li><li> <a href="core_thread_types.html" title="core.thread.types"><span class="d_inlinecode donthyphenate notranslate">types</span></a>
</li></ul></li><li> <a href="core_time.html" title="core.time"><span class="d_inlinecode donthyphenate notranslate">time</span></a></li><li> <a href="core_vararg.html" title="core.vararg"><span class="d_inlinecode donthyphenate notranslate">vararg</span></a></li><li> <a href="core_volatile.html" title="core.volatile"><span class="d_inlinecode donthyphenate notranslate">volatile</span></a>
</li></ul>
</li>
<div class="modlist-internal-separator">Internal API</div>
<li class='expand-container modlist-submenu-core'><a class='expand-toggle' href='#'><span><em class="tt">core</em></span></a>
<ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">internal</span></h7><ul><li> <h7><span class="d_inlinecode donthyphenate notranslate">array</span></h7><ul><li> <a href="core_internal_array_appending.html" title="core.internal.array.appending"><span class="d_inlinecode donthyphenate notranslate">appending</span></a></li><li> <a href="core_internal_array_arrayassign.html" title="core.internal.array.arrayassign"><span class="d_inlinecode donthyphenate notranslate">arrayassign</span></a></li><li> <a href="core_internal_array_capacity.html" title="core.internal.array.capacity"><span class="d_inlinecode donthyphenate notranslate">capacity</span></a></li><li> <a href="core_internal_array_casting.html" title="core.internal.array.casting"><span class="d_inlinecode donthyphenate notranslate">casting</span></a></li><li> <a href="core_internal_array_comparison.html" title="core.internal.array.comparison"><span class="d_inlinecode donthyphenate notranslate">comparison</span></a></li><li> <a href="core_internal_array_concatenation.html" title="core.internal.array.concatenation"><span class="d_inlinecode donthyphenate notranslate">concatenation</span></a></li><li> <a href="core_internal_array_construction.html" title="core.internal.array.construction"><span class="d_inlinecode donthyphenate notranslate">construction</span></a></li><li> <a href="core_internal_array_duplication.html" title="core.internal.array.duplication"><span class="d_inlinecode donthyphenate notranslate">duplication</span></a></li><li> <a href="core_internal_array_equality.html" title="core.internal.array.equality"><span class="d_inlinecode donthyphenate notranslate">equality</span></a></li><li> <a href="core_internal_array_operations.html" title="core.internal.array.operations"><span class="d_inlinecode donthyphenate notranslate">operations</span></a></li><li> <a href="core_internal_array_utils.html" title="core.internal.array.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="core_internal_util_array.html" title="core.internal.util.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="core_internal_util_math.html" title="core.internal.util.math"><span class="d_inlinecode donthyphenate notranslate">math</span></a>
</li></ul>
</li></ul>
</li></ul>
</li>
<li class='expand-container modlist-submenu-dmd'><a class='expand-toggle' href='#'><span><em class="tt">dmd</em></span></a>
<ul><li> <a href="dmd_access.html" title="dmd.access"><span class="d_inlinecode donthyphenate notranslate">access</span></a></li><li> <a href="dmd_aggregate.html" title="dmd.aggregate"><span class="d_inlinecode donthyphenate notranslate">aggregate</span></a></li><li> <a href="dmd_aliasthis.html" title="dmd.aliasthis"><span class="d_inlinecode donthyphenate notranslate">aliasthis</span></a></li><li> <a href="dmd_argtypes_aarch64.html" title="dmd.argtypes_aarch64"><span class="d_inlinecode donthyphenate notranslate">argtypes_aarch64</span></a></li><li> <a href="dmd_argtypes_sysv_x64.html" title="dmd.argtypes_sysv_x64"><span class="d_inlinecode donthyphenate notranslate">argtypes_sysv_x64</span></a></li><li> <a href="dmd_argtypes_x86.html" title="dmd.argtypes_x86"><span class="d_inlinecode donthyphenate notranslate">argtypes_x86</span></a></li><li> <a href="dmd_arrayop.html" title="dmd.arrayop"><span class="d_inlinecode donthyphenate notranslate">arrayop</span></a></li><li> <a href="dmd_arraytypes.html" title="dmd.arraytypes"><span class="d_inlinecode donthyphenate notranslate">arraytypes</span></a></li><li> <a href="dmd_ast_node.html" title="dmd.ast_node"><span class="d_inlinecode donthyphenate notranslate">ast_node</span></a></li><li> <a href="dmd_astbase.html" title="dmd.astbase"><span class="d_inlinecode donthyphenate notranslate">astbase</span></a></li><li> <a href="dmd_astcodegen.html" title="dmd.astcodegen"><span class="d_inlinecode donthyphenate notranslate">astcodegen</span></a></li><li> <a href="dmd_astenums.html" title="dmd.astenums"><span class="d_inlinecode donthyphenate notranslate">astenums</span></a></li><li> <a href="dmd_asttypename.html" title="dmd.asttypename"><span class="d_inlinecode donthyphenate notranslate">asttypename</span></a></li><li> <a href="dmd_attrib.html" title="dmd.attrib"><span class="d_inlinecode donthyphenate notranslate">attrib</span></a></li><li> <a href="dmd_attribsem.html" title="dmd.attribsem"><span class="d_inlinecode donthyphenate notranslate">attribsem</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">backend</span></h7><ul><li> <a href="dmd_backend_aarray.html" title="dmd.backend.aarray"><span class="d_inlinecode donthyphenate notranslate">aarray</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">arm</span></h7><ul><li> <a href="dmd_backend_arm_cod1.html" title="dmd.backend.arm.cod1"><span class="d_inlinecode donthyphenate notranslate">cod1</span></a></li><li> <a href="dmd_backend_arm_cod2.html" title="dmd.backend.arm.cod2"><span class="d_inlinecode donthyphenate notranslate">cod2</span></a></li><li> <a href="dmd_backend_arm_cod3.html" title="dmd.backend.arm.cod3"><span class="d_inlinecode donthyphenate notranslate">cod3</span></a></li><li> <a href="dmd_backend_arm_cod4.html" title="dmd.backend.arm.cod4"><span class="d_inlinecode donthyphenate notranslate">cod4</span></a></li><li> <a href="dmd_backend_arm_disasmarm.html" title="dmd.backend.arm.disasmarm"><span class="d_inlinecode donthyphenate notranslate">disasmarm</span></a></li><li> <a href="dmd_backend_arm_instr.html" title="dmd.backend.arm.instr"><span class="d_inlinecode donthyphenate notranslate">instr</span></a>
</li></ul></li><li> <a href="dmd_backend_backconfig.html" title="dmd.backend.backconfig"><span class="d_inlinecode donthyphenate notranslate">backconfig</span></a></li><li> <a href="dmd_backend_barray.html" title="dmd.backend.barray"><span class="d_inlinecode donthyphenate notranslate">barray</span></a></li><li> <a href="dmd_backend_bcomplex.html" title="dmd.backend.bcomplex"><span class="d_inlinecode donthyphenate notranslate">bcomplex</span></a></li><li> <a href="dmd_backend_blockopt.html" title="dmd.backend.blockopt"><span class="d_inlinecode donthyphenate notranslate">blockopt</span></a></li><li> <a href="dmd_backend_cc.html" title="dmd.backend.cc"><span class="d_inlinecode donthyphenate notranslate">cc</span></a></li><li> <a href="dmd_backend_cdef.html" title="dmd.backend.cdef"><span class="d_inlinecode donthyphenate notranslate">cdef</span></a></li><li> <a href="dmd_backend_cg.html" title="dmd.backend.cg"><span class="d_inlinecode donthyphenate notranslate">cg</span></a></li><li> <a href="dmd_backend_cgcs.html" title="dmd.backend.cgcs"><span class="d_inlinecode donthyphenate notranslate">cgcs</span></a></li><li> <a href="dmd_backend_cgcse.html" title="dmd.backend.cgcse"><span class="d_inlinecode donthyphenate notranslate">cgcse</span></a></li><li> <a href="dmd_backend_cgcv.html" title="dmd.backend.cgcv"><span class="d_inlinecode donthyphenate notranslate">cgcv</span></a></li><li> <a href="dmd_backend_cgelem.html" title="dmd.backend.cgelem"><span class="d_inlinecode donthyphenate notranslate">cgelem</span></a></li><li> <a href="dmd_backend_cgen.html" title="dmd.backend.cgen"><span class="d_inlinecode donthyphenate notranslate">cgen</span></a></li><li> <a href="dmd_backend_cgsched.html" title="dmd.backend.cgsched"><span class="d_inlinecode donthyphenate notranslate">cgsched</span></a></li><li> <a href="dmd_backend_code.html" title="dmd.backend.code"><span class="d_inlinecode donthyphenate notranslate">code</span></a></li><li> <a href="dmd_backend_codebuilder.html" title="dmd.backend.codebuilder"><span class="d_inlinecode donthyphenate notranslate">codebuilder</span></a></li><li> <a href="dmd_backend_cv4.html" title="dmd.backend.cv4"><span class="d_inlinecode donthyphenate notranslate">cv4</span></a></li><li> <a href="dmd_backend_cv8.html" title="dmd.backend.cv8"><span class="d_inlinecode donthyphenate notranslate">cv8</span></a></li><li> <a href="dmd_backend_dcgcv.html" title="dmd.backend.dcgcv"><span class="d_inlinecode donthyphenate notranslate">dcgcv</span></a></li><li> <a href="dmd_backend_dcode.html" title="dmd.backend.dcode"><span class="d_inlinecode donthyphenate notranslate">dcode</span></a></li><li> <a href="dmd_backend_debugprint.html" title="dmd.backend.debugprint"><span class="d_inlinecode donthyphenate notranslate">debugprint</span></a></li><li> <a href="dmd_backend_divcoeff.html" title="dmd.backend.divcoeff"><span class="d_inlinecode donthyphenate notranslate">divcoeff</span></a></li><li> <a href="dmd_backend_dlist.html" title="dmd.backend.dlist"><span class="d_inlinecode donthyphenate notranslate">dlist</span></a></li><li> <a href="dmd_backend_dout.html" title="dmd.backend.dout"><span class="d_inlinecode donthyphenate notranslate">dout</span></a></li><li> <a href="dmd_backend_drtlsym.html" title="dmd.backend.drtlsym"><span class="d_inlinecode donthyphenate notranslate">drtlsym</span></a></li><li> <a href="dmd_backend_dt.html" title="dmd.backend.dt"><span class="d_inlinecode donthyphenate notranslate">dt</span></a></li><li> <a href="dmd_backend_dtype.html" title="dmd.backend.dtype"><span class="d_inlinecode donthyphenate notranslate">dtype</span></a></li><li> <a href="dmd_backend_dvarstats.html" title="dmd.backend.dvarstats"><span class="d_inlinecode donthyphenate notranslate">dvarstats</span></a></li><li> <a href="dmd_backend_dvec.html" title="dmd.backend.dvec"><span class="d_inlinecode donthyphenate notranslate">dvec</span></a></li><li> <a href="dmd_backend_dwarf.html" title="dmd.backend.dwarf"><span class="d_inlinecode donthyphenate notranslate">dwarf</span></a></li><li> <a href="dmd_backend_dwarf2.html" title="dmd.backend.dwarf2"><span class="d_inlinecode donthyphenate notranslate">dwarf2</span></a></li><li> <a href="dmd_backend_dwarfdbginf.html" title="dmd.backend.dwarfdbginf"><span class="d_inlinecode donthyphenate notranslate">dwarfdbginf</span></a></li><li> <a href="dmd_backend_dwarfeh.html" title="dmd.backend.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="dmd_backend_ee.html" title="dmd.backend.ee"><span class="d_inlinecode donthyphenate notranslate">ee</span></a></li><li> <a href="dmd_backend_eh.html" title="dmd.backend.eh"><span class="d_inlinecode donthyphenate notranslate">eh</span></a></li><li> <a href="dmd_backend_el.html" title="dmd.backend.el"><span class="d_inlinecode donthyphenate notranslate">el</span></a></li>Line truncated
</li></ul>
</li></ul></li><li> <a href="dmd_blockexit.html" title="dmd.blockexit"><span class="d_inlinecode donthyphenate notranslate">blockexit</span></a></li><li> <a href="dmd_builtin.html" title="dmd.builtin"><span class="d_inlinecode donthyphenate notranslate">builtin</span></a></li><li> <a href="dmd_canthrow.html" title="dmd.canthrow"><span class="d_inlinecode donthyphenate notranslate">canthrow</span></a></li><li> <a href="dmd_chkformat.html" title="dmd.chkformat"><span class="d_inlinecode donthyphenate notranslate">chkformat</span></a></li><li> <a href="dmd_cli.html" title="dmd.cli"><span class="d_inlinecode donthyphenate notranslate">cli</span></a></li><li> <a href="dmd_clone.html" title="dmd.clone"><span class="d_inlinecode donthyphenate notranslate">clone</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">common</span></h7><ul><li> <a href="dmd_common_bitfields.html" title="dmd.common.bitfields"><span class="d_inlinecode donthyphenate notranslate">bitfields</span></a></li><li> <a href="dmd_common_blake3.html" title="dmd.common.blake3"><span class="d_inlinecode donthyphenate notranslate">blake3</span></a></li><li> <a href="dmd_common_charactertables.html" title="dmd.common.charactertables"><span class="d_inlinecode donthyphenate notranslate">charactertables</span></a></li><li> <a href="dmd_common_file.html" title="dmd.common.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_common_identifiertables.html" title="dmd.common.identifiertables"><span class="d_inlinecode donthyphenate notranslate">identifiertables</span></a></li><li> <a href="dmd_common_int128.html" title="dmd.common.int128"><span class="d_inlinecode donthyphenate notranslate">int128</span></a></li><li> <a href="dmd_common_outbuffer.html" title="dmd.common.outbuffer"><span class="d_inlinecode donthyphenate notranslate">outbuffer</span></a></li><li> <a href="dmd_common_smallbuffer.html" title="dmd.common.smallbuffer"><span class="d_inlinecode donthyphenate notranslate">smallbuffer</span></a>
</li></ul></li><li> <a href="dmd_compiler.html" title="dmd.compiler"><span class="d_inlinecode donthyphenate notranslate">compiler</span></a></li><li> <a href="dmd_cond.html" title="dmd.cond"><span class="d_inlinecode donthyphenate notranslate">cond</span></a></li><li> <a href="dmd_console.html" title="dmd.console"><span class="d_inlinecode donthyphenate notranslate">console</span></a></li><li> <a href="dmd_constfold.html" title="dmd.constfold"><span class="d_inlinecode donthyphenate notranslate">constfold</span></a></li><li> <a href="dmd_cparse.html" title="dmd.cparse"><span class="d_inlinecode donthyphenate notranslate">cparse</span></a></li><li> <a href="dmd_cpreprocess.html" title="dmd.cpreprocess"><span class="d_inlinecode donthyphenate notranslate">cpreprocess</span></a></li><li> <a href="dmd_ctfeexpr.html" title="dmd.ctfeexpr"><span class="d_inlinecode donthyphenate notranslate">ctfeexpr</span></a></li><li> <a href="dmd_ctorflow.html" title="dmd.ctorflow"><span class="d_inlinecode donthyphenate notranslate">ctorflow</span></a></li><li> <a href="dmd_cxxfrontend.html" title="dmd.cxxfrontend"><span class="d_inlinecode donthyphenate notranslate">cxxfrontend</span></a></li><li> <a href="dmd_dcast.html" title="dmd.dcast"><span class="d_inlinecode donthyphenate notranslate">dcast</span></a></li><li> <a href="dmd_dclass.html" title="dmd.dclass"><span class="d_inlinecode donthyphenate notranslate">dclass</span></a></li><li> <a href="dmd_declaration.html" title="dmd.declaration"><span class="d_inlinecode donthyphenate notranslate">declaration</span></a></li><li> <a href="dmd_delegatize.html" title="dmd.delegatize"><span class="d_inlinecode donthyphenate notranslate">delegatize</span></a></li><li> <a href="dmd_denum.html" title="dmd.denum"><span class="d_inlinecode donthyphenate notranslate">denum</span></a></li><li> <a href="dmd_deps.html" title="dmd.deps"><span class="d_inlinecode donthyphenate notranslate">deps</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">dfa</span></h7><ul><li> <a href="dmd_dfa_entry.html" title="dmd.dfa.entry"><span class="d_inlinecode donthyphenate notranslate">entry</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">fast</span></h7><ul><li> <a href="dmd_dfa_fast_analysis.html" title="dmd.dfa.fast.analysis"><span class="d_inlinecode donthyphenate notranslate">analysis</span></a></li><li> <a href="dmd_dfa_fast_expression.html" title="dmd.dfa.fast.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_dfa_fast_report.html" title="dmd.dfa.fast.report"><span class="d_inlinecode donthyphenate notranslate">report</span></a></li><li> <a href="dmd_dfa_fast_statement.html" title="dmd.dfa.fast.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_dfa_fast_structure.html" title="dmd.dfa.fast.structure"><span class="d_inlinecode donthyphenate notranslate">structure</span></a>
</li></ul></li><li> <a href="dmd_dfa_utils.html" title="dmd.dfa.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a>
</li></ul></li><li> <a href="dmd_dimport.html" title="dmd.dimport"><span class="d_inlinecode donthyphenate notranslate">dimport</span></a></li><li> <a href="dmd_dinifile.html" title="dmd.dinifile"><span class="d_inlinecode donthyphenate notranslate">dinifile</span></a></li><li> <a href="dmd_dinterpret.html" title="dmd.dinterpret"><span class="d_inlinecode donthyphenate notranslate">dinterpret</span></a></li><li> <a href="dmd_dmacro.html" title="dmd.dmacro"><span class="d_inlinecode donthyphenate notranslate">dmacro</span></a></li><li> <a href="dmd_dmdparams.html" title="dmd.dmdparams"><span class="d_inlinecode donthyphenate notranslate">dmdparams</span></a></li><li> <a href="dmd_dmodule.html" title="dmd.dmodule"><span class="d_inlinecode donthyphenate notranslate">dmodule</span></a></li><li> <a href="dmd_dmsc.html" title="dmd.dmsc"><span class="d_inlinecode donthyphenate notranslate">dmsc</span></a></li><li> <a href="dmd_doc.html" title="dmd.doc"><span class="d_inlinecode donthyphenate notranslate">doc</span></a></li><li> <a href="dmd_dscope.html" title="dmd.dscope"><span class="d_inlinecode donthyphenate notranslate">dscope</span></a></li><li> <a href="dmd_dstruct.html" title="dmd.dstruct"><span class="d_inlinecode donthyphenate notranslate">dstruct</span></a></li><li> <a href="dmd_dsymbol.html" title="dmd.dsymbol"><span class="d_inlinecode donthyphenate notranslate">dsymbol</span></a></li><li> <a href="dmd_dsymbolsem.html" title="dmd.dsymbolsem"><span class="d_inlinecode donthyphenate notranslate">dsymbolsem</span></a></li><li> <a href="dmd_dtemplate.html" title="dmd.dtemplate"><span class="d_inlinecode donthyphenate notranslate">dtemplate</span></a></li><li> <a href="dmd_dtoh.html" title="dmd.dtoh"><span class="d_inlinecode donthyphenate notranslate">dtoh</span></a></li><li> <a href="dmd_dversion.html" title="dmd.dversion"><span class="d_inlinecode donthyphenate notranslate">dversion</span></a></li><li> <a href="dmd_entity.html" title="dmd.entity"><span class="d_inlinecode donthyphenate notranslate">entity</span></a></li><li> <a href="dmd_enumsem.html" title="dmd.enumsem"><span class="d_inlinecode donthyphenate notranslate">enumsem</span></a></li><li> <a href="dmd_errors.html" title="dmd.errors"><span class="d_inlinecode donthyphenate notranslate">errors</span></a></li><li> <a href="dmd_errorsink.html" title="dmd.errorsink"><span class="d_inlinecode donthyphenate notranslate">errorsink</span></a></li><li> <a href="dmd_escape.html" title="dmd.escape"><span class="d_inlinecode donthyphenate notranslate">escape</span></a></li><li> <a href="dmd_expression.html" title="dmd.expression"><span class="d_inlinecode donthyphenate notranslate">expression</span></a></li><li> <a href="dmd_expressionsem.html" title="dmd.expressionsem"><span class="d_inlinecode donthyphenate notranslate">expressionsem</span></a></li><li> <a href="dmd_file_manager.html" title="dmd.file_manager"><span class="d_inlinecode donthyphenate notranslate">file_manager</span></a></li><li> <a href="dmd_frontend.html" title="dmd.frontend"><span class="d_inlinecode donthyphenate notranslate">frontend</span></a></li><li> <a href="dmd_func.html" title="dmd.func"><span class="d_inlinecode donthyphenate notranslate">func</span></a></li><li> <a href="dmd_funcsem.html" title="dmd.funcsem"><span class="d_inlinecode donthyphenate notranslate">funcsem</span></a></li><li> <a href="dmd_globals.html" title="dmd.globals"><span class="d_inlinecode donthyphenate notranslate">globals</span></a></li><li> <a href="dmd_glue.html" title="dmd.glue"><span class="d_inlinecode donthyphenate notranslate">glue</span></a><ul><li> <a href="dmd_glue_e2ir.html" title="dmd.glue.e2ir"><span class="d_inlinecode donthyphenate notranslate">e2ir</span></a></li><li> <a href="dmd_glue_objc.html" title="dmd.glue.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_glue_s2ir.html" title="dmd.glue.s2ir"><span class="d_inlinecode donthyphenate notranslate">s2ir</span></a></li><li> <a href="dmd_glue_tocsym.html" title="dmd.glue.tocsym"><span class="d_inlinecode donthyphenate notranslate">tocsym</span></a></li><li> <a href="dmd_glue_toctype.html" title="dmd.glue.toctype"><span class="d_inlinecode donthyphenate notranslate">toctype</span></a></li><li> <a href="dmd_glue_tocvdebug.html" title="dmd.glue.tocvdebug"><span class="d_inlinecode donthyphenate notranslate">tocvdebug</span></a></li><li> <a href="dmd_glue_todt.html" title="dmd.glue.todt"><span class="d_inlinecode donthyphenate notranslate">todt</span></a></li><li> <a href="dmd_glue_toir.html" title="dmd.glue.toir"><span class="d_inlinecode donthyphenate notranslate">toir</span></a></li><li> <a href="dmd_glue_toobj.html" title="dmd.glue.toobj"><span class="d_inlinecode donthyphenate notranslate">toobj</span></a>
</li></ul></li><li> <a href="dmd_hdrgen.html" title="dmd.hdrgen"><span class="d_inlinecode donthyphenate notranslate">hdrgen</span></a></li><li> <a href="dmd_iasm.html" title="dmd.iasm"><span class="d_inlinecode donthyphenate notranslate">iasm</span></a><ul><li> <a href="dmd_iasm_dmdaarch64.html" title="dmd.iasm.dmdaarch64"><span class="d_inlinecode donthyphenate notranslate">dmdaarch64</span></a></li><li> <a href="dmd_iasm_dmdx86.html" title="dmd.iasm.dmdx86"><span class="d_inlinecode donthyphenate notranslate">dmdx86</span></a></li><li> <a href="dmd_iasm_gcc.html" title="dmd.iasm.gcc"><span class="d_inlinecode donthyphenate notranslate">gcc</span></a>
</li></ul></li><li> <a href="dmd_id.html" title="dmd.id"><span class="d_inlinecode donthyphenate notranslate">id</span></a></li><li> <a href="dmd_identifier.html" title="dmd.identifier"><span class="d_inlinecode donthyphenate notranslate">identifier</span></a></li><li> <a href="dmd_impcnvtab.html" title="dmd.impcnvtab"><span class="d_inlinecode donthyphenate notranslate">impcnvtab</span></a></li><li> <a href="dmd_imphint.html" title="dmd.imphint"><span class="d_inlinecode donthyphenate notranslate">imphint</span></a></li><li> <a href="dmd_importc.html" title="dmd.importc"><span class="d_inlinecode donthyphenate notranslate">importc</span></a></li><li> <a href="dmd_init.html" title="dmd.init"><span class="d_inlinecode donthyphenate notranslate">init</span></a></li><li> <a href="dmd_initsem.html" title="dmd.initsem"><span class="d_inlinecode donthyphenate notranslate">initsem</span></a></li><li> <a href="dmd_inline.html" title="dmd.inline"><span class="d_inlinecode donthyphenate notranslate">inline</span></a></li><li> <a href="dmd_inlinecost.html" title="dmd.inlinecost"><span class="d_inlinecode donthyphenate notranslate">inlinecost</span></a></li><li> <a href="dmd_intrange.html" title="dmd.intrange"><span class="d_inlinecode donthyphenate notranslate">intrange</span></a></li><li> <a href="dmd_json.html" title="dmd.json"><span class="d_inlinecode donthyphenate notranslate">json</span></a></li><li> <a href="dmd_lambdacomp.html" title="dmd.lambdacomp"><span class="d_inlinecode donthyphenate notranslate">lambdacomp</span></a></li><li> <a href="dmd_lexer.html" title="dmd.lexer"><span class="d_inlinecode donthyphenate notranslate">lexer</span></a></li><li> <a href="dmd_lib.html" title="dmd.lib"><span class="d_inlinecode donthyphenate notranslate">lib</span></a><ul><li> <a href="dmd_lib_elf.html" title="dmd.lib.elf"><span class="d_inlinecode donthyphenate notranslate">elf</span></a></li><li> <a href="dmd_lib_mach.html" title="dmd.lib.mach"><span class="d_inlinecode donthyphenate notranslate">mach</span></a></li><li> <a href="dmd_lib_mscoff.html" title="dmd.lib.mscoff"><span class="d_inlinecode donthyphenate notranslate">mscoff</span></a></li><li> <a href="dmd_lib_scanelf.html" title="dmd.lib.scanelf"><span class="d_inlinecode donthyphenate notranslate">scanelf</span></a></li><li> <a href="dmd_lib_scanmach.html" title="dmd.lib.scanmach"><span class="d_inlinecode donthyphenate notranslate">scanmach</span></a></li><li> <a href="dmd_lib_scanmscoff.html" title="dmd.lib.scanmscoff"><span class="d_inlinecode donthyphenate notranslate">scanmscoff</span></a>
</li></ul></li><li> <a href="dmd_link.html" title="dmd.link"><span class="d_inlinecode donthyphenate notranslate">link</span></a></li><li> <a href="dmd_location.html" title="dmd.location"><span class="d_inlinecode donthyphenate notranslate">location</span></a></li><li> <a href="dmd_main.html" title="dmd.main"><span class="d_inlinecode donthyphenate notranslate">main</span></a></li><li> <a href="dmd_mangle.html" title="dmd.mangle"><span class="d_inlinecode donthyphenate notranslate">mangle</span></a><ul><li> <a href="dmd_mangle_basic.html" title="dmd.mangle.basic"><span class="d_inlinecode donthyphenate notranslate">basic</span></a></li><li> <a href="dmd_mangle_cpp.html" title="dmd.mangle.cpp"><span class="d_inlinecode donthyphenate notranslate">cpp</span></a></li><li> <a href="dmd_mangle_cppwin.html" title="dmd.mangle.cppwin"><span class="d_inlinecode donthyphenate notranslate">cppwin</span></a>
</li></ul></li><li> <a href="dmd_mars.html" title="dmd.mars"><span class="d_inlinecode donthyphenate notranslate">mars</span></a></li><li> <a href="dmd_mtype.html" title="dmd.mtype"><span class="d_inlinecode donthyphenate notranslate">mtype</span></a></li><li> <a href="dmd_mustuse.html" title="dmd.mustuse"><span class="d_inlinecode donthyphenate notranslate">mustuse</span></a></li><li> <a href="dmd_nogc.html" title="dmd.nogc"><span class="d_inlinecode donthyphenate notranslate">nogc</span></a></li><li> <a href="dmd_nspace.html" title="dmd.nspace"><span class="d_inlinecode donthyphenate notranslate">nspace</span></a></li><li> <a href="dmd_ob.html" title="dmd.ob"><span class="d_inlinecode donthyphenate notranslate">ob</span></a></li><li> <a href="dmd_objc.html" title="dmd.objc"><span class="d_inlinecode donthyphenate notranslate">objc</span></a></li><li> <a href="dmd_opover.html" title="dmd.opover"><span class="d_inlinecode donthyphenate notranslate">opover</span></a></li><li> <a href="dmd_optimize.html" title="dmd.optimize"><span class="d_inlinecode donthyphenate notranslate">optimize</span></a></li><li> <a href="dmd_parse.html" title="dmd.parse"><span class="d_inlinecode donthyphenate notranslate">parse</span></a></li><li> <a href="dmd_pragmasem.html" title="dmd.pragmasem"><span class="d_inlinecode donthyphenate notranslate">pragmasem</span></a></li><li> <a href="dmd_printast.html" title="dmd.printast"><span class="d_inlinecode donthyphenate notranslate">printast</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">root</span></h7><ul><li> <a href="dmd_root_aav.html" title="dmd.root.aav"><span class="d_inlinecode donthyphenate notranslate">aav</span></a></li><li> <a href="dmd_root_array.html" title="dmd.root.array"><span class="d_inlinecode donthyphenate notranslate">array</span></a></li><li> <a href="dmd_root_bitarray.html" title="dmd.root.bitarray"><span class="d_inlinecode donthyphenate notranslate">bitarray</span></a></li><li> <a href="dmd_root_complex.html" title="dmd.root.complex"><span class="d_inlinecode donthyphenate notranslate">complex</span></a></li><li> <a href="dmd_root_ctfloat.html" title="dmd.root.ctfloat"><span class="d_inlinecode donthyphenate notranslate">ctfloat</span></a></li><li> <a href="dmd_root_env.html" title="dmd.root.env"><span class="d_inlinecode donthyphenate notranslate">env</span></a></li><li> <a href="dmd_root_file.html" title="dmd.root.file"><span class="d_inlinecode donthyphenate notranslate">file</span></a></li><li> <a href="dmd_root_filename.html" title="dmd.root.filename"><span class="d_inlinecode donthyphenate notranslate">filename</span></a></li><li> <a href="dmd_root_hash.html" title="dmd.root.hash"><span class="d_inlinecode donthyphenate notranslate">hash</span></a></li><li> <a href="dmd_root_longdouble.html" title="dmd.root.longdouble"><span class="d_inlinecode donthyphenate notranslate">longdouble</span></a></li><li> <a href="dmd_root_man.html" title="dmd.root.man"><span class="d_inlinecode donthyphenate notranslate">man</span></a></li><li> <a href="dmd_root_optional.html" title="dmd.root.optional"><span class="d_inlinecode donthyphenate notranslate">optional</span></a></li><li> <a href="dmd_root_port.html" title="dmd.root.port"><span class="d_inlinecode donthyphenate notranslate">port</span></a></li><li> <a href="dmd_root_region.html" title="dmd.root.region"><span class="d_inlinecode donthyphenate notranslate">region</span></a></li><li> <a href="dmd_root_response.html" title="dmd.root.response"><span class="d_inlinecode donthyphenate notranslate">response</span></a></li><li> <a href="dmd_root_rmem.html" title="dmd.root.rmem"><span class="d_inlinecode donthyphenate notranslate">rmem</span></a></li><li> <a href="dmd_root_speller.html" title="dmd.root.speller"><span class="d_inlinecode donthyphenate notranslate">speller</span></a></li><li> <a href="dmd_root_string.html" title="dmd.root.string"><span class="d_inlinecode donthyphenate notranslate">string</span></a></li><li> <a href="dmd_root_stringtable.html" title="dmd.root.stringtable"><span class="d_inlinecode donthyphenate notranslate">stringtable</span></a></li><li> <a href="dmd_root_strtold.html" title="dmd.root.strtold"><span class="d_inlinecode donthyphenate notranslate">strtold</span></a></li><li> <a href="dmd_root_utf.html" title="dmd.root.utf"><span class="d_inlinecode donthyphenate notranslate">utf</span></a>
</li></ul></li><li> <a href="dmd_rootobject.html" title="dmd.rootobject"><span class="d_inlinecode donthyphenate notranslate">rootobject</span></a></li><li> <a href="dmd_safe.html" title="dmd.safe"><span class="d_inlinecode donthyphenate notranslate">safe</span></a></li><li> <a href="dmd_sarif.html" title="dmd.sarif"><span class="d_inlinecode donthyphenate notranslate">sarif</span></a></li><li> <a href="dmd_semantic2.html" title="dmd.semantic2"><span class="d_inlinecode donthyphenate notranslate">semantic2</span></a></li><li> <a href="dmd_semantic3.html" title="dmd.semantic3"><span class="d_inlinecode donthyphenate notranslate">semantic3</span></a></li><li> <a href="dmd_sideeffect.html" title="dmd.sideeffect"><span class="d_inlinecode donthyphenate notranslate">sideeffect</span></a></li><li> <a href="dmd_statement.html" title="dmd.statement"><span class="d_inlinecode donthyphenate notranslate">statement</span></a></li><li> <a href="dmd_statementsem.html" title="dmd.statementsem"><span class="d_inlinecode donthyphenate notranslate">statementsem</span></a></li><li> <a href="dmd_staticassert.html" title="dmd.staticassert"><span class="d_inlinecode donthyphenate notranslate">staticassert</span></a></li><li> <a href="dmd_staticcond.html" title="dmd.staticcond"><span class="d_inlinecode donthyphenate notranslate">staticcond</span></a></li><li> <a href="dmd_stmtstate.html" title="dmd.stmtstate"><span class="d_inlinecode donthyphenate notranslate">stmtstate</span></a></li><li> <a href="dmd_target.html" title="dmd.target"><span class="d_inlinecode donthyphenate notranslate">target</span></a></li><li> <a href="dmd_targetcompiler.html" title="dmd.targetcompiler"><span class="d_inlinecode donthyphenate notranslate">targetcompiler</span></a></li><li> <a href="dmd_templateparamsem.html" title="dmd.templateparamsem"><span class="d_inlinecode donthyphenate notranslate">templateparamsem</span></a></li><li> <a href="dmd_templatesem.html" title="dmd.templatesem"><span class="d_inlinecode donthyphenate notranslate">templatesem</span></a></li><li> <a href="dmd_timetrace.html" title="dmd.timetrace"><span class="d_inlinecode donthyphenate notranslate">timetrace</span></a></li><li> <a href="dmd_tokens.html" title="dmd.tokens"><span class="d_inlinecode donthyphenate notranslate">tokens</span></a></li><li> <a href="dmd_traits.html" title="dmd.traits"><span class="d_inlinecode donthyphenate notranslate">traits</span></a></li><li> <a href="dmd_typesem.html" title="dmd.typesem"><span class="d_inlinecode donthyphenate notranslate">typesem</span></a></li><li> <a href="dmd_typinf.html" title="dmd.typinf"><span class="d_inlinecode donthyphenate notranslate">typinf</span></a></li><li> <a href="dmd_utils.html" title="dmd.utils"><span class="d_inlinecode donthyphenate notranslate">utils</span></a></li><li> <a href="dmd_visitor.html" title="dmd.visitor"><span class="d_inlinecode donthyphenate notranslate">visitor</span></a><ul><li> <a href="dmd_visitor_foreachvar.html" title="dmd.visitor.foreachvar"><span class="d_inlinecode donthyphenate notranslate">foreachvar</span></a></li><li> <a href="dmd_visitor_parsetime.html" title="dmd.visitor.parsetime"><span class="d_inlinecode donthyphenate notranslate">parsetime</span></a></li><li> <a href="dmd_visitor_permissive.html" title="dmd.visitor.permissive"><span class="d_inlinecode donthyphenate notranslate">permissive</span></a></li><li> <a href="dmd_visitor_postorder.html" title="dmd.visitor.postorder"><span class="d_inlinecode donthyphenate notranslate">postorder</span></a></li><li> <a href="dmd_visitor_statement_rewrite_walker.html" title="dmd.visitor.statement_rewrite_walker"><span class="d_inlinecode donthyphenate notranslate">statement_rewrite_walker</span></a></li><li> <a href="dmd_visitor_strict.html" title="dmd.visitor.strict"><span class="d_inlinecode donthyphenate notranslate">strict</span></a></li><li> <a href="dmd_visitor_transitive.html" title="dmd.visitor.transitive"><span class="d_inlinecode donthyphenate notranslate">transitive</span></a>
</li></ul></li><li> <a href="dmd_vsoptions.html" title="dmd.vsoptions"><span class="d_inlinecode donthyphenate notranslate">vsoptions</span></a>
</li></ul>
</li>
<li class='expand-container modlist-submenu-rt'><a class='expand-toggle' href='#'><span><em class="tt">rt</em></span></a>
<ul><li> <a href="rt_aApply.html" title="rt.aApply"><span class="d_inlinecode donthyphenate notranslate">aApply</span></a></li><li> <a href="rt_aApplyR.html" title="rt.aApplyR"><span class="d_inlinecode donthyphenate notranslate">aApplyR</span></a></li><li> <a href="rt_alloca.html" title="rt.alloca"><span class="d_inlinecode donthyphenate notranslate">alloca</span></a></li><li> <a href="rt_arraycat.html" title="rt.arraycat"><span class="d_inlinecode donthyphenate notranslate">arraycat</span></a></li><li> <a href="rt_cmath2.html" title="rt.cmath2"><span class="d_inlinecode donthyphenate notranslate">cmath2</span></a></li><li> <a href="rt_config.html" title="rt.config"><span class="d_inlinecode donthyphenate notranslate">config</span></a></li><li> <a href="rt_cover.html" title="rt.cover"><span class="d_inlinecode donthyphenate notranslate">cover</span></a></li><li> <a href="rt_critical_.html" title="rt.critical_"><span class="d_inlinecode donthyphenate notranslate">critical_</span></a></li><li> <a href="rt_deh.html" title="rt.deh"><span class="d_inlinecode donthyphenate notranslate">deh</span></a></li><li> <a href="rt_deh_win32.html" title="rt.deh_win32"><span class="d_inlinecode donthyphenate notranslate">deh_win32</span></a></li><li> <a href="rt_deh_win64_posix.html" title="rt.deh_win64_posix"><span class="d_inlinecode donthyphenate notranslate">deh_win64_posix</span></a></li><li> <a href="rt_dmain2.html" title="rt.dmain2"><span class="d_inlinecode donthyphenate notranslate">dmain2</span></a></li><li> <a href="rt_dwarfeh.html" title="rt.dwarfeh"><span class="d_inlinecode donthyphenate notranslate">dwarfeh</span></a></li><li> <a href="rt_ehalloc.html" title="rt.ehalloc"><span class="d_inlinecode donthyphenate notranslate">ehalloc</span></a></li><li> <a href="rt_invariant_.html" title="rt.invariant_"><span class="d_inlinecode donthyphenate notranslate">invariant_</span></a></li><li> <a href="rt_lifetime.html" title="rt.lifetime"><span class="d_inlinecode donthyphenate notranslate">lifetime</span></a></li><li> <a href="rt_llmath.html" title="rt.llmath"><span class="d_inlinecode donthyphenate notranslate">llmath</span></a></li><li> <a href="rt_memory.html" title="rt.memory"><span class="d_inlinecode donthyphenate notranslate">memory</span></a></li><li> <a href="rt_memset.html" title="rt.memset"><span class="d_inlinecode donthyphenate notranslate">memset</span></a></li><li> <a href="rt_minfo.html" title="rt.minfo"><span class="d_inlinecode donthyphenate notranslate">minfo</span></a></li><li> <a href="rt_monitor_.html" title="rt.monitor_"><span class="d_inlinecode donthyphenate notranslate">monitor_</span></a></li><li> <a href="rt_msvc.html" title="rt.msvc"><span class="d_inlinecode donthyphenate notranslate">msvc</span></a></li><li> <a href="rt_msvc_math.html" title="rt.msvc_math"><span class="d_inlinecode donthyphenate notranslate">msvc_math</span></a></li><li> <a href="rt_profilegc.html" title="rt.profilegc"><span class="d_inlinecode donthyphenate notranslate">profilegc</span></a></li><li> <a href="rt_sections.html" title="rt.sections"><span class="d_inlinecode donthyphenate notranslate">sections</span></a></li><li> <a href="rt_sections_darwin_64.html" title="rt.sections_darwin_64"><span class="d_inlinecode donthyphenate notranslate">sections_darwin_64</span></a></li><li> <a href="rt_sections_elf_shared.html" title="rt.sections_elf_shared"><span class="d_inlinecode donthyphenate notranslate">sections_elf_shared</span></a></li><li> <a href="rt_sections_osx_64.html" title="rt.sections_osx_64"><span class="d_inlinecode donthyphenate notranslate">sections_osx_64</span></a></li><li> <a href="rt_sections_osx_x86.html" title="rt.sections_osx_x86"><span class="d_inlinecode donthyphenate notranslate">sections_osx_x86</span></a></li><li> <a href="rt_sections_solaris.html" title="rt.sections_solaris"><span class="d_inlinecode donthyphenate notranslate">sections_solaris</span></a></li><li> <a href="rt_sections_win64.html" title="rt.sections_win64"><span class="d_inlinecode donthyphenate notranslate">sections_win64</span></a></li><li> <a href="rt_tlsgc.html" title="rt.tlsgc"><span class="d_inlinecode donthyphenate notranslate">tlsgc</span></a></li><li> <a href="rt_trace.html" title="rt.trace"><span class="d_inlinecode donthyphenate notranslate">trace</span></a></li><li> <a href="rt_tracegc.html" title="rt.tracegc"><span class="d_inlinecode donthyphenate notranslate">tracegc</span></a></li><li> <h7><span class="d_inlinecode donthyphenate notranslate">util</span></h7><ul><li> <a href="rt_util_typeinfo.html" title="rt.util.typeinfo"><span class="d_inlinecode donthyphenate notranslate">typeinfo</span></a></li><li> <a href="rt_util_utility.html" title="rt.util.utility"><span class="d_inlinecode donthyphenate notranslate">utility</span></a>
</li></ul>
</li></ul>
</li></ul>
</div>
<div class="hyphenate" id="content">
<div id="tools"><div > <div class="tip smallprint"> <a href="https://github.com/dlang/phobos/issues/new?title=%5Bstd.experimental.logger%5D%20&amp;label=Severity:Enhancement">Report a bug</a>
<div > If you spot a problem with this page, click here to create a GitHub issue.
</div>
</div>
<div class="tip smallprint"> <a href="https://github.com/dlang/phobos/edit/master/std/experimental/logger/package.d">Improve this page</a>
<div > 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.
</div>
</div>
</div></div>
<h1><span class="d_title">std.experimental.logger</span></h1>
<div class="quickindex" id="quickindex"></div>
<div class="summary">This module is now deprecated, use <a href="std_logger.html"><span class="d_inlinecode donthyphenate notranslate">std.logger</span></a>
instead.
</div><div class="keyval License"><span class="key keyLicense">License:</span> <div class="val valLicense"><a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
</div></div>
<div class="keyval Authors"><span class="key keyAuthors">Authors:</span> <div class="val valAuthors"></div></div>
<div class="val"><p class="keyval Section"><span class="key keySection">Source</span>
<span class="phobos_src"><a class="https" href="https://github.com/dlang/phobos/blob/master/std/experimental/logger/package.d">std/experimental/logger/package.d</a></span>
<div class="blankline"></div>
<script type="text/javascript">inhibitQuickIndex = 1;</script></p></div>
<div class="smallprint" id="copyright">Copyright &copy; 1999-2026 by the <a href="../foundation_overview.html">D Language Foundation</a> | Page generated by
<a href="../spec/ddoc.html">Ddoc</a> on Mon Oct 26 00:38:37 2026
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="../js/jquery-3.7.1.min.js">\x3C/script>');</script>
<script type="text/javascript" src="../js/dlang.js"></script>
<script type="text/javascript" src="../js/codemirror-compressed.js"></script>
<script type="text/javascript" src="../js/run.js"></script>
<script type="text/javascript" src="../js/run_examples.js"></script>
<script type="text/javascript" src="../js/listanchors.js"></script>
<script type="text/javascript" src="../js/show_contributors.js"></script>
<script type="text/javascript">jQuery(document).ready(listanchors);</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="https://blog.dlang.org/archive/2017/08/11/on-tilix-and-d-an-interview-with-gerald-nunn/">
<script>location="https://blog.dlang.org/archive/2017/08/11/on-tilix-and-d-an-interview-with-gerald-nunn/"</script>
<meta http-equiv="refresh" content="0; url=https://blog.dlang.org/archive/2017/08/11/on-tilix-and-d-an-interview-with-gerald-nunn/">
<meta name="robots" content="noindex">
<h1>Redirecting&hellip;</h1>
<a href="https://blog.dlang.org/archive/2017/08/11/on-tilix-and-d-an-interview-with-gerald-nunn/">Click here if you are not redirected.</a>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,59 @@
<!DOCTYPE html><html><head><link rel="stylesheet" href="/index.e09fc94b0893149a.css" /><link rel="stylesheet" href="/5909.6e883a8fd5039b6f.css" /><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/site-logo.c0e60df418e04f58.svg"/><link rel="preload" as="image" href="/icon-print.3c147a8b5a684f88.svg"/><link rel="preload" as="image" href="/icon-square-small-slack.1c7f4f7a52c41f94.png"/><link rel="preload" as="image" href="/openjs-logo.de5f5dbf59d26318.png"/><link rel="preload" as="image" href="/icon-square-small.9e8aff7a67a5dd20.svg"/><link rel="preload" as="image" href="/cc.185f5779f354f6e9.svg"/><link rel="preload" as="image" href="/by.d2da85793ea9d7bd.svg"/><title>ProvidePlugin | webpack</title><meta name="theme-color" content="#2B3A42"/><meta name="description" content="Load modules automatically instead of importing or requiring them everywhere."/><meta property="og:site_name" content="webpack"/><meta property="og:type" content="website"/><meta property="og:title" content="ProvidePlugin | webpack"/><meta property="og:description" name="description" content="Load modules automatically instead of importing or requiring them everywhere."/><meta property="og:image" content="https://webpack.js.org/icon-pwa-512x512.934507c816afbcdb.png"/><meta property="twitter:card" content="summary"/><meta property="twitter:site" content="@webpack"/><meta property="twitter:creator" content="@webpack"/><meta property="twitter:domain" content="https://webpack.js.org/"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black"/><meta name="apple-mobile-web-app-title" content="webpack"/><meta name="msapplication-TileImage" content="/icon_150x150.png"/><meta name="msapplication-TileColor" content="#465e69"/><link rel="icon" type="image/x-icon" href="/favicon.a3dd58d3142f7566.ico"/><link rel="manifest" href="/manifest.json"/><link rel="canonical" href="https://webpack.js.org/plugins/provide-plugin/"/><link rel="alternate" type="application/rss+xml" title="webpack Blog" href="https://webpack.js.org/feed.xml"/><link rel="icon" sizes="192x192" href="/icon_192x192.png"/><link rel="icon" sizes="512x512" href="/icon_512x512.png"/><link rel="apple-touch-icon" href="/icon_180x180.png"/><link rel="mask-icon" href="/logo-on-white-bg.4a16a9aed80e42ee.svg" color="#465e69"/></head><body><div id="root"><div class="flex flex-col min-h-screen bg-white dark:bg-gray-900"><div class="z-[100] fixed w-full"><header class="bg-blue-800 dark:bg-gray-900 print:hidden"><div class="flex items-center py-10 px-[16px] justify-between md:px-[24px] md:max-w-[1024px] md:mx-auto md:justify-start"><button aria-label="Toggle navigation menu" class="bg-transparent border-none md:hidden"><svg viewBox="-62 138 25 25" width="20" height="20" class="fill-current text-white"><path fill="currentColor" d="M-60.2 140.2h20.9c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8h-20.9c-1 0-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8M-60.2 148.7h20.9c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8h-20.9c-1 0-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8M-60.2 157.2h20.9c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8h-20.9c-1 0-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8"></path></svg></button><a class="md:mr-auto" href="/" data-discover="true"><img class="float-left h-[35px] w-auto opacity-90 transition-opacity duration-200 hover:opacity-100" src="/site-logo.c0e60df418e04f58.svg" alt="webpack logo" width="122" height="35"/></a><nav class="hidden md:inline-grid md:grid-flow-col md:gap-x-[18px] md:items-center" aria-label="Main navigation"><a aria-label="webpack documentation" class="text-gray-100 dark:text-gray-100 text-sm font-light uppercase hover:text-blue-200 !text-blue-200" href="/concepts/" data-discover="true">Documentation</a><a aria-label="contribute to webpack" class="text-gray-100 dark:text-gray-100 text-sm font-light uppercase hover:text-blue-200" href="/contribute/" data-discover="true">Contribute</a><a aria-label="webpack blog" class="text-gray-100 dark:text-gray-100 text-sm font-light uppercase hover:text-blue-200" href="/blog/" data-discover="true">Blog</a><div class="relative flex items-center justify-center "><a href="https://github.com/webpack/webpack" target="_blank" rel="noopener noreferrer" class="inline-flex items-center text-gray-100 dark:text-gray-200 hover:text-blue-200" aria-label="webpack on GitHub"><svg viewBox="0 0 24 24" aria-hidden="true" fill="currentColor" width="16"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 6.8 9.5c.5 0 .7-.2.7-.5v-1.7C6.7 20 6.1 18 6.1 18c-.4-1.2-1-1.5-1-1.5-1-.6 0-.6 0-.6 1 0 1.5 1 1.5 1 .9 1.6 2.4 1.1 3 .9 0-.7.3-1.1.6-1.4-2.2-.2-4.6-1-4.6-4.9 0-1.1.4-2 1-2.7 0-.3-.4-1.3.2-2.7 0 0 .8-.2 2.7 1a9.4 9.4 0 0 1 5 0c2-1.2 2.8-1 2.8-1 .5 1.4.1 2.4 0 2.7.7.7 1 1.6 1 2.7 0 3.8-2.3 4.7-4.5 5 .4.2.7.8.7 1.8V21c0 .3.2.6.7.5 4-1.3 6.8-5 6.8-9.5A10 10 0 0 0 12 2"></path></svg><span class="screen-reader-only">(opens in a new tab)</spaLine truncated
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">identifier</span><span class="token operator">:</span> <span class="token string">&quot;module1&quot;</span><span class="token punctuation">,</span>
<span class="token comment">// ...</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<p>or</p>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">identifier</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;module1&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;property1&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token comment">// ...</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<p>By default, module resolution path is current folder (<code>./**)</code> and <code>node_modules</code>.</p>
<p>It is also possible to specify full path:</p>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">import</span> path <span class="token keyword">from</span> <span class="token string">&quot;node:path&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileURLToPath <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;node:url&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> __filename <span class="token operator">=</span> <span class="token function">fileURLToPath</span><span class="token punctuation">(</span><span class="token keyword">import</span><span class="token punctuation">.</span>meta<span class="token punctuation">.</span>url<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> __dirname <span class="token operator">=</span> path<span class="token punctuation">.</span><span class="token function">dirname</span><span class="token punctuation">(</span>__filename<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">identifier</span><span class="token operator">:</span> path<span class="token punctuation">.</span><span class="token function">resolve</span><span class="token punctuation">(</span>path<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span>__dirname<span class="token punctuation">,</span> <span class="token string">&quot;src/module1&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token comment">// ...</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<p>Whenever the <code>identifier</code> is encountered as free variable in a module, the <code>module</code> is loaded automatically and the <code>identifier</code> is filled with the exports of the loaded <code>module</code> (or <code>property</code> in order to support named exports).</p>
<p>For importing the default export of an ES2015 module, you have to specify the default property of module.</p>
<h2><span id="usage-jquery"></span>Usage: jQuery<a href="#usage-jquery" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h2>
<p>To automatically load <code>jquery</code> we can point both variables it exposes to the corresponding node module:</p>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">$</span><span class="token operator">:</span> <span class="token string">&quot;jquery&quot;</span><span class="token punctuation">,</span>
<span class="token literal-property property">jQuery</span><span class="token operator">:</span> <span class="token string">&quot;jquery&quot;</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<p>Then in any of our source code:</p>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token comment">// in a module</span>
<span class="token function">$</span><span class="token punctuation">(</span><span class="token string">&quot;#item&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &lt;= works</span>
<span class="token function">jQuery</span><span class="token punctuation">(</span><span class="token string">&quot;#item&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &lt;= also works</span>
<span class="token comment">// $ is automatically set to the exports of module &quot;jquery&quot;</span></code></pre></div>
<h2><span id="usage-jquery-with-angular-1"></span>Usage: jQuery with Angular 1<a href="#usage-jquery-with-angular-1" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h2>
<p>Angular looks for <code>window.jQuery</code> in order to determine whether jQuery is present, see the <a href="https://github.com/angular/angular.js/blob/v1.5.9/src/Angular.js#L1821-L1823">source code</a>.</p>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token string-property property">&quot;window.jQuery&quot;</span><span class="token operator">:</span> <span class="token string">&quot;jquery&quot;</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<h2><span id="usage-lodash-map"></span>Usage: Lodash Map<a href="#usage-lodash-map" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h2>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">_map</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;lodash&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;map&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div>
<h3><span id="usage-vuejs"></span>Usage: Vue.js<a href="#usage-vuejs" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3>
<div class="code-block-wrapper relative mb-6 group"><button class="copy-button absolute top-2 right-2 z-10 px-[0.7rem] py-[0.4rem] rounded-[0.35rem] border-none cursor-pointer text-xs font-medium text-slate-200 opacity-0 group-hover:opacity-100 transition-[background-color,transform,opacity] duration-200 active:scale-95 focus-visible:outline-none focus-visible:opacity-100 bg-[#175d96] hover:bg-[#2f85d0]" aria-label="Copy code to clipboard">Copy</button><pre><code class="hljs language-js"><span class="token keyword">new</span> <span class="token class-name">webpack<span class="token punctuation">.</span>ProvidePlugin</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
<span class="token literal-property property">Vue</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;vue/dist/vue.esm.js&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;default&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div></div><div class="print:hidden mt-8"><a class="text-gray-500 dark:text-gray-200 text-sm cursor-pointer font-sans hover:underline hover:text-gray-500 dark:hover:text-white transition-colors" href="https://github.com/webpack/webpack.js.org/edit/main/src/content/plugins/provide-plugin.mdx">Edit this page</a><span class="mx-5 text-gray-500 font-semibold dark:text-gray-300">·</span><button type="button" class="text-gray-500 dark:text-gray-200 text-sm cursor-pointer font-sans hover:underline hover:text-gray-500 dark:hover:text-white transition-colors">Print this page</button></div><div class="flex py-[30px] justify-between print:hidden"><div class="mr-auto"><div>« Previous</div><a class="text-lg" href="/plugins/progress-plugin/" data-discover="true">ProgressPlugin</a></div><div class="ml-auto"><div class="text-right">Next »</div><a class="text-lg" href="/plugins/source-map-dev-tool-plugin/" data-discover="true">SourceMapDevToolPlugin</a></div></div><div data-testid="contributors" class="print:hidden"><h2 class="!font-sans !font-normal">5<!-- --> <!-- -->Contributors</h2><div><div class="grid gap-[10px] lg:gap-[15px] grid-cols-contributors"><a href="https://github.com/sokra"><img width="45" height="45" alt="sokra" title="sokra" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/simon04"><img width="45" height="45" alt="simon04" title="simon04" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/re-fort"><img width="45" height="45" alt="re-fort" title="re-fort" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/byzyk"><img width="45" height="45" alt="byzyk" title="byzyk" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/seckin92"><img width="45" height="45" alt="seckin92" title="seckin92" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a></div></div></div></div></main></div></div><div class="fixed bottom-4 right-4 md:bottom-8 md:right-8 z-[999] pointer-events-none"><button class="
group flex items-center justify-center
w-12 h-12 rounded-full cursor-pointer
bg-white border-[5px] border-[#1c78c0]
shadow-[0_4px_12px_rgba(0,0,0,0.15)]
transition-all duration-300 ease-in-out
hover:bg-[#1c78c0] hover:border-[#f5f5f5] hover:shadow-[0_6px_16px_rgba(0,0,0,0.2)] hover:-translate-y-0.5
active:translate-y-0
dark:bg-[#f5f5f5]
motion-reduce:transition-none motion-reduce:hover:transform-none
opacity-0 translate-y-2.5 pointer-events-none
" aria-label="Scroll to top" title="Scroll to top" disabled=""><svg class="w-8 h-8 text-slate-800 transition-colors duration-300 ease-in-out group-hover:text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg></button></div><footer class="w-full flex-[0_0_auto] print:hidden"><div class="w-full max-w-screen-lg mx-auto mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&amp;_a]:text-[var(--color-link-accessible)] [&amp;_a:hover]:text-[var(--color-link-accessible-hover)] dark:[&amp;_a]:text-[var(--color-link-accessible-dark)] dark:[&amp;_a:hover]:text-white"><div class="mb-[24px] flex justify-center"><a href="https://openjsf.org" target="_blank" rel="noopener noreferrer"><img class="h-[40px] w-auto dark:invert" src="/openjs-logo.de5f5dbf59d26318.png" alt="OpenJS Foundation Logo"/></a></div><p class="mx-auto text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and webpack contributors. All rights reserved. The<!-- --> <a href="https://openjsf.org">OpenJS Foundation</a> has registered trademarks and uses trademarks. For a list of trademarks of the<!-- --> <a href="https://openjsf.org">OpenJS Foundation</a>, please see our<!-- --> <a href="https://trademark-policy.openjsf.org">Trademark Policy</a> and<!-- --> <a href="https://trademark-list.openjsf.org">Trademark List</a>. Trademarks and logos not indicated on the<!-- --> <a href="https://trademark-list.openjsf.org">list of OpenJS Foundation trademarks</a> <!-- -->are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.</p><p class="mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]"><a href="https://openjsf.org">The OpenJS Foundation</a> |<!-- --> <a href="https://terms-of-use.openjsf.org">Terms of Use</a> |<!-- --> <a href="https://privacy-policy.openjsf.org">Privacy Policy</a> |<!-- --> <a href="https://bylaws.openjsf.org">Bylaws</a> |<!-- --> <a href="https://code-of-conduct.openjsf.org">Code of Conduct</a> |<!-- --> <a href="https://trademark-policy.openjsf.org">Trademark Policy</a> |<!-- --> <a href="https://trademark-list.openjsf.org">Trademark List</a> |<!-- --> <a href="https://www.linuxfoundation.org/cookies">Cookie Policy</a></p></div><div class="w-full max-w-screen-lg mx-auto flex flex-wrap justify-center gap-y-4 content-center border-t border-[#f2f2f2] px-0 py-[0.4em] md:flex-row md:justify-between"><section class="mx-auto flex max-w-full flex-[0_0_auto] flex-wrap items-center justify-center py-[0.25em] md:m-0 md:justify-start md:pl-[1.5em] md:py-0 [&amp;&gt;*:not(:last-child)]:mr-[1.5em]" aria-label="Quick links"><a class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]" href="/guides/getting-started/" data-discover="true">Get Started</a><a class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]" href="/comparison/" data-discover="true">Comparison</a><a href="https://privacy-policy.openjsf.org/" target="_blank" rel="noopener noreferrer" class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]">Privacy Policy<span class="screen-reader-only">(opens in a new tab)</span></a></section><section class="hidden md:block md:flex-[0_0_auto]" aria-label="Home"><a class="inline-block h-[35px]" href="/" data-discover="true"><img class="inline-block h-full w-auto" src="/icon-square-small.9e8aff7a67a5dd20.svg" alt="webpack icon" width="35" height="35"/></a></section><section class="mx-auto flex max-w-full flex-[0_0_auto] flex-wrap items-center justify-center py-[0.25em] md:m-0 md:justify-end md:py-0 md:pr-[1.5em] [&amp;&gt;a:not(:last-child)]:mr-[1.5em]" aria-label="Resources and links"><a href="https://webpack.threadless.com/" target="_blank" rel="noopener noreferrer" class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]">Swag Store<span class="screen-reader-only">(opens in a new tab)</span></a><a class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]" href="/awesome-webpack/" data-discover="true">Awesome webpack</a><a class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]" href="/glossary/" data-discover="true">Glossary</a><a class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]" href="/branding/" data-discover="true">Branding</a><a href="https://github.com/webpack/webpack/releases" target="_blank" rel="noopener noreferrer" class="text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]">Changelog<span classLine truncated
@@ -0,0 +1,715 @@
<!DOCTYPE html>
<html
lang="en"
data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"
data-a11y-animated-images="system" data-a11y-link-underlines="true"
data-css-features="site_disable_smooth_scrolling"
>
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
<link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
<link rel="preconnect" href="https://github.githubassets.com" crossorigin>
<link rel="preconnect" href="https://avatars.githubusercontent.com">
<script type="importmap">{"imports":{"react":"https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js","react-dom":"https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js","react-dom/client":"https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js","react-is":"https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js","react-reconciler":"https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js","react/compiler-runtime":"https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js","react/jsx-dev-runtime":"https://github.githubassets.com/assets/react-jsx-dev-runtime-ea55d68667d559e5.js","react/jsx-runtime":"https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js","scheduler":"https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js"}}</script>
<meta name="react-profiling" content="0" data-turbo-transient="true" />
<meta name="react-import-map" content="react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf" data-turbo-track="reload" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="light" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-3862d92e8cad06f0.css" /><link data-color-theme="light_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind_high_contrast-554f83c57e146400.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-8a8312bd5594c79a.css" /><link data-color-theme="light_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia_high_contrast-26b9d9807a0334fb.css" /><link data-color-theme="dark" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-bea0b289618fbfb6.css" /><link data-color-theme="dark_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind_high_contrast-fe483dca5ad67edd.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-7d4b8c531c77a24a.css" /><link data-color-theme="dark_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia_high_contrast-edfb3968733aaf25.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-1f24e8126354e7aa.css" /><link data-color-theme="dark_dimmed_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed_high_contrast-bb55737dcb13dc9b.css" />
<style type="text/css">
:root {
--tab-size-preference: 4;
}
pre, code {
tab-size: var(--tab-size-preference);
}
</style>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-02e066689466a8cd.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-38ae573fa780d76a.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-b577b4b65d1381c3.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-11ab453cdcc1b7c1.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-542ca59b4b92999d.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-b25a4886e30e3e5f.css" />
<script type="application/json" id="client-env">{"locale":"en","featureFlags":["actions_enable_background_steps","actions_new_hosted_runner_image_select_sizes_and_versions","actions_runners_react_view","actions_workflows_react_toggle","agent_author_search_expansion","agent_author_search_expansion_ui_pulls","ahp_v1_wire_protocol","alternate_user_config_repo","billing_billable_licenses_cost_center_bucket_fix","billing_budget_expiration","billing_cost_center_list_assigned_resources","billing_discount_threshold_notification","code_quality_enablement_banner_targeting","code_quality_remove_preview","code_scanning_ai_scan_button_v2","code_view_raf_sticky_lines","code_view_skip_unchanged_wrap_preference","codespaces_prebuild_region_target_update","coding_agent_third_party_model_ui","collab_docs_authorization","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_automation_continuous_history","copilot_automation_repo_mcp_servers","copilot_automations_pagination","copilot_background_shell_workbench","copilot_base_model_policy_row","copilot_chat_auto_mode_v2","copilot_chat_clear_model_selection_for_default_change","copilot_chat_persist_session_drafts","copilot_chat_vision_dotcom_chat_ga_gate","copilot_css_textarea_autosize","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_removal_on_marketplace","copilot_fix_failed_workflows_all_skus","copilot_hide_hovercard","copilot_immersive_task_hyperlinking","copilot_managed_settings_validation_file_links","copilot_mc_cli_resume_any_users_task","copilot_mission_control_agent_merge_feedback","copilot_mission_control_agent_merge_fix_ci","copilot_mission_control_agent_merge_resolve_conflicts","copilot_mission_control_agents_repository_task_detail","copilot_mission_control_agents_task_detail","copilot_mission_control_ahp_diff","copilot_mission_control_ahp_diff_workbench","copilot_mission_control_ahp_local_images","copilot_mission_control_awps_batching","copilot_mission_control_create_pull_request_client_tool","copilot_mission_control_early_stop","copilot_mission_control_environment_task_destination_startup","copilot_mission_control_environments_web_kickoff","copilot_mission_control_independent_mode_controls","copilot_mission_control_needs_attention","copilot_mission_control_pinned_tasks","copilot_mission_control_reasoning_effort","copilot_mission_control_reserved_sandbox_tasks","copilot_mission_control_reuse_project_workspace","copilot_mission_control_session_client_attribution","copilot_mission_control_session_metadata","copilot_mission_control_setup_steps_timing","copilot_mission_control_sticky_header","copilot_mission_control_task_alive_updates","copilot_mission_control_task_sharing","copilot_mission_control_use_api_gateway","copilot_org_policy_page_focus_mode","copilot_policy_ui_refresh","copilot_pr_chat_thread_persistence","copilot_quick_chat_default_chat_scope","copilot_quick_chat_project_sessions","copilot_quick_chat_recent_artifact_sessions","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_swe_agent_authorization_status_ui","copilot_swe_agent_automation_resource_scoped_writes","copilot_swe_agent_code_scanning_alert_trigger","copilot_swe_agent_dependabot_alert_trigger","copilot_swe_agent_discussion_comment_trigger","copilot_swe_agent_discussion_opened_trigger","copilot_swe_agent_discussion_updated_trigger","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_issue_assigned_trigger","copilot_swe_agent_issue_closed_trigger","copilot_swe_agent_issue_comment_trigger","copilot_swe_agent_issue_labeled_trigger","copilot_swe_agent_issue_reopened_trigger","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_pull_request_assigned_trigger","copilot_swe_agent_pull_request_closed_trigger","copilot_swe_agent_pull_request_comment_trigger","copilot_swe_agent_pull_request_converted_to_draft_trigger","copilot_swe_agent_pull_request_labeled_trigger","copilot_swe_agent_pull_request_merged_trigger","copilot_swe_agent_pull_request_opened_trigger","copilot_swe_agent_pull_request_ready_for_review_trigger","copilot_swe_agent_pull_request_reopened_trigger","copilot_swe_agent_pull_request_review_dismissed_trigger","copilot_swe_agent_pull_request_review_requested_trigger","copilot_swe_agent_pull_request_review_submitted_trigger","copilot_swe_agent_pull_request_review_thread_resolved_trigger","copilot_swe_agent_pull_request_review_thread_unresolved_trigger","copilot_swe_agent_pull_request_synchronize_trigger","copilot_swe_agent_secret_scanning_alert_trigger","copilot_swe_agent_sub_issue_added_trigger","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_task_scoped_alive_channel","copilot_token_based_billing","copilot_unconfigured_is_inherited","copilot_user_can_upgrade_plan_field","copilot_workbench_sunset_redirect","dashboard_agents_module_auth_token_check","fgpat_permissions_selector_redesign","glc_code_qualitLine truncated
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/high-contrast-cookie-141c17800ca6ba23.js"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wp-runtime-9bb558fd60393eac.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-foundation-799625033ee8341e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-runtime-24d1e3019d231636.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fetch-utilities-27ed50f7568a5f72.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ser-2defe2918d9c9884.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/environment-1cd4523d735f12f8.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-runtime.47c2032941ed0c3c.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/catalyst-5bc36fa5a846f5a0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/selector-observer-7ae05416e4a383ae.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/relative-time-element-a7b7e0f1360ca8f9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/by4-04f0d28829dc4df0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ja9-b94de714266ba389.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3h2-5f8899065b81d778.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t2-19741658de225445.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z8j-d8f6fa7339115370.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hjg-55b6d77c48226433.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wc-9718c61e184d7417.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/github-elements-300dc3b16544fdde.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/element-registry-53c2c2b92a4c8753.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/runtime-helpers-26f2970b9e869a17.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aria-live-e0f60f15396869e3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hotkey-a82e6cb07443fd1c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-core-64258d9ba65c8c5a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cc-99eedace671eb2b6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/urv-453c749eec9d7d37.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4t-f1181f796eb9ea15.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pb0-3a1794e99794195c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6n-e6e586acca87c769.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z-b2cf9f86cb4bed3b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9k-9938b9e1b5d2f0d0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0r-4a2b771052825f69.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ow-98d10140e8228c74.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mv-2c0d46e691479ec1.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eou-b91079b9ea7074de.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eon-36af335a1906af16.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/yga-dd50cf95593467fe.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/behaviors-e454b1001b1685dd.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/react-core.c2407ba3ce2b1978.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/n9-369bc13c0e8c5584.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/codespaces-4b099cf46c8ef081.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/liv-7ba64ac238bca0a9.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/repositories-24a38d4d8ca9d84c.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-menu-07478b06306b30b8.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/primer-react-911369ee234690ef.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/nc-28ebfc8e58bca42f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qmp-308230626a2aedb0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/to-b501df3e06c1799a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t7l-423469c05c948a8b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4u-bf6e08201764cb0a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/s07-527b0afa5c76403e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fe-f8365f29462c346a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zd-61606dd1c14634aa.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/7v5-d77d961bce5db1f3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/15-627ae2a5640b1bab.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5w-452c3a937483ff49.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/la-27ea91f01fa7ffcf.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/y0-02339f2a1b7b69ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t9-28dc4f6af25a5400.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/20-c4fa69654eec9c7a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a68-c67bfbb035a5cd79.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3s-ebbc335534e40b2a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cnq-00f06287d057a2b3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gw-4bf343b417f9ec19.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0-8683d136d595e7ee.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jn-9c45b198d99a47c8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/q6j-256bc816dd682a0f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fn-a24b6dda102e437d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/i2-5e26ac37ee961d06.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/b2-35e229a50d0f3d05.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pg-10c94bf4f9e9df2f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/lrk-ea49e115e48ba34b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mlz-fce49bd96df2c99f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/dx-17fc1b71910ed6ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sm-22346830d5e5a763.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ur-4cd875e44a87e9f6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pr-7e5e6964ac1c13a7.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/up-2550cb0824072126.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gd-c0d7e6321e1379df.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/51-b582a312086b7975.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/c28-f2c3e9d4cd1ed8f5.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ti-dc598d1734870bb6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/stw-61e8fd83c623657f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/w77-0527a66a073ed15c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6g-b16e60ccff69b263.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-view-3c1596a084a203f4.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/w77.25ab7aedc8e0cfc5.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-view.f8b0233ee1ce76e4.module.css" />
<title>GitHub - gnunn1/vgrep: A grep graphical user interface written in D and GTK 3 · GitHub</title>
<meta name="route-pattern" content="/:user_id/:repository" data-turbo-transient>
<meta name="route-controller" content="files" data-turbo-transient>
<meta name="route-action" content="disambiguate" data-turbo-transient>
<meta name="fetch-nonce" content="v2:14a39179-e346-91f6-e676-e6c28872080b">
<meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb">
<meta name="request-id" content="FD05:210849:1589D581:1CDB6D37:6ADF59A9" data-pjax-transient="true"/><meta name="html-safe-nonce" content="8ac231f54bdd0294c66c07dcb38b00ba2db330d7a9d7a6c12e152a3181e88422" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJGRDA1OjIxMDg0OToxNTg5RDU4MToxQ0RCNkQzNzo2QURGNTlBOSIsInZpc2l0b3JfaWQiOiI1NjMxMTg2MTU2Nzc4Mzc5Njg5IiwicmVnaW9uX2VkZ2UiOiJmcmEiLCJyZWdpb25fcmVuZGVyIjoiZnJhIn0=" data-pjax-transient="true"/><meta name="visitor-hmac" content="65b1bcba75143ba00854ab5bca4132102effe1ceacfe6b3d303d48b32afd04f0" data-pjax-transient="true"/>
<meta name="hovercard-subject-tag" content="repository:46244169" data-turbo-transient>
<meta name="github-keyboard-shortcuts" content="repository,copilot" data-turbo-transient="true" />
<meta name="selected-link" value="repo_source" data-turbo-transient>
<link rel="assets" href="https://github.githubassets.com/">
<meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I">
<meta name="octolytics-url" content="https://collector.github.com/github/collect" />
<meta name="analytics-location" content="/&lt;user-name&gt;/&lt;repo-name&gt;" data-turbo-transient="true" />
<meta name="user-login" content="">
<meta name="viewport" content="width=device-width">
<meta name="description" content="A grep graphical user interface written in D and GTK 3 - gnunn1/vgrep">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
<meta property="fb:app_id" content="1401488693436528">
<meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/gnunn1/vgrep" />
<meta name="twitter:image" content="https://opengraph.githubassets.com/657bed73f99443d49c0f4ce267484123295db2fa75bcb026453a6a5a759e1b57/gnunn1/vgrep" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="GitHub - gnunn1/vgrep: A grep graphical user interface written in D and GTK 3" /><meta name="twitter:description" content="A grep graphical user interface written in D and GTK 3 - gnunn1/vgrep" />
<meta property="og:image" content="https://opengraph.githubassets.com/657bed73f99443d49c0f4ce267484123295db2fa75bcb026453a6a5a759e1b57/gnunn1/vgrep" /><meta property="og:image:alt" content="A grep graphical user interface written in D and GTK 3 - gnunn1/vgrep" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="600" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="GitHub - gnunn1/vgrep: A grep graphical user interface written in D and GTK 3" /><meta property="og:url" content="https://github.com/gnunn1/vgrep" /><meta property="og:description" content="A grep graphical user interface written in D and GTK 3 - gnunn1/vgrep" />
<meta name="hostname" content="github.com">
<meta name="expected-hostname" content="github.com">
<meta http-equiv="x-pjax-version" content="b81857601f3cfc6217401e7227b2e97f6a17b7c285bac4cfafc01fbf54f97788" data-turbo-track="reload">
<meta http-equiv="x-pjax-csp-version" content="d546acd15426e62dc1faed109148b7d627958da25dee9fa681acfb875a2d8728" data-turbo-track="reload">
<meta http-equiv="x-pjax-css-version" content="9d9b01efda4d19542ab9c3e0a21f5b6dd074bb6b27faa77e51b4fe457a091220" data-turbo-track="reload">
<meta http-equiv="x-pjax-js-version" content="6160d3560837ba88bf2f4743d0d20d8f1a64d5cb904c43c1ab6c83b95a5bc97a" data-turbo-track="reload">
<meta name="turbo-cache-control" content="no-preview" data-turbo-transient="">
<meta name="turbo-cache-control" content="no-cache" data-turbo-transient>
<meta data-hydrostats="publish">
<meta name="go-import" content="github.com/gnunn1/vgrep git https://github.com/gnunn1/vgrep.git">
<meta name="octolytics-dimension-user_id" content="9358238" /><meta name="octolytics-dimension-user_login" content="gnunn1" /><meta name="octolytics-dimension-repository_id" content="46244169" /><meta name="octolytics-dimension-repository_nwo" content="gnunn1/vgrep" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="46244169" /><meta name="octolytics-dimension-repository_network_root_nwo" content="gnunn1/vgrep" />
<meta name="turbo-body-classes" content="logged-out env-production page-responsive">
<meta name="disable-turbo" content="false">
<meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
<meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
<meta name="release" content="1d6bab509c63982484732fef48ac891446a7ca46" data-turbo-track="reload">
<meta name="ui-target" content="full">
<link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000">
<link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
<link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon">
<meta name="theme-color" content="#1e2327">
<meta name="color-scheme" content="light dark" />
<link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
</head>
<body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div id="__primerPortalRoot__" style="z-index: 1000; position: absolute; width: 100%;" data-turbo-permanent></div>
<div class="position-relative header-wrapper js-header-wrapper ">
<a href="#start-of-content" data-skip-target-assigned="false" class="px-2 tmp-py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a>
<span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">
<span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span>
</span>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-b9143e9b577ebc64.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.6e2227f5a0b1c784.module.css" />
<react-partial
partial-name="keyboard-shortcuts-dialog"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/g6m-c6c2e85d4cbe6e0f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-install-banner-partial-7428daf7a3910b95.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-install-banner-partial.54a1ce4a8b5395b5.module.css" />
<react-partial
partial-name="app-install-banner-partial"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h3j-f1362403421e6888.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qz-cb0a40e50f2a2288.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fz-cb55e83c29d0a351.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/skl-90fea02d318d647f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h4-5f55e06e297293d6.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z7-54a4e2eade1aa26b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a6j-32ec4660665b36c1.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/marketing-header-f37244122aa8a66f.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-brand-css.bf4feb030857a64b.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/a6j.40fbb8aed1553149.module.css" />
<react-partial
partial-name="marketing-header"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2Fgithub.com%2Fgnunn1%2Fvgrep","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=gnunn1%2Fvgrep","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://github.com/gnunn1/vgrep\",\"user_id\":null}}","auth_hydro_click_hmac":"b4d98089cc6e42a9be23fc77ffd10ad0545a2f72bd3d70f4f7b41986fde70e74","overlay":false,"fixed":false}}</script>
<div data-target="react-partial.reactRoot"><div data-color-mode="dark" data-light-theme="light" data-dark-theme="dark"><header class="root__q6pgdo HeaderMktg header-logged-out" role="banner" data-marketing-header="true" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark" data-is-top="true"><h2 class="visuallyHidden__TIbnmb">Navigation Menu</h2><button type="button" class="backdrop__rMNFxs" aria-label="Close navigation menu"></button><div class="bar__cF4m1O"><div class="topRow__-dqkhM"><div class="toggleSlot__-ODxSX"><button type="button" class="toggle__kPg75-" aria-label="Toggle navigation" aria-expanded="false"><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span></button></div><a href="/" aria-label="Homepage" class="logo__bX9RKh" data-analytics-event="{&quot;action&quot;:&quot;homepage&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;logo&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;homepage_link_logo_header&quot;}"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github" viewBox="0 0 24 24" width="32" height="32" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path></svg></a><div class="mobileActions__8F9jkX"><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw cta__xkenoh" href="/login?return_to=https%3A%2F%2Fgithub.com%2Fgnunn1%2Fvgrep" data-analytics-event="{&quot;action&quot;:&quot;sign_in&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_in_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/gnunn1/vgrep&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="b4d98089cc6e42a9be23fc77ffd10ad0545a2f72bd3d70f4f7b41986fde70e74"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH">Sign in</span></span></a><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw trigger__VWDtQ2" type="button" aria-haspopup="dialog" aria-labelledby="_R_3dd_"><span class="Primer_Brand__Button-module__Button__leading-visual___jjtTe" data-testid="Button-leading-visual"><svg data-component="Octicon" focusable="false" aria-hidden="true" class="octicon octicon-sliders Primer_Brand__Button-module__Button__icon-visual____qybb" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path></svg></span></button><div class="Primer_Brand__Tooltip-module__Tooltip___0Eipx" data-direction="s" aria-hidden="true" id="_R_3dd_">Appearance settings</div></div></div><div class="menu__2EHTkB"><div class="menuWrapper__Vmk5KX"><nav class="nav__mHQXuz" aria-label="Global"><ul class="list__2Gh7vS"><li><div class="container__KHyzq4"><button type="button" class="buttLine truncated
</react-partial>
<div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<button id="icon-button-580adfff-e89c-4eda-851c-fb97d99eee1b" aria-labelledby="tooltip-bda1c6cb-2a9a-408f-9bad-4f900b2e85ca" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button><tool-tip id="tooltip-bda1c6cb-2a9a-408f-9bad-4f900b2e85ca" for="icon-button-580adfff-e89c-4eda-851c-fb97d99eee1b" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip>
</div>
</div>
<div id="start-of-content" class="show-on-focus"></div>
<div id="js-flash-container" class="flash-container" data-turbo-replace>
<template class="js-flash-template">
<div class="flash flash-full {{ className }}">
<div >
<button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div aria-atomic="true" role="alert" class="js-flash-alert">
<div>{{ message }}</div>
</div>
</div>
</div>
</template>
</div>
<div
class="application-main "
data-commit-hovercards-enabled
data-discussion-hovercards-enabled
data-issue-and-pr-hovercards-enabled
data-project-hovercards-enabled
>
<div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
<main id="js-repo-pjax-container" >
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cn-7a4f85e8a901f4f7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0b-a7be65069037ffea.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t5-2c5d26edae56bda2.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5l-60d6b21dcbe3c5b7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1a-76a60fd58c2fa34b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/rk7-418a4f74edbc9f0d.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zxp-3eb99f149f91a754.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9ty-47c453f28886426e.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/r3j-2177885dae8b60eb.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1t-bdeb715d0c007303.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3j-c46f566649f3b4dc.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aj-7444763a0a51ca63.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sgn-de0af0b55144d4f4.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/li6-9946ed6b82f92046.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jvc-172b2b204ed5e8d3.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/global-nav-bar-67002cbbf88db339.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-nav-bar.912b64fbbec4ee98.module.css" />
<react-partial
partial-name="global-nav-bar"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"contextRegion":{"crumbs":[{"crumb_type":"user","label":"gnunn1","is_root":false,"href":"/gnunn1"},{"crumb_type":"repository","label":"vgrep","is_root":false,"href":"/gnunn1/vgrep"}],"localNavigation":[{"id":"code","icon":"code","label":"Code","href":"/gnunn1/vgrep","selectedLinks":["repo_source","repo_downloads","repo_commits","repo_releases","repo_tags","repo_branches","repo_packages","repo_deployments","repo_attestations"],"popoverTarget":false,"commandId":"repositories:go-to-code","reactNav":{"appTarget":"code-view","anchor":"code-view-repo-link"},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"issues","icon":"issue-opened","label":"Issues","href":"/gnunn1/vgrep/issues","selectedLinks":["repo_issues","repo_labels","repo_milestones"],"count":1,"popoverTarget":false,"commandId":"repositories:go-to-issues","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"pull-requests","icon":"git-pull-request","label":"Pull requests","href":"/gnunn1/vgrep/pulls","selectedLinks":["repo_pulls","checks"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-pull-requests","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"actions","icon":"play","label":"Actions","href":"/gnunn1/vgrep/actions","selectedLinks":["repo_actions"],"popoverTarget":false,"commandId":"repositories:go-to-actions","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"projects","icon":"table","label":"Projects","href":"/gnunn1/vgrep/projects","selectedLinks":["repo_projects","new_repo_project","repo_project"],"popoverTarget":false,"commandId":"repositories:go-to-projects","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"wiki","icon":"book","label":"Wiki","href":"/gnunn1/vgrep/wiki","selectedLinks":["repo_wiki"],"popoverTarget":false,"commandId":"repositories:go-to-wiki","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"security-and-quality","icon":"shield","label":"Security and quality","href":"/gnunn1/vgrep/security","selectedLinks":["security","overview","alerts","policy","token_scanning","code_scanning"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-security","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"insights","icon":"graph","label":"Insights","href":"/gnunn1/vgrep/pulse","selectedLinks":["repo_graphs","repo_contributors","dependency_graph","dependabot_updates","pulse","people","community"],"popoverTarget":false,"commandId":"repositories:go-to-insights","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}}],"localNavigationUpdateChannel":null,"selectedLink":null,"currentPath":"/gnunn1/vgrep"},"owner":null,"headerLogo":{"href":"/","aria-label":"Homepage "},"notifications":{"indicatorMode":"disabled","websocketChannel":null,"fetchIndicatorSrc":"/notifications/indicator","fetchIndicatorEnabled":false},"issues":{"href":"/issues"},"pulls":{"href":"/pulls"},"contributedRepos":{"href":"/repos"},"copilot":{"show":false,"showAgentsButton":false,"showRelaunchAnnouncement":false,"copilotChatUrl":null,"copilotApiUrl":"https://api.githubcopilot.com"},"search":{"show":true,"showCommandPalette":false,"isSearchPage":false,"isJumpToSearch":false,"searchContext":{"scope":"repo:gnunn1/vgrep","current_repo_name":"vgrep","current_repo_nwo":"gnunn1/vgrep","user_id":"gnunn1"}},"commandPalette":null,"enterpriseBar":{"show":false},"globalTransactionalMessage":[],"payloadsUrl":"/_global-navigation/payloads.json?can_toggle_site_admin_and_employee_status=0\u0026is_admin_mode_on=0\u0026is_ui_opted_out=0\u0026show_ui_opt_out=0\u0026v=8","contextRegionUrl":"/_global-navigation/context-region.json"}}</script>
<div data-target="react-partial.reactRoot"><header aria-label="Global navigation menu" data-component="Stack" class="GlobalNav appHeader__6OmbvL prc-Stack-Stack-UQ9k6" data-gap="none" data-direction="vertical" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="none"><div data-component="Stack" class="prc-Stack-Stack-UQ9k6" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="center" data-padding="none"><div data-testid="top-nav-center" data-component="Stack" class="center__f1ujjY withLocalNavigation__FzpnU6 loggedOut__--dPuC prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="normal"><nav class="contextRegion__Wb1-GR prc-Breadcrumbs-BreadcrumbsBase-3Gb-B" aria-label="Breadcrumbs" data-overflow="menu" data-variant="normal" data-component="Breadcrumbs"><ol class="prc-Breadcrumbs-BreadcrumbsList-BKjpe"><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/gnunn1" data-discover="true"><span class="">gnunn1</span></a></li><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/gnunn1/vgrep" data-discover="true"><span class="contextCrumbLast__l2P28s">vgrep</span></a></li></ol></nav></div><div data-testid="top-nav-right" data-component="Stack" class="right__5m36ST withLocalNavigation__FzpnU6 rightWithResponsiveCreateButton__JePGAt prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="start" data-padding="normal"></div></div><h2 class="prc-src-InternalVisuallyHidden-2YaI6">Repository navigation</h2><nav class="prc-components-UnderlineWrapper-eT-Yj prc-UnderlineNav-UnderlineWrapper-GWONT LocalNavigation__QHRW7C" aria-label="Repository" data-variant="inset" data-overflow-mode="wrap" data-hide-icons-breakpoint="medium"><ul class="prc-UnderlineNav-ItemsList-oj8gN prc-components-UnderlineItemList-xKlKC" role="list"><li role="presentation" aria-hidden="true" class="prc-UnderlineNav-WrapSpacer--aLgz"></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a aria-current="page" data-tab-item="code" data-react-nav="code-view" data-react-nav-anchor="code-view-repo-link" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/gnunn1/vgrep" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-code" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path></svg></span><span data-component="text" data-content="Code">Code</span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="issues" data-react-nav="repo" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/gnunn1/vgrep/issues" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-issue-opened" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path></svg></span><span data-component="text" data-content="Issues">Issues</span><span data-component="counter"><span aria-hidden="true" data-variant="secondary" data-component="CounterLabel" class="prc-CounterLabel-CounterLabel-X-kRU">1</span><span class="prc-VisuallyHidden-VisuallyHidden-Q0qSB"> (<!-- -->1<!-- -->)</span></span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="pull-requests" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/gnunn1/vgrep/pulls" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-pull-request" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.Line truncated
</react-partial>
<turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class="">
<div id="repo-content-pjax-container" class="repository-content " >
<react-app
app-name="code-view"
initial-path="/gnunn1/vgrep"
style="display: block; min-height: calc(100vh - 64px);"
data-attempted-ssr="true"
data-ssr="true"
data-lazy="false"
data-alternate="false"
data-data-router-enabled="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-app.embeddedData">{"payload":{"codeViewRepoRoute":{"path":"/","refInfo":{"name":"master","listCacheKey":"v0:1447636542.0","canEdit":false,"refType":"branch","currentOid":"06275eb7de4a81a08c548f5b28507cd8896af7d4"},"tree":{"items":[{"name":"pkg","path":"pkg","contentType":"directory"},{"name":"po","path":"po","contentType":"directory"},{"name":"source","path":"source","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"dub.json","path":"dub.json","contentType":"file"},{"name":"dub.selections.json","path":"dub.selections.json","contentType":"file"},{"name":"dub.userprefs","path":"dub.userprefs","contentType":"file"},{"name":"extract-strings.sh","path":"extract-strings.sh","contentType":"file"},{"name":"install.sh","path":"install.sh","contentType":"file"}],"totalCount":11,"templateDirectorySuggestionUrl":null,"readme":null,"showBranchInfobar":false},"userNameDisplayConfiguration":null,"treeExpanded":false,"symbolsExpanded":false,"copilotSWEAgentEnabled":false,"copilotAccessAllowed":false,"isOverview":true,"overview":{"banners":{"shouldRecommendReadme":false,"isPersonalRepo":false,"showUseActionBanner":false,"actionSlug":null,"actionId":null,"showProtectBranchBanner":false,"requiredCustomPropertyValuesMissingCount":0,"transactionalMessageBanner":null,"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_repo","releasePath":"/gnunn1/vgrep/releases/new?marketplace=true","showPublishActionBanner":false},"interactionLimitBanner":null,"showInvitationBanner":false,"inviterName":null,"actionsMigrationBannerInfo":{"releaseTags":[],"showImmutableActionsMigrationBanner":false,"initialMigrationStatus":null},"copilotSurveyBanner":null,"showSpammyBanner":false,"blockedContributorsBanner":null,"codespacesSurveyBanner":null},"codeButton":{"contactPath":"/contact","isEnterprise":false,"local":{"protocolInfo":{"httpAvailable":true,"sshAvailable":null,"httpUrl":"https://github.com/gnunn1/vgrep.git","showCloneWarning":null,"sshUrl":null,"sshCertificatesRequired":null,"sshCertificatesAvailable":null,"ghCliUrl":"gh repo clone gnunn1/vgrep","defaultProtocol":"http","newSshKeyUrl":"/settings/ssh/new","setProtocolPath":"/users/set_protocol?protocol_type=clone"},"platformInfo":{"cloneUrl":"https://desktop.github.com","showVisualStudioCloneButton":false,"visualStudioCloneUrl":"https://windows.github.com","showXcodeCloneButton":false,"xcodeCloneUrl":"xcode://clone?repo=https%3A%2F%2Fgithub.com%2Fgnunn1%2Fvgrep","zipballUrl":"/gnunn1/vgrep/archive/refs/heads/master.zip"}},"newCodespacePath":"/codespaces/new?hide_repo_select=true\u0026repo=46244169"},"popovers":{"rename":null,"renamedParentRepo":null},"commitCount":"22","overviewFiles":[{"displayName":"README.md","repoName":"vgrep","refName":"master","path":"README.md","preferredFileType":"readme","tabName":"README","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eThis application is deprecated so no support is available, leaving repo here for posterity only\u003c/h2\u003e\u003ca id=\"user-content-this-application-is-deprecated-so-no-support-is-available-leaving-repo-here-for-posterity-only\" class=\"anchor\" aria-label=\"Permalink: This application is deprecated so no support is available, leaving repo here for posterity only\" href=\"#this-application-is-deprecated-so-no-support-is-available-leaving-repo-here-for-posterity-only\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eVisual Grep\u003c/h1\u003e\u003ca id=\"user-content-visual-grep\" class=\"anchor\" aria-label=\"Permalink: Visual Grep\" href=\"#visual-grep\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1Line truncated
<div data-target="react-app.reactRoot"><link rel="preload" as="image" href="https://avatars.githubusercontent.com/u/9358238?s=60&amp;v=4"/><meta name="github-code-view-meta-stats" id="github-code-view-meta-stats" data-hydrostats="publish"/> <!-- --> <a hidden="" id="code-view-repo-link" href="/gnunn1/vgrep" data-discover="true"></a> <div class="d-none"></div><div><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><div class="prc-PageLayout-PageLayoutContent-BneH9"><div data-component="SplitPageLayout.Content" class="prc-PageLayout-ContentWrapper-gR9eG" data-is-hidden-narrow="false"><div class="prc-PageLayout-Content-xWL-A" data-width="full" style="--spacing:var(--spacing-none)"><div class="content__cw9d2I" data-selector="repos-split-pane-content" id="repos-split-pane-content" tabindex="0"><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d container-xl" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><header data-component="SplitPageLayout.Header" data-hidden="false" class="prc-PageLayout-Header-0of-R tmp-px-3 tmp-px-lg-5" style="--spacing:var(--spacing-none)"><div class="prc-PageLayout-HeaderContent-gdFfN" style="--spacing:var(--spacing-none)"><!--&--><div class="tmp-pt-3 tmp-pb-3 border-bottom color-border-muted"><div class="d-flex flex-wrap flex-items-center gapx-3 gapy-1"><div class="TitleWrapper__4f5JPQ"><div id="repo-title-component"><div class="d-flex flex-items-center f3 text-normal min-width-0"><img data-component="Avatar" class="mr-2 flex-shrink-0 prc-Avatar-Avatar-0xaUi" alt="gnunn1" width="24" height="24" style="--avatarSize-regular:24px" src="https://avatars.githubusercontent.com/u/9358238?s=60&amp;v=4" data-testid="github-avatar"/><div itemProp="name" data-testid="repo-name-wrapper" class="mr-2 prc-Truncate-Truncate-2G1eo" data-inline="true" title="vgrep" style="--truncate-max-width:100%"><strong><a class="color-fg-default prc-Link-Link-9ZwDx" data-component="Link" data-testid="repo-name-link" href="/gnunn1/vgrep" data-discover="true">vgrep</a></strong></div><span class="mr-1 v-align-middle prc-Label-Label-qG-Zu" data-size="small" data-variant="secondary" data-testid="repo-visibility-label" data-component="Label">Public</span></div></div></div><div><ul class="list-style-none d-flex flex-shrink-0 flex-wrap flex-items-center gap-2 py-1 Actions__zFJ2t2" data-testid="repo-header-actions"><li><a data-component="Button" type="button" href="/login?return_to=%2Fgnunn1%2Fvgrep" rel="nofollow" aria-label="You must be signed in to change notification settings" data-testid="notifications-sign-in-button" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default" aria-describedby="_R_7abahlik5_"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-bell" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3">Notifications</span></span></a><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" role="tooltip" aria-hidden="true" id="_R_7abahlik5_">You must be signed in to change notification settings</span></li><li><a data-component="Button" type="button" href="/login?return_to=%2Fgnunn1%2Fvgrep" data-testid="fork-button" aria-label="You must be signed in to fork a repository" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-repo-forked" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M5 5.372v.878c0 .414.336.75.7Line truncated
<div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">Visual Grep</h1><a id="user-content-visual-grep" class="anchor" aria-label="Permalink: Visual Grep" href="#visual-grep"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">A grep graphical user interface written in D and GTK 3</p>
<div class="markdown-heading" dir="auto"><h6 tabindex="-1" class="heading-element" dir="auto">Main Window</h6><a id="user-content-main-window" class="anchor" aria-label="Permalink: Main Window" href="#main-window"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/399b9a9a2a17891f151fc26f20e47d80fa10e02284f845be35978241b36a9a9d/687474703a2f2f7777772e67657870657274732e636f6d2f696d672f76677265702f6d61696e2e706e67"><img src="https://camo.githubusercontent.com/399b9a9a2a17891f151fc26f20e47d80fa10e02284f845be35978241b36a9a9d/687474703a2f2f7777772e67657870657274732e636f6d2f696d672f76677265702f6d61696e2e706e67" alt="Screenshot" data-canonical-src="http://www.gexperts.com/img/vgrep/main.png" style="max-width: 100%;"></a></p>
<div class="markdown-heading" dir="auto"><h6 tabindex="-1" class="heading-element" dir="auto">Find Dialog</h6><a id="user-content-find-dialog" class="anchor" aria-label="Permalink: Find Dialog" href="#find-dialog"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/17467ca735bc0b4461507460d7371eb56cb8ea0cbeb7e3cff4b7ba1196f27adc/687474703a2f2f7777772e67657870657274732e636f6d2f696d672f76677265702f6f7074696f6e732e706e67"><img src="https://camo.githubusercontent.com/17467ca735bc0b4461507460d7371eb56cb8ea0cbeb7e3cff4b7ba1196f27adc/687474703a2f2f7777772e67657870657274732e636f6d2f696d672f76677265702f6f7074696f6e732e706e67" alt="Screenshot" data-canonical-src="http://www.gexperts.com/img/vgrep/options.png" style="max-width: 100%;"></a></p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">About</h3><a id="user-content-about" class="anchor" aria-label="Permalink: About" href="#about"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Visual Grep is a small utility application that provides grep capabilities in a GUI application. While the command line grep is powerful and useful for a variety of tasks, there are times when I prefer using a GUI to persistently hold the results and make them easy to browse. Thus this utility was born to scratch that itch.</p>
<p dir="auto">The following features are currently available:</p>
<ul dir="auto">
<li>Supports tabs for multiple searches</li>
<li>Multi-threaded application, searches happen in the background</li>
<li>Supports regular expressions as per the <a href="http://dlang.org/phobos/std_regex.html" rel="nofollow">D documentation</a></li>
</ul>
<p dir="auto">The application was written using GTK 3 and an effort was made to conform to Gnome Human Interface Guidelines (HIG). As a result, it does use CSD (i.e. the GTK HeaderBar) and no allowance has been made for other Desktop Environments (xfce, unity, kde, etc) at this time so your mileage may vary. Consideration for other environments may be given if demand warrants it.</p>
<p dir="auto">At this point in time the application should be considered early alpha and has only been tested under Arch Linux using GTK 3.1.8.</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Dependencies</h3><a id="user-content-dependencies" class="anchor" aria-label="Permalink: Dependencies" href="#dependencies"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Visual Grep requires the following libraries to be installed in order to run:</p>
<ul dir="auto">
<li>GTK 3.1.6 or later</li>
</ul>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Todo Items</h3><a id="user-content-todo-items" class="anchor" aria-label="Permalink: Todo Items" href="#todo-items"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Since this is an early alpha release, there are a number of features which have not yet been developed including:</p>
<ul dir="auto">
<li>Save recent searches</li>
<li>Support regex for file matching</li>
<li>Command line parameters</li>
<li>Support sorting in result and match lists</li>
</ul>
<p dir="auto">Additional feature requests are gladly accepted</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Building</h3><a id="user-content-building" class="anchor" aria-label="Permalink: Building" href="#building"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Visual Grep is written in D and GTK 3 using the gtkd framework. This project uses dub to manage the build process including fetching the dependencies, thus there is no need to install dependencies manually. The only thing you need to install to build the application is the D tools (DMD and Phobos) along with dub itself.</p>
<p dir="auto">Once you have those installed, building the application is a one line command as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dub build --build=release"><pre class="notranslate"><code>dub build --build=release
</code></pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Build Dependencies</h4><a id="user-content-build-dependencies" class="anchor" aria-label="Permalink: Build Dependencies" href="#build-dependencies"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Visual Grep depends on the following libraries as defined in dub.json:</p>
<ul dir="auto">
<li><a href="http://gtkd.org/" rel="nofollow">gtkd</a> &gt;= 3.1.4</li>
<li><a href="https://github.com/Abscissa/SDLang-D/blob/master/HOWTO.md">sdlang-d</a> &gt;= 0.9.3</li>
</ul>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Installation</h3><a id="user-content-installation" class="anchor" aria-label="Permalink: Installation" href="#installation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Visual Grep can be installed on arch by using the <em>visual-grep</em> package in AUR.</p>
<p dir="auto">For other distros, no installation packages are available at this time. A compiled binary can be downloaded from the releases.</p>
</article></div></div></div></div></div></div></div><div class="prc-PageLayout-PaneWrapper-pHPop pr-2" style="--offset-header:0px;--spacing-row:var(--spacing-none);--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="end"><div class="prc-PageLayout-HorizontalDivider-JLVqp prc-PageLayout-PaneHorizontalDivider-9tbnE" data-component="PageLayout.HorizontalDivider" data-variant-narrow="none" data-variant-regular="none" data-position="end" style="--spacing-divider:var(--spacing-none);--spacing:var(--spacing-none)"></div><div class="prc-PageLayout-Pane-AyzHK" data-component="SplitPageLayout.Pane" style="--spacing:var(--spacing-normal);--pane-min-width:256px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));--pane-width-size:var(--pane-width-large);--pane-width:320px"><!--&--><div class="borderGrid__VCnF9i"><div class="sidebarSection__oqw6Y8 HideWhenNarrow__nfGOuR border-0"><h2 class="sectionHeading__4n11uG prc-Heading-Heading-MtWFE" data-variant="small" data-component="Heading"><span>About</span></h2><p class="description__ej4leF prc-Text-Text-9mHv3" data-component="Text">A grep graphical user interface written in D and GTK 3</p><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Resources</span></h3><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#readme-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-book mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path></svg><span>Readme</span></a></div><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#MPL-2.0-1-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-law mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path></svg><span>MPL-2.0 license</span></a></div><div class="insights__9SON7y"><div class="insightLinks__Vv5-fu"><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="/gnunn1/vgrep/activity" data-discover="true"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-pulse mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"></path></svg><span>Activity</span></a></div></div><div class="insightStats__Z3jICr"><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Stars</span></h3><div class="mt-2 insightItem__0CLkke"><span class="socialStat__OaJfGy"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-star mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-Line truncated
</react-app>
</div>
</turbo-frame>
</main>
</div>
</div>
<footer class="footer f6 color-fg-muted color-border-subtle tmp-pt-7 tmp-pb-6 p-responsive" role="contentinfo" >
<h2 class='sr-only'>Footer</h2>
<div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap">
<div class="d-flex flex-items-center flex-shrink-0 mx-2">
<a aria-label="GitHub Homepage" class="footer-octicon mr-2" href="https://github.com">
<svg aria-hidden="true" data-component="Octicon" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
<path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path>
</svg>
</a>
<span>
&copy; 2026 GitHub,&nbsp;Inc.
</span>
</div>
<nav aria-label="Footer">
<h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3>
<ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading">
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to Terms&quot;,&quot;label&quot;:&quot;text:terms&quot;}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to privacy&quot;,&quot;label&quot;:&quot;text:privacy&quot;}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to security&quot;,&quot;label&quot;:&quot;text:security&quot;}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to status&quot;,&quot;label&quot;:&quot;text:status&quot;}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to community&quot;,&quot;label&quot;:&quot;text:community&quot;}" href="https://github.community/" data-view-component="true" class="Link--secondary Link">Community</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to docs&quot;,&quot;label&quot;:&quot;text:docs&quot;}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to contact&quot;,&quot;label&quot;:&quot;text:contact&quot;}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a>
</li>
<li class="mx-2" >
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;cookies&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;cookies_link_subfooter_footer&quot;}"
>
Manage cookies
</button>
</cookie-consent-link>
</li>
<li class="mx-2">
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent text-left"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;dont_share_info&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;dont_share_info_link_subfooter_footer&quot;}"
>
Do not share my personal information
</button>
</cookie-consent-link>
</li>
</ul>
</nav>
</div>
</footer>
<ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999"
data-locale="en"
data-initial-cookie-consent-allowed=""
data-cookie-consent-required="false"
></ghcc-consent>
<div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
You can’t perform that action at this time.
</div>
<template id="site-details-dialog">
<details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open>
<summary role="button" aria-label="Close dialog"></summary>
<details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">
<button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div class="octocat-spinner tmp-my-6 js-details-dialog-spinner"></div>
</details-dialog>
</details>
</template>
<div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;">
<div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;">
</div>
</div>
<template id="snippet-clipboard-copy-button">
<div class="zeroclipboard-container position-absolute right-0 top-0">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2 tmp-m-2">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2 tmp-m-2">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
<template id="snippet-clipboard-copy-button-unpositioned">
<div class="zeroclipboard-container">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
</div>
<div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div>
<div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div>
</body>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,83 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><base href="/">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Apps/Builder – GNOME Wiki Archive</title>
<link rel="stylesheet" type="text/css" media="all" charset="utf-8" href="gnome/css/common.css">
<link rel="stylesheet" type="text/css" media="screen" charset="utf-8" href="gnome/css/screen.css">
<link rel="stylesheet" type="text/css" media="print" charset="utf-8" href="gnome/css/print.css">
<style type="text/css">
ul.pagetitle{
display: inline;
margin: 0;
padding: 0;
font-size: 1.5em;
}
li.pagetitle{
display: inline;
margin: 0;
}
td.noborder {
border: 0;
}
</style>
</head>
<body><div class="retirement_banner">This site has been retired. For up to date information, see <a href="https://handbook.gnome.org/">handbook.gnome.org</a> or <a href="https://gitlab.gnome.org/">gitlab.gnome.org</a>.</div>
<table>
<tr>
<td class="noborder">
<img src="logo.png">
</td>
<td class="noborder">
<ul class="pagetitle">
<li class="pagetitle"><a class="backlink">Apps/Builder</a>
</ul>
<br><br>
[<a href="Home.html">Home</a>]&nbsp;[<a href="TitleIndex.html">TitleIndex</a>]&nbsp;[<a href="WordIndex.html">WordIndex</a>]&nbsp;
</td>
</tr>
</table>
<hr>
<div id="page">
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
<span class="anchor" id="line-1"></span><p class="line867"><span class="anchor" id="line-2"></span><span class="anchor" id="line-3"></span><span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><div class="image-left app-header clearfix"><span class="anchor" id="line-1-1"></span><p class="line867"><img alt="https://raw.githubusercontent.com/chergert/gnome-builder-web/master/org.gnome.Builder.png" class="external_image" src="https://raw.githubusercontent.com/chergert/gnome-builder-web/master/org.gnome.Builder.png" title="https://raw.githubusercontent.com/chergert/gnome-builder-web/master/org.gnome.Builder.png" /> <span class="anchor" id="line-2-1"></span>
<h1 id="Builder">Builder</h1>
<span class="anchor" id="line-3-1"></span><p class="line867">
<h2 id="A_toolsmith_for_GNOME-based_applications">A toolsmith for GNOME-based applications</h2>
</div><span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-8"></span><span class="anchor" id="line-9"></span><p class="line867"><span class="anchor" id="line-10"></span><span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span><span class="anchor" id="line-15"></span><div class="navigation-bar"><span class="anchor" id="line-1-2"></span><ul><li><p class="line891"><strong><a href="./Apps(2f)Builder.html">Home</a></strong> <span class="anchor" id="line-2-2"></span></li><li><p class="line891"><a class="https" href="https://builder.readthedocs.io">Documentation</a> <span class="anchor" id="line-3-2"></span></li><li><p class="line891"><a href="./Apps(2f)Builder(2f)Downloads.html">Downloads</a> <span class="anchor" id="line-4-1"></span></li><li><p class="line891"><a href="./Apps(2f)Builder(2f)Roadmap.html">Roadmap</a> <span class="anchor" id="line-5-1"></span></li><li><p class="line891"><a href="./Apps(2f)Builder(2f)Contribute.html">Contribute</a> </li></ul></div><span class="anchor" id="line-16"></span><span class="anchor" id="line-17"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line867"><strong><span class="anchor" id="line-20"></span><span class="anchor" id="line-21"></span><div class="center btn btn-blue"><span class="anchor" id="line-1-3"></span><p class="line867"><a class="https" href="https://flathub.org/repo/appstream/org.gnome.Builder.flatpakref">Install Builder 44</a> </div><span class="anchor" id="line-22"></span><p class="line867"><span class="anchor" id="line-23"></span><span class="anchor" id="line-24"></span><div class="center btn btn-default"><span class="anchor" id="line-1-4"></span><p class="line867"><a class="https" href="https://nightly.gnome.org/repo/appstream/org.gnome.Builder.Devel.flatpakref">Install Builder Nightly</a> </div><p class="line867"></strong><span class="anchor" id="line-25"></span><span class="anchor" id="line-26"></span><p class="line867"><span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span><span class="anchor" id="line-29"></span><div class="content-style padding-bottom-sm center padding-bottom-sm"><span class="anchor" id="line-1-5"></span><p class="line867">
<h1 id="About_Builder">About Builder</h1>
<span class="anchor" id="line-2-3"></span><p class="line874">A tool to help you write and contribute to great GNOME-based applications. </div><span class="anchor" id="line-30"></span><span class="anchor" id="line-31"></span><p class="line867"><span class="anchor" id="line-32"></span><span class="anchor" id="line-33"></span><span class="anchor" id="line-34"></span><span class="anchor" id="line-35"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-6"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/05-search.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/05-search.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/05-search.png" width="616" /> <span class="anchor" id="line-2-4"></span>
<h1 id="Global_search">Global search</h1>
<span class="anchor" id="line-3-3"></span><p class="line874">Search for files, classes, and functions with lightning fast fuzzy search. </div><span class="anchor" id="line-36"></span><span class="anchor" id="line-37"></span><p class="line867"><span class="anchor" id="line-38"></span><span class="anchor" id="line-39"></span><span class="anchor" id="line-40"></span><span class="anchor" id="line-41"></span><div class="image-left content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-7"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/04-editor.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/04-editor.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/04-editor.png" width="744" /> <span class="anchor" id="line-2-5"></span>
<h1 id="Auto-Completion">Auto-Completion</h1>
<span class="anchor" id="line-3-4"></span><p class="line874">Explore APIs used by your project with auto-completion for C/C++, Python, Rust, and Vala. For languages without native support, ctags integration is provided. </div><span class="anchor" id="line-42"></span><span class="anchor" id="line-43"></span><p class="line867"><span class="anchor" id="line-44"></span><span class="anchor" id="line-45"></span><span class="anchor" id="line-46"></span><span class="anchor" id="line-47"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-8"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/07-minimap.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/07-minimap.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/07-minimap.png" width="464" /> <span class="anchor" id="line-2-6"></span>
<h1 id="Mini_Map">Mini Map</h1>
<span class="anchor" id="line-3-5"></span><p class="line874">Never lose your place in large code bases thanks to Builder's source code map. </div><span class="anchor" id="line-48"></span><span class="anchor" id="line-49"></span><p class="line867"><span class="anchor" id="line-50"></span><span class="anchor" id="line-51"></span><span class="anchor" id="line-52"></span><span class="anchor" id="line-53"></span><div class="image-left content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-9"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/inline-documentation.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/inline-documentation.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/inline-documentation.png" width="409" /> <span class="anchor" id="line-2-7"></span>
<h1 id="Documentation_at_your_fingertips">Documentation at your fingertips</h1>
<span class="anchor" id="line-3-6"></span><p class="line874">Quickly reference documentation where you need it without losing focus. </div><span class="anchor" id="line-54"></span><span class="anchor" id="line-55"></span><p class="line867"><span class="anchor" id="line-56"></span><span class="anchor" id="line-57"></span><span class="anchor" id="line-58"></span><span class="anchor" id="line-59"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-10"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/open-in-new-frame-2.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/open-in-new-frame-2.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/open-in-new-frame-2.png" width="448" /> <span class="anchor" id="line-2-8"></span>
<h1 id="Edit_side_by_side">Edit side by side</h1>
<span class="anchor" id="line-3-7"></span><p class="line874">Have as many editors as you need. Side-by-side, one atop another, or whatever combination you're comfortable with. </div><span class="anchor" id="line-60"></span><span class="anchor" id="line-61"></span><p class="line867"><span class="anchor" id="line-62"></span><span class="anchor" id="line-63"></span><span class="anchor" id="line-64"></span><span class="anchor" id="line-65"></span><div class="image-left content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-11"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/01-greeter.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/01-greeter.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/01-greeter.png" width="526" /> <span class="anchor" id="line-2-9"></span>
<h1 id="Starting_a_new_project_is_a_snap">Starting a new project is a snap</h1>
<span class="anchor" id="line-3-8"></span><p class="line874">Feeling adventurous or just want to learn? Try creating a new project and push your creative boundaries! </div><span class="anchor" id="line-66"></span><span class="anchor" id="line-67"></span><p class="line867"><span class="anchor" id="line-68"></span><span class="anchor" id="line-69"></span><span class="anchor" id="line-70"></span><span class="anchor" id="line-71"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-12"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/03-clone.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/03-clone.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/data/appdata/03-clone.png" width="442" /> <span class="anchor" id="line-2-10"></span>
<h1 id="Git_Integration">Git Integration</h1>
<span class="anchor" id="line-3-9"></span><p class="line874">Already have a project for which you want to contribute? Simply enter the URL of the git repository and you're on your way. </div><span class="anchor" id="line-72"></span><span class="anchor" id="line-73"></span><p class="line867"><span class="anchor" id="line-74"></span><span class="anchor" id="line-75"></span><span class="anchor" id="line-76"></span><span class="anchor" id="line-77"></span><div class="image-left content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-13"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/profiler-callgraph.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/profiler-callgraph.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/profiler-callgraph.png" width="456" /> <span class="anchor" id="line-2-11"></span>
<h1 id="Application_Profiling">Application Profiling</h1>
<span class="anchor" id="line-3-10"></span><p class="line874">Keep your application running fast with Builder's integrated profiler, powered by Sysprof. </div><span class="anchor" id="line-78"></span><span class="anchor" id="line-79"></span><p class="line867"><span class="anchor" id="line-80"></span><span class="anchor" id="line-81"></span><span class="anchor" id="line-82"></span><span class="anchor" id="line-83"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-14"></span><p class="line867"><img alt="https://apps.gnome.org/assets/screenshots/org.gnome.Builder/06-debugger.png" class="external_image" src="https://apps.gnome.org/assets/screenshots/org.gnome.Builder/06-debugger.png" title="https://apps.gnome.org/assets/screenshots/org.gnome.Builder/06-debugger.png" width="456" /> <span class="anchor" id="line-2-12"></span>
<h1 id="Application_Debugger">Application Debugger</h1>
<span class="anchor" id="line-3-11"></span><p class="line874">Builder includes a modest debugger to help you track down those troubled logic errors. </div><span class="anchor" id="line-84"></span><span class="anchor" id="line-85"></span><p class="line867"><span class="anchor" id="line-86"></span><span class="anchor" id="line-87"></span><span class="anchor" id="line-88"></span><span class="anchor" id="line-89"></span><div class="image-left content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-15"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/commandbar.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/commandbar.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/commandbar.png" width="445" /> <span class="anchor" id="line-2-13"></span>
<h1 id="Take_Control_with_the_Command_Bar">Take Control with the Command Bar</h1>
<span class="anchor" id="line-3-12"></span><p class="line874">Command line interfaces are great so Builder bakes one right in. A lot of Builder's features can be alternatively accessed via the command bar, and it even has tab completion! </div><span class="anchor" id="line-90"></span><span class="anchor" id="line-91"></span><p class="line867"><span class="anchor" id="line-92"></span><span class="anchor" id="line-93"></span><span class="anchor" id="line-94"></span><span class="anchor" id="line-95"></span><div class="image-right content-style clearfix padding-bottom-sm"><span class="anchor" id="line-1-16"></span><p class="line867"><img alt="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/preferences.png" class="external_image" src="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/preferences.png" title="https://gitlab.gnome.org/GNOME/gnome-builder/raw/main/doc/help/figures/preferences.png" width="513" /> <span class="anchor" id="line-2-14"></span>
<h1 id="Tweak_all_the_things.21">Tweak all the things!</h1>
<span class="anchor" id="line-3-13"></span><p class="line874">We know you're as creative with your preferences as you are with your code so Builder makes tweaking things quick and easy. You can search across application preferences and plugins with just a couple of key strokes. </div><span class="anchor" id="line-96"></span><span class="anchor" id="line-97"></span><span class="anchor" id="line-98"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-99"></span><span class="anchor" id="line-100"></span><p class="line867">
<h3 id="Getting_Builder">Getting Builder</h3>
<span class="anchor" id="line-101"></span><ul><li style="list-style-type:none"><p class="line862">Builder is available for download through most popular distributions' software centers. Source code can be obtained from <a class="https" href="https://gitlab.gnome.org/GNOME/gnome-builder/">Builder's git repository</a>. Builder can also be installed and run via <a href="./Projects(2f)SandboxedApps.html">Flatpak</a>: <span class="anchor" id="line-102"></span><span class="anchor" id="line-103"></span><span class="anchor" id="line-104"></span><span class="anchor" id="line-105"></span><pre><span class="anchor" id="line-1"></span> $ flatpak install --from https://flathub.org/repo/appstream/org.gnome.Builder.flatpakref
<span class="anchor" id="line-2"></span> $ flatpak run org.gnome.Builder</pre><span class="anchor" id="line-106"></span><span class="anchor" id="line-107"></span></li></ul><p class="line867"><img alt="{i}" height="16" src="/gnome/gnome-responsive/img/icon-info.png" title="{i}" width="16" /> If you're missing something or have trouble with installing or running Builder, check our <a class="https" href="https://builder.readthedocs.io">Documentation</a> (you'll most likely find help in the Installation and Troubleshooting section) or get in touch with the development team (see below). <span class="anchor" id="line-108"></span><span class="anchor" id="line-109"></span><p class="line867">
<h3 id="Getting_in_Touch">Getting in Touch</h3>
<span class="anchor" id="line-110"></span><ul><li style="list-style-type:none"><p class="line862">Questions regarding use and development of Builder are welcome though Builder's <a class="irc" href="irc://irc.gnome.org/%23gnome-builder">IRC channel</a> (<tt>#gnome-builder</tt> at <tt>irc.gnome.org</tt>). <span class="anchor" id="line-111"></span><span class="anchor" id="line-112"></span></li></ul><p class="line867">
<h3 id="Filing_a_bug">Filing a bug</h3>
<span class="anchor" id="line-113"></span><ul><li style="list-style-type:none"><p class="line862">If you found a problem or have a feature suggestion, feel free to <a class="https" href="https://gitlab.gnome.org/GNOME/gnome-builder/issues">file a bug at GNOME's bug tracker</a>. <span class="anchor" id="line-114"></span><span class="anchor" id="line-115"></span></li></ul><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-116"></span><a href="./CategoryIde.html">CategoryIde</a> <span class="anchor" id="line-117"></span><span class="anchor" id="bottom"></span></div>
</div>
<hr>
2024-10-23 10:58
</body>
</html>
@@ -0,0 +1,799 @@
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Component programming with ranges - D Wiki</title>
<script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Component_programming_with_ranges","wgTitle":"Component programming with ranges","wgCurRevisionId":6163,"wgRevisionId":6163,"wgArticleId":409,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Tutorials"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Component_programming_with_ranges","wgRelevantArticleId":409,"wgRequestId":"b36f93dc406b8730d8ac2a57","wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgWikiEditorEnabledModules":[]});mw.loader.state({"site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","site":"ready","user.options":"ready","user.tokens":"loading","ext.pygments":"ready","ext.smw.style":"ready","ext.smw.tooltip.styles":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","mediawiki.sectionAnchor":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready"});mw.loader.implement("user.tokens@1d7z0ue",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});
});mw.loader.load(["ext.smw.style","ext.smw.tooltips","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.toc","mediawiki.searchSuggest","skins.vector.js"]);});</script>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=ext.pygments%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&amp;only=styles&amp;skin=vector"/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=ext.smw.style%7Cext.smw.tooltip.styles&amp;only=styles&amp;skin=vector"/>
<script async="" src="/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector"></script>
<meta name="ResourceLoaderDynamicStyles" content=""/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"/>
<meta name="generator" content="MediaWiki 1.31.2"/>
<link rel="alternate" type="application/rdf+xml" title="Component programming with ranges" href="/?title=Special:ExportRDF/Component_programming_with_ranges&amp;xmlmime=rdf"/>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="D Wiki (en)"/>
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.dlang.org/api.php?action=rsd"/>
<link rel="license" href="http://www.gnu.org/copyleft/fdl.html"/>
<!--[if lt IE 9]><script src="/load.php?debug=false&amp;lang=en&amp;modules=html5shiv&amp;only=scripts&amp;skin=vector&amp;sync=1"></script><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Component_programming_with_ranges rootpage-Component_programming_with_ranges skin-vector action-view"> <div id="mw-page-base" class="noprint"></div>
<div id="mw-head-base" class="noprint"></div>
<div id="content" class="mw-body" role="main">
<a id="top"></a>
<div class="mw-indicators mw-body-content">
</div>
<h1 id="firstHeading" class="firstHeading" lang="en">Component programming with ranges</h1> <div id="bodyContent" class="mw-body-content">
<div id="siteSub" class="noprint">From D Wiki</div> <div id="contentSub"></div>
<div id="jump-to-nav" class="mw-jump">
Jump to: <a href="#mw-head">navigation</a>, <a href="#p-search">search</a>
</div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><dl><dd><i>By H. S. Teoh, August 2013</i></dd></dl>
<p>Component-style programming can be used to implement complex algorithms in a way that's straightforward to write, easy to read, and amenable to code reuse.
</p>
<div id="toc" class="toc"><div class="toctitle" lang="en" dir="ltr"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Sources_of_Complexity_in_Code"><span class="tocnumber">1</span> <span class="toctext">Sources of Complexity in Code</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Component_Programming"><span class="tocnumber">2</span> <span class="toctext">Component Programming</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Case_Study:_Formatting_a_Calendar"><span class="tocnumber">3</span> <span class="toctext">Case Study: Formatting a Calendar</span></a>
<ul>
<li class="toclevel-2 tocsection-4"><a href="#Structuring_the_Program"><span class="tocnumber">3.1</span> <span class="toctext">Structuring the Program</span></a>
<ul>
<li class="toclevel-3 tocsection-5"><a href="#Ranges"><span class="tocnumber">3.1.1</span> <span class="toctext">Ranges</span></a></li>
<li class="toclevel-3 tocsection-6"><a href="#Components"><span class="tocnumber">3.1.2</span> <span class="toctext">Components</span></a></li>
</ul>
</li>
<li class="toclevel-2 tocsection-7"><a href="#Generating_Dates_in_a_Year"><span class="tocnumber">3.2</span> <span class="toctext">Generating Dates in a Year</span></a></li>
<li class="toclevel-2 tocsection-8"><a href="#Grouping_Dates_by_Month"><span class="tocnumber">3.3</span> <span class="toctext">Grouping Dates by Month</span></a>
<ul>
<li class="toclevel-3 tocsection-9"><a href="#chunkBy"><span class="tocnumber">3.3.1</span> <span class="toctext">chunkBy</span></a></li>
<li class="toclevel-3 tocsection-10"><a href="#byMonth"><span class="tocnumber">3.3.2</span> <span class="toctext">byMonth</span></a></li>
</ul>
</li>
<li class="toclevel-2 tocsection-11"><a href="#Grouping_Dates_by_Week"><span class="tocnumber">3.4</span> <span class="toctext">Grouping Dates by Week</span></a></li>
<li class="toclevel-2 tocsection-12"><a href="#Formatting_Days_in_a_Week"><span class="tocnumber">3.5</span> <span class="toctext">Formatting Days in a Week</span></a></li>
<li class="toclevel-2 tocsection-13"><a href="#Formatting_Months"><span class="tocnumber">3.6</span> <span class="toctext">Formatting Months</span></a></li>
<li class="toclevel-2 tocsection-14"><a href="#Formatting_a_Row_of_Months"><span class="tocnumber">3.7</span> <span class="toctext">Formatting a Row of Months</span></a></li>
<li class="toclevel-2 tocsection-15"><a href="#Formatting_a_Year"><span class="tocnumber">3.8</span> <span class="toctext">Formatting a Year</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-16"><a href="#Conclusions"><span class="tocnumber">4</span> <span class="toctext">Conclusions</span></a></li>
<li class="toclevel-1 tocsection-17"><a href="#Acknowledgements"><span class="tocnumber">5</span> <span class="toctext">Acknowledgements</span></a></li>
<li class="toclevel-1 tocsection-18"><a href="#Related_readings"><span class="tocnumber">6</span> <span class="toctext">Related readings</span></a></li>
<li class="toclevel-1 tocsection-19"><a href="#Appendix"><span class="tocnumber">7</span> <span class="toctext">Appendix</span></a></li>
</ul>
</div>
<h2><span class="mw-headline" id="Sources_of_Complexity_in_Code">Sources of Complexity in Code</span></h2>
<p>One of the more influential courses I took in college was on <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Jackson_Structured_Programming">Jackson Structured Programming</a>. It identified two sources of programming complexity (i.e., where bugs are most likely to occur): structure conflicts and writing loops.
</p><p>Structure conflicts are mismatches between the structure of the program and the structure of the data, or mismatches between two or more data structures that must be processed simultaneously. For example, to read a text file formatted into lines, we may write a loop that reads each line in turn; however, the data in the file may be structured as a preamble, a body, and an epilogue. Since this structure is not reflected in the code, it often prompts programmers to introduce flags, state variables, and the like, in order to resolve the conflict between program structure and data structure. However, such ad hoc methods of resolving structure conflicts often increase the complexity of the code and the coupling between various parts of the code, making the code more fragile and prone to bugs.
</p><p>Loops are a complex construct in imperative programming. One indication of how complex they can be is the fact that proving that a loop terminates at all is, in the general case, equivalent to solving the halting problem, which is unsolvable. This is especially true when the loop condition is complex. The difficulty is further compounded when nested loops are involved. Unfortunately, the ad hoc methods of resolving structure conflicts often increase the complexity of loop conditions and introduce nested loops, thus making the code doubly prone to bugs.
</p><p>Furthermore, such code is rarely reusable, because each part of the code is intricately tied to other parts, and it is difficult to extract reusable components out of it.
</p><p>In this article, we will describe an approach to implementing complex algorithms that minimizes code complexity by using a consistent approach to resolve structure conflicts and simplify loops so that the resulting code is straightforward to write, easy to understand, and made of highly-reusable components.
</p>
<h2><span class="mw-headline" id="Component_Programming">Component Programming</span></h2>
<p>A key point in Jackson Structured Programming (JSP) is that code structure should be in 1-to-1 correspondence with the structure of the data it is operating on. Bugs and other code problems arise when the structure of the code does not correspond with the structure of the data.
</p><p>This leads us to component programming, a concept which has been employed in various incarnations. One example is the Unix shell, where input is passed through various programs called <i>filters</i> that perform various transformations on the input, and each respective output is connected via pipes into the input of the subsequent filter, until the final output is produced and sent to a data sink (output on the terminal, saved into a file, piped into a program that consumes the data without producing further output, etc.). The utility of this concept is proven in the expressiveness of the Unix command-line, in which many tasks can be accomplished simply by passing the input through the right sequence of filters connected by pipes. Functional programming languages also employ this concept in the form of lazily-evaluated sequences and <a rel="nofollow" class="external text" href="http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_sec_3.5">streams</a>, where sequential input data is successively transformed in various ways until it attains the final, desired form.
</p><p>Component programming deals with structure conflicts by recognizing that there are such conflicts in the first place. That is, it acknowledges the existence of non-corresponding structures by encapsulating <i>each</i> such structure into a separate component, rather than arbitrarily picking one of the structures to model to program after and then use ad hoc methods to resolve the resulting conflicts with the other structures. This separation of non-corresponding structures allows us to match the structure of the code to the structure of the data it is dealing with. Such components thus serve as data sources, the output of which can be passed through other components that successively transform the data until it reaches the desired form, thus resolving the non-correspondences between the original structures.
</p><p>In the remainder of this article, we will use a case study to demonstrate how this works in practice.
</p>
<h2><span class="mw-headline" id="Case_Study:_Formatting_a_Calendar">Case Study: Formatting a Calendar</span></h2>
<p>We shall use as example the classic task of laying out a yearly calendar on the console, such that given a particular year, the program will print out a number of lines that displays the 12 months in a nice grid layout, with numbers indicating each day within the month. Something like this:
</p>
<pre> January February March
1 2 3 4 5 1 2 1 2
6 7 8 9 10 11 12 3 4 5 6 7 8 9 3 4 5 6 7 8 9
13 14 15 16 17 18 19 10 11 12 13 14 15 16 10 11 12 13 14 15 16
20 21 22 23 24 25 26 17 18 19 20 21 22 23 17 18 19 20 21 22 23
27 28 29 30 31 24 25 26 27 28 24 25 26 27 28 29 30
31
April May June
1 2 3 4 5 6 1 2 3 4 1
7 8 9 10 11 12 13 5 6 7 8 9 10 11 2 3 4 5 6 7 8
14 15 16 17 18 19 20 12 13 14 15 16 17 18 9 10 11 12 13 14 15
21 22 23 24 25 26 27 19 20 21 22 23 24 25 16 17 18 19 20 21 22
28 29 30 26 27 28 29 30 31 23 24 25 26 27 28 29
30
July August September
1 2 3 4 5 6 1 2 3 1 2 3 4 5 6 7
7 8 9 10 11 12 13 4 5 6 7 8 9 10 8 9 10 11 12 13 14
14 15 16 17 18 19 20 11 12 13 14 15 16 17 15 16 17 18 19 20 21
21 22 23 24 25 26 27 18 19 20 21 22 23 24 22 23 24 25 26 27 28
28 29 30 31 25 26 27 28 29 30 31 29 30
October November December
1 2 3 4 5 1 2 1 2 3 4 5 6 7
6 7 8 9 10 11 12 3 4 5 6 7 8 9 8 9 10 11 12 13 14
13 14 15 16 17 18 19 10 11 12 13 14 15 16 15 16 17 18 19 20 21
20 21 22 23 24 25 26 17 18 19 20 21 22 23 22 23 24 25 26 27 28
27 28 29 30 31 24 25 26 27 28 29 30 29 30 31
</pre>
<p>While intuitively straightforward, this task has many points of complexity.
</p><p>Although generating all dates in a year is trivial thanks to D's <code>std.datetime</code> module, the order in which they must be processed is far from obvious. Since we're writing to the console, we're limited to outputting one line at a time; we can't draw one cell of the grid and then go back up a few lines, move a few columns over, and draw the next cell in the grid. We have to somehow print the first lines of all cells in the top row, followed by the second lines, then the third lines, etc., and repeat this process for each row in the grid. Of course, we could create an internal screen buffer that we can write to in arbitrary order, and then output this buffer line-by-line at the end, but this approach is not as elegant because it requires a much bigger memory footprint than is really necessary.
</p><p>In any case, as a result of this mismatch between the structure of the calendar and the structure of the output, the order in which the days in a month must be processed is not the natural, chronological order. We have to assemble the dates for the first weeks in each of the first 3 months, say, if we are putting 3 months per row in the grid, print those out, then assemble the dates for the second weeks in each month, print those out, etc.. Furthermore, within the rows representing each week, some days may be missing, depending on where the boundaries of adjacent months fall; these missing days must be filled out in the following month's first week before the first full week in the month is printed. It is not that simple to figure out where a week starts and ends, and how many rows are needed per month. Then if some months have more full weeks than others, they may occupy less vertical space than other months on the same row in the grid; so we need to insert blank spaces into these shorter months in order for the grid cells to line up vertically in the output.
</p><p>With this level of complexity, writing our calendar program using the traditional ad hoc way of resolving structure conflicts will certainly result in very complex, hard-to-understand, and bug-prone code. There would not be much hope of getting any reusable pieces out of it.
</p>
<h3><span class="mw-headline" id="Structuring_the_Program">Structuring the Program</span></h3>
<p>Let's consider how we may approach this problem using component programming. The first task is to identify all of the different structures that we will need to deal with:
</p>
<ul><li>Generating dates in a year</li>
<li>Grouping dates by month</li>
<li>Grouping dates by week</li>
<li>Formatting the days in a week</li>
<li>Grouping formatted weeks into months</li>
<li>Laying out some number of months horizontally in a grid to form rows</li>
<li>Outputting each line of each grid row</li>
<li>Outputting all the rows</li></ul>
<h4><span class="mw-headline" id="Ranges">Ranges</span></h4>
<p>Notice that the first task, generating dates in a year, basically amounts to a <i>data source</i>: we are producing a sequence of data items (dates in a year), to be consumed by subsequent stages. The concept of a data source is nicely captured by the concept of <a rel="nofollow" class="external text" href="http://www.informit.com/articles/printerfriendly.aspx?p=1407357&amp;rll=1">ranges</a>, which are a generalization of C++ iterators. In particular, an <i>input range</i> is any type that implements three primitives:
</p>
<ul><li><code>empty</code>: tells us whether the data source has any data left to be retrieved.</li>
<li><code>front</code>: returns the current data item.</li>
<li><code>popFront</code>: tells the data source to produce the next data item.</li></ul>
<p>This is a useful abstraction, because it allows us to write algorithms that are independent of the concrete type of the data source: <i>any</i> concrete type that provides the above interface qualifies as an input range and can be used with any algorithm that expects an input range.
</p><p>For our purposes, it is also useful to define a more specific kind of data source: a <i>forward range</i>. A forward range implements all of the primitives of an input range, plus one more:
</p>
<ul><li><code>save</code>: returns another instance of the data source representing the current iteration state of the data source. The data items produced by the data source may be traversed twice by iterating over these two instances.</li></ul>
<p>This is a very useful primitive to have, because it essentially allows us to iterate the same range as many times as we want. Each time, we save a copy of the range and iterate over that, which does not change the state of the original range. Some of our calendar algorithms will require this, since certain steps are impossible to implement with only one-pass ranges.
</p>
<h4><span class="mw-headline" id="Components">Components</span></h4>
<p>Coming back to our list of tasks, we note that the other tasks on our list essentially amount to writing filters on the data source. For example, grouping dates by month essentially entails writing a filter that takes a range of dates as input, and produces a range of ranges of dates as output, where each subrange in the output corresponds with dates within a single month.
</p><p>Thus, each of the tasks can be separated out into their own components, which either produces a range of data, or performs some transformation on a given range to produce a new range. This separation of tasks allows us to deal with the structure conflicts in a straightforward, well-encapsulated way. This reduces the complexity of the code required and therefore decreases the likelihood of bugs. It's far easier, for example, to ensure that the code never puts more than 7 days into a week if there is only one place in the code where dates are grouped into weeks. It is also easier to write unittests for checking code correctness when the code is in small, manageable pieces. Writing unittests for a giant outer loop that contains several levels of nested inner loops is tricky business; we'd have no confidence that every possible code path was tested because there are too many of them!
</p><p>Once we have all these components, we just need a little bit of glue code to piece them together to do what we want.
</p><p>Let's walk through these components one by one, and show how we can write our calendar program in nice, reusable pieces.
</p>
<h3><span class="mw-headline" id="Generating_Dates_in_a_Year">Generating Dates in a Year</span></h3>
<p>Our first task is to generate all the dates in a year. Thanks to D's <code>std.datetime</code> module, this is rather easy: create a <code>Date</code> object, then repeatedly add durations of 1 day to it. Varying month lengths, leap years, etc., are all taken care of for us. For our purposes, though, we can't just do this in a loop, because it has to interface with the other components, which do not have a matching structure to a loop over dates. So we capture this task of generating dates by encapsulating it within an input range.
</p><p>We could implement this range manually, but in the spirit of code reuse, we make use of D's Phobos standard library that provides convenient primitives for constructing ranges. Here is our implementation:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Returns: A range of dates in a given year.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">datesInYear</span><span class="p">(</span><span class="kt">int</span> <span class="n">year</span><span class="p">)</span> <span class="k">pure</span> <span class="p">{</span>
<span class="k">return</span> <span class="n">Date</span><span class="p">(</span><span class="n">year</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
<span class="p">.</span><span class="n">recurrence</span><span class="p">!((</span><span class="n">a</span><span class="p">,</span><span class="n">n</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">[</span><span class="n">n</span><span class="p">-</span><span class="mi">1</span><span class="p">]</span> <span class="p">+</span> <span class="mf">1.</span><span class="n">days</span><span class="p">)</span>
<span class="p">.</span><span class="n">until</span><span class="p">!(</span><span class="n">a</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">.</span><span class="n">year</span> <span class="p">&gt;</span> <span class="n">year</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>The <code>recurrence()</code> primitive lets us specify a range that's programmatically generated from an initial value. In this case, we start with the first day of the year, January 1st, represented as Date(year, 1, 1), then specify the relation that generates the next date in the sequence. This relation is specified as a lambda that takes a state vector <code>a</code>, representing the sequence generated so far, and an index <code>n</code>, and returns the date one day after the previous date, <code>a[n-1]</code>. (Note that in spite of the array indexing notation, <code>recurrence</code> is smart enough to only store as many previous dates as is necessary to generate the next one; in this case, only one previous date is stored. So there is no undue memory consumption caused by storing all dates in the year.)
</p><p>The <code>until()</code> primitive lets us limit the range of generated dates to only dates within the specified year.
</p><p>This is relatively straightforward; it is a typical example of a range implementation. For ease of usage, we have encapsulated it within a function that creates the range and returns it.
</p><p>One point of interest in the returned range is that it is a so-called <a href="/Voldemort_types" title="Voldemort types">Voldemort type</a>: it cannot be named or instantiated outside of the scope of <code>datesInYear</code> because it uses a closure on the argument <code>year</code> which is only available in the scope of this function. Voldemort types are useful for returning things that conform to a particular interface, in this case a forward range, but the exact concrete type of which doesn't need to be known by the user. Making it impossible for user code to depend on the concrete type ensures extensibility: it allows us to change the concrete type returned in the future without breaking any user code. This idiom is frequently used in D code that deals with ranges.
</p>
<h3><span class="mw-headline" id="Grouping_Dates_by_Month">Grouping Dates by Month</span></h3>
<p>Our next task on the list is to group dates by month. For maximum utility, we'd like to take a range of <code>Date</code>s, and break it up into subranges where all the <code>Date</code>s in a given subrange belong to the same month.
</p>
<h4><span class="mw-headline" id="chunkBy">chunkBy</span></h4>
<p>We could simply proceed and write this code directly; but in the spirit of code reuse, we note that this particular task is not really specific to dates. At its core, what we're doing is that given a range of items with properties x, y, z, we want to break the range up into subranges where all items in each subrange share the same value for a particular chosen property, say x. Or, to phrase it in terms of the Dates that we're dealing with, given a range of <code>Date</code>s, each of which consists of year, month, and day, we'd like to be able to select a particular property, such as month, and break the range up into subranges by that property (i.e., each subrange contains the dates for a single month). Since we don't know if, in the future, we might want to group <code>Date</code>s by year instead, the selection of which property to use should be parametrized.
</p><p>But there is no reason why we should limit ourselves to using only properties of the item as the grouping criterion; that would not cover the case of, say, grouping Dates by week, since the <code>Date</code> object doesn't have a week field we may group by. So, boiled down to the essentials, what we're doing is to map each item to some value, be it selecting the month from a Date, or computing a function on a number, etc.. This then leads to the generic definition:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">auto</span> <span class="n">chunkBy</span><span class="p">(</span><span class="k">alias</span> <span class="n">attrFun</span><span class="p">,</span> <span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">r</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span>
<span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span>
<span class="n">attrFun</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">.</span><span class="n">init</span><span class="p">)</span> <span class="p">==</span> <span class="n">attrFun</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">.</span><span class="n">init</span><span class="p">)</span>
<span class="p">))</span>
<span class="p">)</span>
<span class="p">{</span>
<span class="p">...</span>
<span class="p">}</span>
</pre></div>
<p>The <code>if</code> block that comes between the function parameters and its body is a <i>signature constraint</i>. Signature constraints are a D feature that allows a templated function to graciously decline instantiation if its template parameters fail to meet certain requirements. In this case, the signature constraint allows us to specify that <code>chunkBy</code> can only be used with parameters that implement the input range primitives <code>empty</code>, <code>front</code>, and <code>popFront</code>, and that the function <code>attrFun</code> can be applied to elements of the range, and that the result must be comparable with the <code>==</code> operator. This allows us to safely use input range primitives inside the function body, pass range elements to <code>attrFun</code>, and compare the result with <code>==</code>, without fearing that the user type may not support such operations.
</p><p>The intent of <code>chunkBy</code> is to be a function that, given a range <code>r</code> and some function that maps items in the range to some value type that can be compared with the <code>==</code> operator, returns a range of subranges of the original range such that all the items in each subrange is mapped by the function to the same value. This is expressed by the example usage below, which is a unittest in the actual code of the calendar program:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">unittest</span> <span class="p">{</span>
<span class="k">auto</span> <span class="n">range</span> <span class="p">=</span> <span class="p">[</span>
<span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">],</span>
<span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">],</span>
<span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span>
<span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span>
<span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span>
<span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span>
<span class="p">[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">]</span>
<span class="p">];</span>
<span class="k">auto</span> <span class="n">byX</span> <span class="p">=</span> <span class="n">chunkBy</span><span class="p">!(</span><span class="n">a</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">])(</span><span class="n">range</span><span class="p">);</span>
<span class="k">auto</span> <span class="n">expected1</span> <span class="p">=</span> <span class="p">[</span>
<span class="p">[[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">]],</span>
<span class="p">[[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span> <span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">]],</span>
<span class="p">[[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">]]</span>
<span class="p">];</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">e</span><span class="p">;</span> <span class="n">byX</span><span class="p">)</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">expected1</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">e</span><span class="p">.</span><span class="n">equal</span><span class="p">(</span><span class="n">expected1</span><span class="p">.</span><span class="n">front</span><span class="p">));</span>
<span class="n">expected1</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="k">auto</span> <span class="n">byY</span> <span class="p">=</span> <span class="n">chunkBy</span><span class="p">!(</span><span class="n">a</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">])(</span><span class="n">range</span><span class="p">);</span>
<span class="k">auto</span> <span class="n">expected2</span> <span class="p">=</span> <span class="p">[</span>
<span class="p">[[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">]],</span>
<span class="p">[[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span> <span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">2</span><span class="p">]],</span>
<span class="p">[[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">]]</span>
<span class="p">];</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">e</span><span class="p">;</span> <span class="n">byY</span><span class="p">)</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">expected2</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">e</span><span class="p">.</span><span class="n">equal</span><span class="p">(</span><span class="n">expected2</span><span class="p">.</span><span class="n">front</span><span class="p">));</span>
<span class="n">expected2</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>This unittest exemplifies the point that in component-style programming, we work with self-contained components with well-defined, straightforward interfaces, which makes them straightforward to implement, easy to test, and amenable to reuse.
</p><p>Now we present the full definition of <code>chunkBy()</code>:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">auto</span> <span class="n">chunkBy</span><span class="p">(</span><span class="k">alias</span> <span class="n">attrFun</span><span class="p">,</span> <span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">r</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span>
<span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span>
<span class="n">attrFun</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">.</span><span class="n">init</span><span class="p">)</span> <span class="p">==</span> <span class="n">attrFun</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">.</span><span class="n">init</span><span class="p">)</span>
<span class="p">))</span>
<span class="p">)</span>
<span class="p">{</span>
<span class="k">alias</span> <span class="n">attr</span> <span class="p">=</span> <span class="n">unaryFun</span><span class="p">!</span><span class="n">attrFun</span><span class="p">;</span>
<span class="k">alias</span> <span class="n">AttrType</span> <span class="p">=</span> <span class="k">typeof</span><span class="p">(</span><span class="n">attr</span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">));</span>
<span class="k">static</span> <span class="k">struct</span> <span class="n">Chunk</span> <span class="p">{</span>
<span class="k">private</span> <span class="n">Range</span> <span class="n">r</span><span class="p">;</span>
<span class="k">private</span> <span class="n">AttrType</span> <span class="n">curAttr</span><span class="p">;</span>
<span class="nd">@property</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="p">{</span>
<span class="k">return</span> <span class="n">r</span><span class="p">.</span><span class="n">empty</span> <span class="p">||</span> <span class="p">!(</span><span class="n">curAttr</span> <span class="p">==</span> <span class="n">attr</span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">));</span>
<span class="p">}</span>
<span class="nd">@property</span> <span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span> <span class="n">front</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">;</span> <span class="p">}</span>
<span class="kt">void</span> <span class="n">popFront</span><span class="p">()</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">static</span> <span class="k">struct</span> <span class="n">ChunkBy</span> <span class="p">{</span>
<span class="k">private</span> <span class="n">Range</span> <span class="n">r</span><span class="p">;</span>
<span class="k">private</span> <span class="n">AttrType</span> <span class="n">lastAttr</span><span class="p">;</span>
<span class="k">this</span><span class="p">(</span><span class="n">Range</span> <span class="n">_r</span><span class="p">)</span> <span class="p">{</span>
<span class="n">r</span> <span class="p">=</span> <span class="n">_r</span><span class="p">;</span>
<span class="k">if</span> <span class="p">(!</span><span class="n">empty</span><span class="p">)</span>
<span class="n">lastAttr</span> <span class="p">=</span> <span class="n">attr</span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">);</span>
<span class="p">}</span>
<span class="nd">@property</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">;</span> <span class="p">}</span>
<span class="nd">@property</span> <span class="k">auto</span> <span class="n">front</span><span class="p">()</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">return</span> <span class="n">Chunk</span><span class="p">(</span><span class="n">r</span><span class="p">,</span> <span class="n">lastAttr</span><span class="p">);</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">popFront</span><span class="p">()</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">while</span> <span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span> <span class="p">&amp;&amp;</span> <span class="n">attr</span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">)</span> <span class="p">==</span> <span class="n">lastAttr</span><span class="p">)</span> <span class="p">{</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="k">if</span> <span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">)</span>
<span class="n">lastAttr</span> <span class="p">=</span> <span class="n">attr</span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">isForwardRange</span><span class="p">!</span><span class="n">Range</span><span class="p">)</span> <span class="p">{</span>
<span class="nd">@property</span> <span class="n">ChunkBy</span> <span class="n">save</span><span class="p">()</span> <span class="p">{</span>
<span class="n">ChunkBy</span> <span class="n">copy</span><span class="p">;</span>
<span class="n">copy</span><span class="p">.</span><span class="n">r</span> <span class="p">=</span> <span class="n">r</span><span class="p">.</span><span class="n">save</span><span class="p">;</span>
<span class="n">copy</span><span class="p">.</span><span class="n">lastAttr</span> <span class="p">=</span> <span class="n">lastAttr</span><span class="p">;</span>
<span class="k">return</span> <span class="n">copy</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">return</span> <span class="n">ChunkBy</span><span class="p">(</span><span class="n">r</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>While this code is more complex than before, it is still relatively straightforward: the outer range iterates over the first elements of each subrange, and its <code>.front</code> method returns said subrange as a separate iterable object. Each subrange iterates over the source range until the criterion that defines that subrange is no longer satisfied, at which point the iteration ends. There are only a bare minimum of state variables (keeping track of the value of the function defining the current subrange), and no intricate interdependencies that are difficult to understand.
</p>
<h4><span class="mw-headline" id="byMonth">byMonth</span></h4>
<p>Armed with <code>chunkBy</code>, grouping a range of <code>Date</code>s by month is now trivial to implement:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Chunks a given input range of dates by month.</span>
<span class="cm"> * Returns: A range of ranges, each subrange of which contains dates for the</span>
<span class="cm"> * same month.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">byMonth</span><span class="p">(</span><span class="n">InputRange</span><span class="p">)(</span><span class="n">InputRange</span> <span class="n">dates</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isDateRange</span><span class="p">!</span><span class="n">InputRange</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="n">dates</span><span class="p">.</span><span class="n">chunkBy</span><span class="p">!(</span><span class="n">a</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">.</span><span class="n">month</span><span class="p">());</span>
<span class="p">}</span>
</pre></div>
<p>The signature constraint uses the template <code>isDateRange</code> that ensures that <code>InputRange</code> is actually a valid input range, and that its element type is <code>Date</code>, since that's what the code expects. The definition of <code>isDateRange</code> is as follows:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Convenience template for verifying that a given range is an input range of</span>
<span class="cm"> * Dates.</span>
<span class="cm"> */</span>
<span class="k">template</span> <span class="n">isDateRange</span><span class="p">(</span><span class="n">R</span><span class="p">)</span> <span class="p">{</span>
<span class="k">enum</span> <span class="n">isDateRange</span> <span class="p">=</span> <span class="n">isInputRange</span><span class="p">!</span><span class="n">R</span> <span class="p">&amp;&amp;</span> <span class="k">is</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">R</span> <span class="p">:</span> <span class="n">Date</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>The reason we put this in a separate template is because we will need it again later on to verify that a particular template argument is, in fact, what we expect it to be.
</p><p>The unittest accompanying our new <code>byMonth</code> function shows how it can be put together with our first component, <code>datesInYear()</code>, to produce a range of dates in each month of a year:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">unittest</span> <span class="p">{</span>
<span class="k">auto</span> <span class="n">months</span> <span class="p">=</span> <span class="n">datesInYear</span><span class="p">(</span><span class="mi">2013</span><span class="p">).</span><span class="n">byMonth</span><span class="p">();</span>
<span class="kt">int</span> <span class="n">month</span> <span class="p">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">do</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">months</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">months</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">front</span> <span class="p">==</span> <span class="n">Date</span><span class="p">(</span><span class="mi">2013</span><span class="p">,</span> <span class="n">month</span><span class="p">,</span> <span class="mi">1</span><span class="p">));</span>
<span class="n">months</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span> <span class="k">while</span> <span class="p">(++</span><span class="n">month</span> <span class="p">&lt;=</span> <span class="mi">12</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">months</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>We didn't verify that the dates within each month as yet -- we will get to that eventually -- but at this point it suffices to show how, by composing two components, we're now able to produce ranges of dates for each month of a year. By segmenting the range of dates in a year rather than generating the dates of each month separately, we guarantee that the output of the calendar program will be consistent: no date will be omitted or repeated due to a bug in the code, and we will not inadvertently print more dates than are in the year.
</p>
<h3><span class="mw-headline" id="Grouping_Dates_by_Week">Grouping Dates by Week</span></h3>
<p>Another piece of the puzzle of calendar layout is to be able to group a range of dates by week. This is also a relatively simple task, since for the purposes of our calendar we can regard each week as beginning on a Sunday and ending on a Saturday. Again, we write a function that takes a range of dates, and breaks it up into subranges by week:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Chunks a given input range of dates by week.</span>
<span class="cm"> * Returns: A range of ranges, each subrange of which contains dates for the</span>
<span class="cm"> * same week. Note that weeks begin on Sunday and end on Saturday.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">byWeek</span><span class="p">(</span><span class="n">InputRange</span><span class="p">)(</span><span class="n">InputRange</span> <span class="n">dates</span><span class="p">)</span> <span class="k">pure</span> <span class="k">nothrow</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isDateRange</span><span class="p">!</span><span class="n">InputRange</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">struct</span> <span class="n">ByWeek</span> <span class="p">{</span>
<span class="n">InputRange</span> <span class="n">r</span><span class="p">;</span>
<span class="nd">@property</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">;</span> <span class="p">}</span>
<span class="nd">@property</span> <span class="k">auto</span> <span class="n">front</span><span class="p">()</span> <span class="p">{</span>
<span class="k">return</span> <span class="n">until</span><span class="p">!((</span><span class="n">Date</span> <span class="n">a</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">.</span><span class="n">dayOfWeek</span> <span class="p">==</span> <span class="n">DayOfWeek</span><span class="p">.</span><span class="n">sat</span><span class="p">)</span>
<span class="p">(</span><span class="n">r</span><span class="p">,</span> <span class="n">OpenRight</span><span class="p">.</span><span class="n">no</span><span class="p">);</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">popFront</span><span class="p">()</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">());</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="k">while</span> <span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span> <span class="p">&amp;&amp;</span> <span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">dayOfWeek</span> <span class="p">!=</span> <span class="n">DayOfWeek</span><span class="p">.</span><span class="n">sun</span><span class="p">)</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">return</span> <span class="n">ByWeek</span><span class="p">(</span><span class="n">dates</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>This time, our code is simpler because weeks always end on a Saturday, which allows us to use the <code>until()</code> algorithm included in D's Phobos standard library.
</p><p>This simplicity belies something very powerful that we have just achieved, though. Notice that nowhere in the definition of <code>byWeek()</code> is there any reference to dates in a year, or dates in a month. It can be applied to both! If applied to the output of <code>datesInYear()</code>, for example, it would give us the dates of the year grouped by weeks in the year. If applied to one of the subranges returned by <code>byMonth()</code>, it would give us the dates of that month grouped by weeks, which is exactly what we need later on when we want to format the days in a month. So already, we can see that <code>byWeek()</code> is a reusable component that can be reused outside of the confines of our task at hand.
</p><p>Furthermore, if a month starts in the middle of the week, <code>byWeek()</code> will return less than a full week in its first subrange, because it breaks the range up by Sundays, not necessarily by every 7 items in the range. The same thing goes for ranges that end in the middle of the week. So we have, indirectly, solved one of the key problems in calendar layout: the handling of partial weeks in a month. Yet, this solution does not involve tricky if-statements or other conditionals at all, just a straightforward iteration over a range of dates! We are now starting to see the power of component-style programming.
</p>
<h3><span class="mw-headline" id="Formatting_Days_in_a_Week">Formatting Days in a Week</span></h3>
<p>Our next step is to take a range of dates in (possibly partial) weeks, and format them into string snippets suitable for assembling into our output lines later. In order to maximize the ways we can reuse this functionality, we return a range of string snippets that other code can then process in whatever way needed.
</p><p>For the purposes of this case study, we will forego runtime configurability in the output of our calendar program, and simply fix some constant parameters by which we will format the output:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">/// The number of columns per day in the formatted output.</span>
<span class="k">enum</span> <span class="n">ColsPerDay</span> <span class="p">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="c1">/// The number of columns per week in the formatted output.</span>
<span class="k">enum</span> <span class="n">ColsPerWeek</span> <span class="p">=</span> <span class="mi">7</span> <span class="p">*</span> <span class="n">ColsPerDay</span><span class="p">;</span>
</pre></div>
<p>These can be recast as runtime parameters, should we ever wish to increase the configurability of our calendar program.
</p><p>To help with code readability, we also write a little helper function that returns a string of <code>n</code> spaces, which we will use to add padding where it's needed:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Returns: A string containing exactly n spaces.</span>
<span class="cm"> */</span>
<span class="nb">string</span> <span class="n">spaces</span><span class="p">(</span><span class="nb">size_t</span> <span class="n">n</span><span class="p">)</span> <span class="k">pure</span> <span class="k">nothrow</span> <span class="p">{</span>
<span class="k">return</span> <span class="n">std</span><span class="p">.</span><span class="n">array</span><span class="p">.</span><span class="n">replicate</span><span class="p">(</span><span class="s">&quot; &quot;</span><span class="p">,</span> <span class="n">n</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>The actual code for formatting each week is relatively straightforward:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">auto</span> <span class="n">formatWeek</span><span class="p">(</span><span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">weeks</span><span class="p">)</span> <span class="k">pure</span> <span class="k">nothrow</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span> <span class="n">isInputRange</span><span class="p">!(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">)</span> <span class="p">&amp;&amp;</span>
<span class="k">is</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">)</span> <span class="p">==</span> <span class="n">Date</span><span class="p">))</span>
<span class="p">{</span>
<span class="k">struct</span> <span class="n">WeekStrings</span> <span class="p">{</span>
<span class="n">Range</span> <span class="n">r</span><span class="p">;</span>
<span class="nd">@property</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">;</span> <span class="p">}</span>
<span class="nb">string</span> <span class="n">front</span><span class="p">()</span>
<span class="k">out</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="p">{</span> <span class="k">assert</span><span class="p">(</span><span class="n">s</span><span class="p">.</span><span class="n">length</span> <span class="p">==</span> <span class="n">ColsPerWeek</span><span class="p">);</span> <span class="p">}</span>
<span class="k">body</span>
<span class="p">{</span>
<span class="k">auto</span> <span class="n">buf</span> <span class="p">=</span> <span class="n">appender</span><span class="p">!</span><span class="nb">string</span><span class="p">();</span>
<span class="c1">// Insert enough filler to align the first day with its respective</span>
<span class="c1">// day-of-week.</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">auto</span> <span class="n">startDay</span> <span class="p">=</span> <span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">dayOfWeek</span><span class="p">;</span>
<span class="n">buf</span><span class="p">.</span><span class="n">put</span><span class="p">(</span><span class="n">spaces</span><span class="p">(</span><span class="n">ColsPerDay</span> <span class="p">*</span> <span class="n">startDay</span><span class="p">));</span>
<span class="c1">// Format each day into its own cell and append to target string.</span>
<span class="nb">string</span><span class="p">[]</span> <span class="n">days</span> <span class="p">=</span> <span class="n">map</span><span class="p">!((</span><span class="n">Date</span> <span class="n">d</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="s">&quot; %2d&quot;</span><span class="p">.</span><span class="n">format</span><span class="p">(</span><span class="n">d</span><span class="p">.</span><span class="n">day</span><span class="p">))(</span><span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">)</span>
<span class="p">.</span><span class="n">array</span><span class="p">;</span>
<span class="k">assert</span><span class="p">(</span><span class="n">days</span><span class="p">.</span><span class="n">length</span> <span class="p">&lt;=</span> <span class="mi">7</span> <span class="p">-</span> <span class="n">startDay</span><span class="p">);</span>
<span class="n">days</span><span class="p">.</span><span class="n">copy</span><span class="p">(</span><span class="n">buf</span><span class="p">);</span>
<span class="c1">// Insert more filler at the end to fill up the remainder of the</span>
<span class="c1">// week, if it&#39;s a short week (e.g. at the end of the month).</span>
<span class="k">if</span> <span class="p">(</span><span class="n">days</span><span class="p">.</span><span class="n">length</span> <span class="p">&lt;</span> <span class="mi">7</span> <span class="p">-</span> <span class="n">startDay</span><span class="p">)</span>
<span class="n">buf</span><span class="p">.</span><span class="n">put</span><span class="p">(</span><span class="n">spaces</span><span class="p">(</span><span class="n">ColsPerDay</span> <span class="p">*</span> <span class="p">(</span><span class="mi">7</span> <span class="p">-</span> <span class="n">startDay</span> <span class="p">-</span> <span class="n">days</span><span class="p">.</span><span class="n">length</span><span class="p">)));</span>
<span class="k">return</span> <span class="n">buf</span><span class="p">.</span><span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">popFront</span><span class="p">()</span> <span class="p">{</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">return</span> <span class="n">WeekStrings</span><span class="p">(</span><span class="n">weeks</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>Most of the work is done in the <code>.front</code> function, which handles partial weeks by computing how many missing days there are on each side, and inserting filler spaces in their place. The formatting of the days themselves is handled by using <code>std.algorithm.map</code>. The buffering of the output is handled by <code>std.array.appender</code>, a Phobos-provided component that gives an output range interface to a string buffer. All in all, this is pretty straightforward, and easy to test.
</p><p>In the accompanying unittest, we couple <code>formatWeeks</code> with the other components we have built so far, to show off what we can achieve now:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">unittest</span> <span class="p">{</span>
<span class="k">auto</span> <span class="n">jan2013</span> <span class="p">=</span> <span class="n">datesInYear</span><span class="p">(</span><span class="mi">2013</span><span class="p">)</span>
<span class="p">.</span><span class="n">byMonth</span><span class="p">().</span><span class="n">front</span> <span class="c1">// pick January 2013 for testing purposes</span>
<span class="p">.</span><span class="n">byWeek</span><span class="p">()</span>
<span class="p">.</span><span class="n">formatWeek</span><span class="p">()</span>
<span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="s">&quot;\n&quot;</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">jan2013</span> <span class="p">==</span>
<span class="s">&quot; 1 2 3 4 5\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 6 7 8 9 10 11 12\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 13 14 15 16 17 18 19\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 20 21 22 23 24 25 26\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 27 28 29 30 31 &quot;</span>
<span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>As can be seen, we can now format single months in a nice layout, simply by chaining together existing components. We are not planning to support the display of only a single month in the final calendar program, but as this unittest shows, it would be trivial to implement.
</p><p>Another important thing to note about this unittest is that <code>formatWeek()</code> returns a <i>range</i> of strings to be output; it is not at all tied down to printing the entire month in one shot. We will make use of this fact when we do our final calendar layout, by consuming the first lines of each month in a row of months first, then the second lines of each month in the row, etc., and thus achieve a line-by-line output to the terminal that doesn't require a grid buffer.
</p><p>But let's not get ahead of ourselves. First, let's officially put the functionality already demonstrated by the above unittest into a form that can be reused.
</p>
<h3><span class="mw-headline" id="Formatting_Months">Formatting Months</span></h3>
<p>In addition to printing out the days in the month, we want to print the name of the month at the top, so that we know which month the block of formatted days belongs to. For cosmetic purposes, we center the name of the month horizontally over its days:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Formats the name of a month centered on ColsPerWeek.</span>
<span class="cm"> */</span>
<span class="nb">string</span> <span class="n">monthTitle</span><span class="p">(</span><span class="n">Month</span> <span class="n">month</span><span class="p">)</span> <span class="k">pure</span> <span class="k">nothrow</span> <span class="p">{</span>
<span class="k">static</span> <span class="k">immutable</span> <span class="nb">string</span><span class="p">[]</span> <span class="n">monthNames</span> <span class="p">=</span> <span class="p">[</span>
<span class="s">&quot;January&quot;</span><span class="p">,</span> <span class="s">&quot;February&quot;</span><span class="p">,</span> <span class="s">&quot;March&quot;</span><span class="p">,</span> <span class="s">&quot;April&quot;</span><span class="p">,</span> <span class="s">&quot;May&quot;</span><span class="p">,</span> <span class="s">&quot;June&quot;</span><span class="p">,</span>
<span class="s">&quot;July&quot;</span><span class="p">,</span> <span class="s">&quot;August&quot;</span><span class="p">,</span> <span class="s">&quot;September&quot;</span><span class="p">,</span> <span class="s">&quot;October&quot;</span><span class="p">,</span> <span class="s">&quot;November&quot;</span><span class="p">,</span> <span class="s">&quot;December&quot;</span>
<span class="p">];</span>
<span class="k">static</span> <span class="k">assert</span><span class="p">(</span><span class="n">monthNames</span><span class="p">.</span><span class="n">length</span> <span class="p">==</span> <span class="mi">12</span><span class="p">);</span>
<span class="c1">// Determine how many spaces before and after the month name we need to</span>
<span class="c1">// center it over the formatted weeks in the month</span>
<span class="k">auto</span> <span class="n">name</span> <span class="p">=</span> <span class="n">monthNames</span><span class="p">[</span><span class="n">month</span> <span class="p">-</span> <span class="mi">1</span><span class="p">];</span>
<span class="k">assert</span><span class="p">(</span><span class="n">name</span><span class="p">.</span><span class="n">length</span> <span class="p">&lt;</span> <span class="n">ColsPerWeek</span><span class="p">);</span>
<span class="k">auto</span> <span class="n">before</span> <span class="p">=</span> <span class="p">(</span><span class="n">ColsPerWeek</span> <span class="p">-</span> <span class="n">name</span><span class="p">.</span><span class="n">length</span><span class="p">)</span> <span class="p">/</span> <span class="mi">2</span><span class="p">;</span>
<span class="k">auto</span> <span class="n">after</span> <span class="p">=</span> <span class="n">ColsPerWeek</span> <span class="p">-</span> <span class="n">name</span><span class="p">.</span><span class="n">length</span> <span class="p">-</span> <span class="n">before</span><span class="p">;</span>
<span class="k">return</span> <span class="n">spaces</span><span class="p">(</span><span class="n">before</span><span class="p">)</span> <span class="p">~</span> <span class="n">name</span> <span class="p">~</span> <span class="n">spaces</span><span class="p">(</span><span class="n">after</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>Next, we write the function that formats a month by returning a range containing the month name followed by the formatted weeks in the month:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Formats a month.</span>
<span class="cm"> * Parameters:</span>
<span class="cm"> * monthDays = A range of Dates representing consecutive days in a month.</span>
<span class="cm"> * Returns: A range of strings representing each line of the formatted month.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">formatMonth</span><span class="p">(</span><span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">monthDays</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span> <span class="k">is</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span> <span class="p">==</span> <span class="n">Date</span><span class="p">))</span>
<span class="k">in</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">monthDays</span><span class="p">.</span><span class="n">empty</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">monthDays</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">day</span> <span class="p">==</span> <span class="mi">1</span><span class="p">);</span>
<span class="p">}</span> <span class="k">body</span> <span class="p">{</span>
<span class="k">return</span> <span class="n">chain</span><span class="p">(</span>
<span class="p">[</span> <span class="n">monthTitle</span><span class="p">(</span><span class="n">monthDays</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">month</span><span class="p">)</span> <span class="p">],</span>
<span class="n">monthDays</span><span class="p">.</span><span class="n">byWeek</span><span class="p">().</span><span class="n">formatWeek</span><span class="p">());</span>
<span class="p">}</span>
</pre></div>
<p>Thanks to the reusable components we have built up to this point, this is quite simple.
</p><p>To make <code>formatMonth</code> easier to use in the final code, we wrap it in a function that applies it to each month in a range of months:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Formats a range of months.</span>
<span class="cm"> * Parameters:</span>
<span class="cm"> * months = A range of ranges, each inner range is a range of Dates in a</span>
<span class="cm"> * month.</span>
<span class="cm"> * Returns:</span>
<span class="cm"> * A range of ranges of formatted lines for each month.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">formatMonths</span><span class="p">(</span><span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">months</span><span class="p">)</span> <span class="k">pure</span> <span class="k">nothrow</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span> <span class="k">is</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">)</span> <span class="p">==</span> <span class="n">Date</span><span class="p">))</span>
<span class="p">{</span>
<span class="k">return</span> <span class="n">months</span><span class="p">.</span><span class="n">map</span><span class="p">!</span><span class="n">formatMonth</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Again, we note the genericity of this code: <code>formatMonths</code> does not assume anything about the number of months it is given to format. We may pass in all 12 months in the year, or any subset thereof. In particular, in the next step, we will be grouping months into grid rows, and passing each row to <code>formatMonths</code> to obtain the range of formatted lines of the months in the row. The way <code>formatMonths</code> is designed makes it reusable in a wide variety of situations.
</p>
<h3><span class="mw-headline" id="Formatting_a_Row_of_Months">Formatting a Row of Months</span></h3>
<p>Now we come to the most crucial piece of our calendar program: the code that formats a row of months in the grid of the final calendar output. Here is where we will take the ranges of formatted lines for each month, and paste them together horizontally to form the output lines to the terminal. Will this require some tricky loops, or clever if-statements, to achieve?
</p><p>Actually, with the components we have built so far, this part of the code is almost disappointingly straightforward. Again, we note that the task of pasting together rectangular blocks of string snippets is not a calendar-specific problem; it is a general algorithm that can be applied to any block of any string snippets. Hence, we cast our next component in generic terms:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Horizontally pastes a forward range of rectangular blocks of characters.</span>
<span class="cm"> *</span>
<span class="cm"> * Each rectangular block is represented by a range of fixed-width strings. If</span>
<span class="cm"> * some blocks are longer than others, the shorter blocks are padded with</span>
<span class="cm"> * spaces at the bottom.</span>
<span class="cm"> *</span>
<span class="cm"> * Parameters:</span>
<span class="cm"> * ror = A range of of ranges of fixed-width strings.</span>
<span class="cm"> * sepWidth = Number of spaces to insert between each month.</span>
<span class="cm"> * Returns:</span>
<span class="cm"> * A range of ranges of formatted lines for each month.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">pasteBlocks</span><span class="p">(</span><span class="n">Range</span><span class="p">)(</span><span class="n">Range</span> <span class="n">ror</span><span class="p">,</span> <span class="kt">int</span> <span class="n">sepWidth</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">isForwardRange</span><span class="p">!</span><span class="n">Range</span> <span class="p">&amp;&amp;</span> <span class="k">is</span><span class="p">(</span><span class="n">ElementType</span><span class="p">!(</span><span class="n">ElementType</span><span class="p">!</span><span class="n">Range</span><span class="p">)</span> <span class="p">:</span> <span class="nb">string</span><span class="p">))</span>
<span class="p">{</span>
<span class="k">struct</span> <span class="n">Lines</span> <span class="p">{</span>
<span class="n">Range</span> <span class="n">ror</span><span class="p">;</span>
<span class="nb">string</span> <span class="n">sep</span><span class="p">;</span>
<span class="nb">size_t</span><span class="p">[]</span> <span class="n">colWidths</span><span class="p">;</span>
<span class="kt">bool</span> <span class="n">_empty</span><span class="p">;</span>
<span class="k">this</span><span class="p">(</span><span class="n">Range</span> <span class="n">_ror</span><span class="p">,</span> <span class="nb">string</span> <span class="n">_sep</span><span class="p">)</span> <span class="p">{</span>
<span class="n">ror</span> <span class="p">=</span> <span class="n">_ror</span><span class="p">;</span>
<span class="n">sep</span> <span class="p">=</span> <span class="n">_sep</span><span class="p">;</span>
<span class="n">_empty</span> <span class="p">=</span> <span class="n">ror</span><span class="p">.</span><span class="n">empty</span><span class="p">;</span>
<span class="c1">// Store the widths of each column so that we can insert fillers if</span>
<span class="c1">// one of the subranges run out of data prematurely.</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">r</span><span class="p">;</span> <span class="n">ror</span><span class="p">.</span><span class="n">save</span><span class="p">)</span> <span class="p">{</span>
<span class="n">colWidths</span> <span class="p">~=</span> <span class="n">r</span><span class="p">.</span><span class="n">empty</span> <span class="p">?</span> <span class="mi">0</span> <span class="p">:</span> <span class="n">r</span><span class="p">.</span><span class="n">front</span><span class="p">.</span><span class="n">length</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="nd">@property</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="n">_empty</span><span class="p">;</span> <span class="p">}</span>
<span class="nd">@property</span> <span class="k">auto</span> <span class="n">front</span><span class="p">()</span> <span class="p">{</span>
<span class="k">return</span>
<span class="c1">// Iterate over ror and colWidths simultaneously</span>
<span class="n">zip</span><span class="p">(</span><span class="n">ror</span><span class="p">.</span><span class="n">save</span><span class="p">,</span> <span class="n">colWidths</span><span class="p">)</span>
<span class="c1">// Map each subrange to its front element, or empty fillers if</span>
<span class="c1">// it&#39;s already empty.</span>
<span class="p">.</span><span class="n">map</span><span class="p">!(</span><span class="n">a</span> <span class="p">=&gt;</span> <span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">empty</span> <span class="p">?</span> <span class="n">spaces</span><span class="p">(</span><span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> <span class="p">:</span> <span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">front</span><span class="p">)</span>
<span class="c1">// Join them together to form a line</span>
<span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="n">sep</span><span class="p">);</span>
<span class="p">}</span>
<span class="c1">/// Pops an element off each subrange.</span>
<span class="kt">void</span> <span class="n">popFront</span><span class="p">()</span> <span class="p">{</span>
<span class="k">assert</span><span class="p">(!</span><span class="n">empty</span><span class="p">);</span>
<span class="n">_empty</span> <span class="p">=</span> <span class="kc">true</span><span class="p">;</span> <span class="c1">// assume no more data after popping (we&#39;re lazy)</span>
<span class="k">foreach</span> <span class="p">(</span><span class="k">ref</span> <span class="n">r</span><span class="p">;</span> <span class="n">ror</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">)</span> <span class="p">{</span>
<span class="n">r</span><span class="p">.</span><span class="n">popFront</span><span class="p">();</span>
<span class="k">if</span> <span class="p">(!</span><span class="n">r</span><span class="p">.</span><span class="n">empty</span><span class="p">)</span>
<span class="n">_empty</span> <span class="p">=</span> <span class="kc">false</span><span class="p">;</span> <span class="c1">// well, there&#39;s still data after all</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">static</span> <span class="k">assert</span><span class="p">(</span><span class="n">isInputRange</span><span class="p">!</span><span class="n">Lines</span><span class="p">);</span>
<span class="nb">string</span> <span class="n">separator</span> <span class="p">=</span> <span class="n">spaces</span><span class="p">(</span><span class="n">sepWidth</span><span class="p">);</span>
<span class="k">return</span> <span class="n">Lines</span><span class="p">(</span><span class="n">ror</span><span class="p">,</span> <span class="n">separator</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>This is again an input range, with rather straightforward implementation. The <code>.front</code> method is where the pasting of each corresponding line of the input months into a single line is implemented.
</p><p>There's really only one minor complication: how to deal with months that occupy a different amount of vertical space due to the dates falling in such a way that they cover a smaller number of (possibly partial) weeks. To handle this, we simply insert a row of blank spaces in place of a week, when a subrange runs out before other subranges. For maximum reusability, we make no assumptions about the width of the blocks; so we use an array to keep track of the widths of each column and use those widths for inserting the blank spaces where necessary.
</p><p>Actually, the astute reader will have noticed that <code>pasteBlocks</code> doesn't even use any of our previously built components. It's a completely generic component that can be used in a wide variety of other programs! Only its accompanying unittest actually puts it together with our other calendar-specific components in a demonstration of our achievement so far:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">unittest</span> <span class="p">{</span>
<span class="c1">// Make a beautiful, beautiful row of months. How&#39;s that for a unittest? :)</span>
<span class="k">auto</span> <span class="n">row</span> <span class="p">=</span> <span class="n">datesInYear</span><span class="p">(</span><span class="mi">2013</span><span class="p">).</span><span class="n">byMonth</span><span class="p">().</span><span class="n">take</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
<span class="p">.</span><span class="n">formatMonths</span><span class="p">()</span>
<span class="p">.</span><span class="n">array</span><span class="p">()</span>
<span class="p">.</span><span class="n">pasteBlocks</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="s">&quot;\n&quot;</span><span class="p">);</span>
<span class="k">assert</span><span class="p">(</span><span class="n">row</span> <span class="p">==</span>
<span class="s">&quot; January February March \n&quot;</span><span class="p">~</span>
<span class="s">&quot; 1 2 3 4 5 1 2 1 2\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 6 7 8 9 10 11 12 3 4 5 6 7 8 9 3 4 5 6 7 8 9\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 13 14 15 16 17 18 19 10 11 12 13 14 15 16 10 11 12 13 14 15 16\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 20 21 22 23 24 25 26 17 18 19 20 21 22 23 17 18 19 20 21 22 23\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 27 28 29 30 31 24 25 26 27 28 24 25 26 27 28 29 30\n&quot;</span><span class="p">~</span>
<span class="s">&quot; 31 &quot;</span>
<span class="p">);</span>
<span class="p">}</span>
</pre></div>
<h3><span class="mw-headline" id="Formatting_a_Year">Formatting a Year</span></h3>
<p>At this point, we're pretty much done. All that's left is to put all the pieces together to format all the rows in the grid of months for a year:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/**</span>
<span class="cm"> * Formats a year.</span>
<span class="cm"> * Parameters:</span>
<span class="cm"> * year = Year to display calendar for.</span>
<span class="cm"> * monthsPerRow = How many months to fit into a row in the output.</span>
<span class="cm"> * Returns: A range of strings representing the formatted year.</span>
<span class="cm"> */</span>
<span class="k">auto</span> <span class="n">formatYear</span><span class="p">(</span><span class="kt">int</span> <span class="n">year</span><span class="p">,</span> <span class="kt">int</span> <span class="n">monthsPerRow</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">enum</span> <span class="n">colSpacing</span> <span class="p">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">return</span>
<span class="c1">// Start by generating all dates for the given year</span>
<span class="n">datesInYear</span><span class="p">(</span><span class="n">year</span><span class="p">)</span>
<span class="c1">// Group them by month</span>
<span class="p">.</span><span class="n">byMonth</span><span class="p">()</span>
<span class="c1">// Group the months into horizontal rows</span>
<span class="p">.</span><span class="n">chunks</span><span class="p">(</span><span class="n">monthsPerRow</span><span class="p">)</span>
<span class="c1">// Format each row</span>
<span class="p">.</span><span class="n">map</span><span class="p">!(</span><span class="n">r</span> <span class="p">=&gt;</span>
<span class="c1">// By formatting each month</span>
<span class="n">r</span><span class="p">.</span><span class="n">formatMonths</span><span class="p">()</span>
<span class="c1">// Storing each month&#39;s formatting in a row buffer</span>
<span class="p">.</span><span class="n">array</span><span class="p">()</span>
<span class="c1">// Horizontally pasting each respective month&#39;s lines together</span>
<span class="p">.</span><span class="n">pasteBlocks</span><span class="p">(</span><span class="n">colSpacing</span><span class="p">)</span>
<span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="s">&quot;\n&quot;</span><span class="p">))</span>
<span class="c1">// Insert a blank line between each row</span>
<span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="s">&quot;\n\n&quot;</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>It's worth pointing out that even though we store each month's formatting in an array, this is an array of <i>ranges</i> of each month's formatting. Each line of the formatting is lazily generated when <code>.front</code> is invoked; there is no memory overhead incurred by storing all formatted lines of the months in a row before we start producing output lines. If we were to trace through the execution of the program, we will find that the formatted lines of each month are generated on-the-fly as each output line is being assembled. And indeed, <code>formatMonth()</code> returns an input range, not a forward range or higher, and <code>pasteBlocks</code> does not cache any of the generated string snippets. This lazy evaluation is very similar to the way functional languages work, and is an example of D's support for functional-style code.
</p><p>For maximum flexibility, we have written <code>formatYear</code> in such a way that it returns an input range of strings representing the lines of the final, formatted calendar. Thus, one could reuse it ways outside the scope of the present example; for example, using <code>pasteBlocks</code> to paste multiple calendars together horizontally.
</p><p>To hook this up to the outside world, we write a simple <code>main()</code> function that lets the user specify which year the calendar should be formatted for:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">main</span><span class="p">(</span><span class="nb">string</span><span class="p">[]</span> <span class="n">args</span><span class="p">)</span> <span class="p">{</span>
<span class="c1">// This is as simple as it gets: parse the year from the command-line:</span>
<span class="k">if</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">length</span> <span class="p">&lt;</span> <span class="mi">2</span><span class="p">)</span> <span class="p">{</span>
<span class="n">stderr</span><span class="p">.</span><span class="n">writeln</span><span class="p">(</span><span class="s">&quot;Please specify year&quot;</span><span class="p">);</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
<span class="kt">int</span> <span class="n">year</span> <span class="p">=</span> <span class="n">to</span><span class="p">!</span><span class="kt">int</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
<span class="c1">// Print the calender</span>
<span class="k">enum</span> <span class="n">MonthsPerRow</span> <span class="p">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">formatYear</span><span class="p">(</span><span class="n">year</span><span class="p">,</span> <span class="n">MonthsPerRow</span><span class="p">));</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>And that's it. The output of the program is exactly the output displayed near the beginning of this article.
</p>
<h2><span class="mw-headline" id="Conclusions">Conclusions</span></h2>
<p>The calendar program that we wrote above proves that component-style programming using the range concept is a very powerful approach to programming:
</p>
<ol><li>It allows us to untangle very complex code into straightforward, manageable pieces.</li>
<li>It produces components that are highly-reusable outside of their original purpose: in fact, <code>chunkBy</code> is a candidate for inclusion in Phobos.</li>
<li>It is easy to write, easy to read, and easy to test, and hence much less prone to bugs. The <code>formatYear</code> function is a prime example of how the code is easy to read: it starts with the dates in a year and successively transforms it until it arrives at the final output. There are no convoluted loops, hard-to-understand state variables and complicated if-statements, yet it is able to express the level of complexity required to format a yearly calendar.</li>
<li>New functionality can be easily added by putting the components together in a different way. For example, we can extend <code>main()</code> to allow printing just a single month instead of the whole year.</li></ol>
<p>It is also the first calendar formatting program, to my knowledge, that doesn't look frighteningly similar to an entry to the <a rel="nofollow" class="external text" href="http://ioccc.org">IOCCC</a>.&#160;:-)
</p>
<h2><span class="mw-headline" id="Acknowledgements">Acknowledgements</span></h2>
<p>Many thanks to D forum members who gave helpful feedback and encouraged me to turn my original forum posting into this article, especially to Timon Gehr and bearophile for suggesting improvements to the calendar code, and Andrei Alexandrescu for suggesting to provide a better context for the article in relation to related areas of research.
</p><p>Thanks also go to my former professor Gunnar Gotshalks who first introduced me to Jackson Structured Programming, which gave me a deep insight into how mismatches between program structure and data structure (or between two or more data structures) is the source of much of the complexity in code.
</p>
<h2><span class="mw-headline" id="Related_readings">Related readings</span></h2>
<ul><li><a rel="nofollow" class="external text" href="http://mitpress.mit.edu/sicp/">Structure and Interpretation of Computer Programs</a>, especially the section on <a rel="nofollow" class="external text" href="http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_sec_3.5">streams</a>.</li>
<li>Wikipedia:</li></ul>
<dl><dd><ul><li><a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Pipeline_(software)">Pipes and filters design pattern</a></li>
<li><a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Component-based_software_engineering">Component-based software engineering</a></li></ul></dd></dl>
<ul><li>Andrei Alexandrescu's article <i><a rel="nofollow" class="external text" href="http://www.informit.com/articles/printerfriendly.aspx?p=1407357&amp;rll=1">On Iteration</a></i> where the concept of ranges was first developed.</li>
<li>Walter Bright's article on <a rel="nofollow" class="external text" href="http://www.drdobbs.com/architecture-and-design/component-programming-in-d/240008321">component programming in D</a>.</li></ul>
<h2><span class="mw-headline" id="Appendix">Appendix</span></h2>
<p>The full source code for the calendar program developed in this article is <a rel="nofollow" class="external text" href="https://github.com/quickfur/dcal/blob/master/dcal.d">available on github</a>.
</p><p>The exact version of the code used in this article is <a rel="nofollow" class="external text" href="https://github.com/quickfur/dcal/blob/83764e6de9e6d25c0a136cbd91ff8b1a8fb1d5ec/dcal.d">here</a>.
</p>
<!--
NewPP limit report
Cached time: 20261026134649
Cache expiry: 86400
Dynamic content: false
[SMW] In‐text annotation parser time: 0 seconds
CPU time usage: 0.094 seconds
Real time usage: 1.906 seconds
Preprocessor visited node count: 255/1000000
Preprocessor generated node count: 480/1000000
Post‐expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/100
Unstrip recursion depth: 0/20
Unstrip post‐expand size: 56246/5000000 bytes
-->
<!--
Transclusion expansion time report (%,ms,calls,template)
100.00% 0.000 1 -total
-->
</div>
<!-- Saved in parser cache with key dwiki:pcache:idhash:409-0!canonical and timestamp 20261026134648 and revision id 6163
-->
</div> <div class="printfooter">
Retrieved from "<a dir="ltr" href="https://wiki.dlang.org/?title=Component_programming_with_ranges&amp;oldid=6163">https://wiki.dlang.org/?title=Component_programming_with_ranges&amp;oldid=6163</a>" </div>
<div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/Category:Tutorials" title="Category:Tutorials">Tutorials</a></li></ul></div></div> <div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
<div id="mw-head">
<div id="p-personal" role="navigation" class="" aria-labelledby="p-personal-label">
<h3 id="p-personal-label">Personal tools</h3>
<ul>
<li id="pt-createaccount"><a href="/?title=Special:CreateAccount&amp;returnto=Component+programming+with+ranges" title="You are encouraged to create an account and log in; however, it is not mandatory">Create account</a></li><li id="pt-login"><a href="/?title=Special:UserLogin&amp;returnto=Component+programming+with+ranges" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> </ul>
</div>
<div id="left-navigation">
<div id="p-namespaces" role="navigation" class="vectorTabs" aria-labelledby="p-namespaces-label">
<h3 id="p-namespaces-label">Namespaces</h3>
<ul>
<li id="ca-nstab-main" class="selected"><span><a href="/Component_programming_with_ranges" title="View the content page [c]" accesskey="c">Page</a></span></li><li id="ca-talk" class="new"><span><a href="/?title=Talk:Component_programming_with_ranges&amp;action=edit&amp;redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t">Discussion</a></span></li> </ul>
</div>
<div id="p-variants" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-variants-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-variants-label" />
<h3 id="p-variants-label">
<span>Variants</span>
</h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
</div>
<div id="right-navigation">
<div id="p-views" role="navigation" class="vectorTabs" aria-labelledby="p-views-label">
<h3 id="p-views-label">Views</h3>
<ul>
<li id="ca-view" class="collapsible selected"><span><a href="/Component_programming_with_ranges">Read</a></span></li><li id="ca-viewsource" class="collapsible"><span><a href="/?title=Component_programming_with_ranges&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></span></li><li id="ca-history" class="collapsible"><span><a href="/?title=Component_programming_with_ranges&amp;action=history" title="Past revisions of this page [h]" accesskey="h">View history</a></span></li> </ul>
</div>
<div id="p-cactions" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-cactions-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-cactions-label" />
<h3 id="p-cactions-label"><span>More</span></h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
<div id="p-search" role="search">
<h3>
<label for="searchInput">Search</label>
</h3>
<form action="/" id="searchform">
<div id="simpleSearch">
<input type="search" name="search" placeholder="Search D Wiki" title="Search D Wiki [f]" accesskey="f" id="searchInput"/><input type="hidden" value="Special:Search" name="title"/><input type="submit" name="fulltext" value="Search" title="Search the pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/><input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" id="searchButton" class="searchButton"/> </div>
</form>
</div>
</div>
</div>
<div id="mw-panel">
<div id="p-logo" role="banner"><a class="mw-wiki-logo" href="/The_D_Programming_Language" title="Visit the main page"></a></div>
<div class="portal" role="navigation" id="p-navigation" aria-labelledby="p-navigation-label">
<h3 id="p-navigation-label">Navigation</h3>
<div class="body">
<ul>
<li id="n-mainpage-description"><a href="/The_D_Programming_Language" title="Visit the main page [z]" accesskey="z">Main page</a></li><li id="n-portal"><a href="/DWiki:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li><li id="n-currentevents"><a href="/DWiki:Current_events" title="Find background information on current events">Current events</a></li><li id="n-recentchanges"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li><li id="n-randompage"><a href="/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li><li id="n-help"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" title="The place to find out">Help</a></li><li id="n-D-home"><a href="http://dlang.org" rel="nofollow">D home</a></li> </ul>
</div>
</div>
<div class="portal" role="navigation" id="p-tb" aria-labelledby="p-tb-label">
<h3 id="p-tb-label">Tools</h3>
<div class="body">
<ul>
<li id="t-whatlinkshere"><a href="/Special:WhatLinksHere/Component_programming_with_ranges" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li><li id="t-recentchangeslinked"><a href="/Special:RecentChangesLinked/Component_programming_with_ranges" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li id="t-specialpages"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li id="t-print"><a href="/?title=Component_programming_with_ranges&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li id="t-permalink"><a href="/?title=Component_programming_with_ranges&amp;oldid=6163" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-info"><a href="/?title=Component_programming_with_ranges&amp;action=info" title="More information about this page">Page information</a></li><li id="t-smwbrowselink"><a href="/Special:Browse/:Component-5Fprogramming-5Fwith-5Franges" rel="search">Browse properties</a></li> </ul>
</div>
</div>
</div>
</div>
<div id="footer" role="contentinfo">
<ul id="footer-info">
<li id="footer-info-lastmod"> This page was last edited on 19 May 2015, at 20:08.</li>
<li id="footer-info-copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
</ul>
<ul id="footer-places">
<li id="footer-places-privacy"><a href="/DWiki:Privacy_policy" title="DWiki:Privacy policy">Privacy policy</a></li>
<li id="footer-places-about"><a href="/DWiki:About" title="DWiki:About">About D Wiki</a></li>
<li id="footer-places-disclaimer"><a href="/DWiki:General_disclaimer" title="DWiki:General disclaimer">Disclaimers</a></li>
</ul>
<ul id="footer-icons" class="noprint">
<li id="footer-copyrightico">
<a href="http://www.gnu.org/copyleft/fdl.html"><img src="/resources/assets/licenses/gnu-fdl.png" alt="GNU Free Documentation License 1.3 or later" width="88" height="31"/></a> </li>
<li id="footer-poweredbyico">
<a href="//www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"/></a> </li>
</ul>
<div style="clear: both;"></div>
</div>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"smw":{"limitreport-intext-parsertime":0},"limitreport":{"cputime":"0.094","walltime":"1.906","ppvisitednodes":{"value":255,"limit":1000000},"ppgeneratednodes":{"value":480,"limit":1000000},"postexpandincludesize":{"value":0,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":40},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":56246,"limit":5000000},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"timestamp":"20261026134649","ttl":86400,"transientcontent":false}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":2582});});</script>
</body>
</html>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,589 @@
<!DOCTYPE html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="/static/css/common.css"/>
<link rel="shortcut icon" href="/static/img/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/static/css/menu.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0"/>
<title>Ranges - Dlang Tour</title>
<link rel="stylesheet" href="/static/css/tour.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/static/lib/hotkeys.min.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/lib/codemirror.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/addon/lint/lint.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/theme/elegant.css"/>
<link rel="stylesheet" href="/static/lib/grid12.min.css"/>
<link rel="stylesheet" href="/static/css/ansi.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
</head>
<body ng-app="DlangTourApp" class="ng-cloak">
<div id="top">
<div class="helper">
<div class="helper expand-container active">
<div class="logo">
<a href="https://dlang.org">
<img id="logo" alt="DLang Logo" src="/static/img/dlogo.svg"/>
</a>
<a href="../../../" id="title">
<span>DLang Tour</span>
</a>
</div>
<a href="#" title="Menu" class="hamburger expand-toggle">
<span>Menu</span>
</a>
<div id="cssmenu">
<ul>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Welcome</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/welcome/welcome-to-d">
<span>Welcome to D</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/languages">
<span>Read in your language</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/install-d-locally">
<span>Install D locally</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/run-d-program-locally">
<span>Run D program locally</span>
</a>
</li>
</ul>
</li>
<li class="expand-container active">
<a class="expand-toggle" href="#">
<span>D's Basics</span>
</a>
<ul class="expand-content">
<li class="active">
<a href="/tour/en/basics/imports-and-modules">
<span>Imports and modules</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/basic-types">
<span>Basic types</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/memory">
<span>Memory</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/type-qualifiers">
<span>Mutability</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/controlling-flow">
<span>Control flow</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/functions">
<span>Functions</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/structs">
<span>Structs</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/arrays">
<span>Arrays</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/slices">
<span>Slices</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/alias-strings">
<span>Alias &amp; Strings</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/loops">
<span>Loops</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/foreach">
<span>Foreach</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/ranges">
<span>Ranges</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/associative-arrays">
<span>Associative Arrays</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/classes">
<span>Classes</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/interfaces">
<span>Interfaces</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/templates">
<span>Templates</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/delegates">
<span>Delegates</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/exceptions">
<span>Exceptions</span>
</a>
</li>
<li class="active">
<a href="/tour/en/basics/further-reading">
<span>Further Reading</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>D's Gems</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/gems/uniform-function-call-syntax-ufcs">
<span>Uniform Function Call Syntax (UFCS)</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/scope-guards">
<span>Scope guards</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/range-algorithms">
<span>Range algorithms</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/unittesting">
<span>Unit Testing</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/string-mixins">
<span>String Mixins</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/compile-time-function-evaluation-ctfe">
<span>Compile Time Function Evaluation (CTFE)</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/functional-programming">
<span>Functional programming</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/contract-programming">
<span>Contract programming</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/subtyping">
<span>Subtyping</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/attributes">
<span>Attributes</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/opdispatch-opapply">
<span>opDispatch &amp; opApply</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/documentation">
<span>Documentation</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/traits">
<span>Traits</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/template-meta-programming">
<span>Template meta programming</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/bit-manipulation">
<span>Bit manipulation</span>
</a>
</li>
<li class="">
<a href="/tour/en/gems/unicode">
<span>Unicode in D</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Multithreading</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/multithreading/thread-local-storage">
<span>Thread local storage</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/message-passing">
<span>Message Passing</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/synchronization-sharing">
<span>Synchronization &amp; Sharing</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/std-parallelism">
<span>std.parallelism</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/fibers">
<span>Fibers</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Vibe.d</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/vibed/vibe-d-web-framework">
<span>Vibe.d web framework</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/basics-asynchronous-i-o">
<span>Basics &amp; Asynchronous I/O</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/web-server">
<span>Web server</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/diet-templates">
<span>DIET Templates</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/json-rest-interface">
<span>JSON REST Interface</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/database-connectivity">
<span>Database connectivity</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/deploy-on-heroku">
<span>Deploy on Heroku</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>D by Examples</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/byexample/code-generation-parser">
<span>Code generation (Parser)</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>DUB packages</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/dub/mir-algorithm">
<span>Mir Algorithm</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/mir-random">
<span>Mir Random</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/mir">
<span>Mir</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/emsi_containers">
<span>EMSI Containers</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/vibe-d">
<span>Vibe-d</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/libdparse">
<span>libdparse</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/pegged">
<span>Pegged</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/lubeck">
<span>Lubeck</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
<div id="github_avatar">
<a href="https://github.com/dlang-tour/core">
<i class="fa fa-github" aria-hidden="true"></i>
</a>
<a ng-href="https://github.com/dlang-tour/core/issues/new">
<i class="fa fa-question-circle" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
<div class="row" ng-controller="DlangTourAppCtrl as ctrl" ng-init="initTour(&#39;en&#39;, &#39;dlang-tour/english&#39;, &#39;basics&#39;, &#39;ranges&#39;, true, &#39;/tour/en/basics/foreach&#39;, &#39;/tour/en/basics/associative-arrays&#39;)">
<div id="tour-content" ng-show="showContent" ng-class="{&#39;col-md-12&#39;: !showSourceCode, &#39;col-md-7 col-sm-12&#39;: showSourceCode}">
<div ng-hide="showProgramOutput">
<div class="content-command-box">
<button class="btn btn-default" ng-click="editOnGithub()">
<div class="fa fa-edit"></div>
</button>
<span class="hidden-xs hidden-sm">
<button class="btn btn-default btn-sm" ng-click="showSourceCode = true" ng-hide="showSourceCode">
<div class="fa fa-eye"></div>
</button>
</span>
</div>
<h1 id="ranges"> Ranges</h1>
<p>If a <code class="prettyprint">foreach</code> is encountered by the compiler
</p>
<pre class="prettyprint"><code>foreach (element; range)
{
  // Loop body...
}
</code></pre>
<p>it's internally rewritten similar to the following:
</p>
<pre class="prettyprint"><code>for (auto __rangeCopy = range;
    !__rangeCopy.empty;
    __rangeCopy.popFront())
{
   auto element = __rangeCopy.front;
   // Loop body...
}
</code></pre>
<p>Any object which fulfills the following interface is called a <strong>range</strong>
(or more specific <code class="prettyprint">InputRange</code>) and is thus a type that can be iterated over:
</p>
<pre class="prettyprint"><code>    interface InputRange(E)
{
bool empty();
E front();
void popFront();
}
</code></pre>
<p>Have a look at the example on the right to inspect the implementation and usage
of an input range closer.
</p>
<h2 id="laziness"> Laziness</h2>
<p>Ranges are <strong>lazy</strong>. They won't be evaluated until requested.
Hence, a range from an infinite range can be taken:
</p>
<pre class="prettyprint"><code>42.repeat.take(3).writeln; // [42, 42, 42]
</code></pre>
<h2 id="value-vs-reference-types"> Value vs. Reference types</h2>
<p>If the range object is a value type, then range will be copied and only the copy
will be consumed:
</p>
<pre class="prettyprint"><code>auto r = 5.iota;
r.drop(5).writeln; // []
r.writeln; // [0, 1, 2, 3, 4]
</code></pre>
<p>If the range object is a reference type (e.g. <code class="prettyprint">class</code> or <a href="https://dlang.org/phobos/std_range.html#refRange"><code class="prettyprint">std.range.refRange</code></a>),
then the range will be consumed and won't be reset:
</p>
<pre class="prettyprint"><code>auto r = 5.iota;
auto r2 = refRange(&amp;r);
r2.drop(5).writeln; // []
r2.writeln; // []
</code></pre>
<h3 id="copyable-inputranges-are-forwardranges"> Copyable <code class="prettyprint">InputRanges</code> are <code class="prettyprint">ForwardRanges</code></h3>
<p>Most of the ranges in the standard library are structs and so <code class="prettyprint">foreach</code>
iteration is usually non-destructive, though not guaranteed. If this
guarantee is important, a specialization of an <code class="prettyprint">InputRange</code> can be used—
<strong>forward</strong> ranges with a <code class="prettyprint">.save</code> method:
</p>
<pre class="prettyprint"><code>interface ForwardRange(E) : InputRange!E
{
typeof(this) save();
}
</code></pre>
<pre class="prettyprint"><code>// by value (Structs)
auto r = 5.iota;
auto r2 = refRange(&amp;r);
r2.save.drop(5).writeln; // []
r2.writeln; // [0, 1, 2, 3, 4]
</code></pre>
<h3 id="forwardranges-can-be-extended-to-bidirectional-ranges-random-access-ranges"> <code class="prettyprint">ForwardRanges</code> can be extended to Bidirectional ranges + random access ranges</h3>
<p>There are two extensions of the copyable <code class="prettyprint">ForwardRange</code>: (1) a bidirectional range
and (2) a random access range.
A bidirectional range allows iteration from the back:
</p>
<pre class="prettyprint"><code>interface BidirectionalRange(E) : ForwardRange!E
{
E back();
void popBack();
}
</code></pre>
<pre class="prettyprint"><code>5.iota.retro.writeln; // [4, 3, 2, 1, 0]
</code></pre>
<p>A random access range has a known <code class="prettyprint">length</code> and each element can be directly accessed.
</p>
<pre class="prettyprint"><code>interface RandomAccessRange(E) : ForwardRange!E
{
E opIndex(size_t i);
size_t length();
}
</code></pre>
<p>The best known random access range is D's array:
</p>
<pre class="prettyprint"><code>auto r = [4, 5, 6];
r[1].writeln; // 5
</code></pre>
<h3 id="lazy-range-algorithms"> Lazy range algorithms</h3>
<p>The functions in <a href="http://dlang.org/phobos/std_range.html"><code class="prettyprint">std.range</code></a> and
<a href="http://dlang.org/phobos/std_algorithm.html"><code class="prettyprint">std.algorithm</code></a> provide
building blocks that make use of this interface. Ranges enable the
composition of complex algorithms behind an object that
can be iterated with ease. Furthermore, ranges enable the creation of <strong>lazy</strong>
objects that only perform a calculation when it's really needed
in an iteration e.g. when the next range's element is accessed.
Special range algorithms will be presented later in the
<a href="/tour/en/gems/range-algorithms">D's Gems</a> section.
</p>
<h3 id="in-depth"> In-depth</h3>
<ul>
<li><a href="http://dlang.org/phobos/std_algorithm.html"><code class="prettyprint">std.algorithm</code></a>
</li>
<li><a href="http://dlang.org/phobos/std_range.html"><code class="prettyprint">std.range</code></a>
</li>
</ul>
</div>
<div ng-show="showProgramOutput">
<div class="content-command-box">
<button class="btn btn-danger btn-sm" ng-click="showProgramOutput = !showProgramOutput">
<span class="fa fa-close"></span>
</button>
</div>
<h2 class="program-output-title">rdmd playground.d</h2><div id="nanobar" ng-show="inProgress"></div><pre id="program-output" ng-bind-html="programOutput"></pre></div>
</div>
<div ng-class="{&#39;col-md-5 col-sm-12&#39;: showContent, &#39;col-md-12&#39;: !showContent}" ng-show="showSourceCode" style="padding-left: 0px; padding-right: 0px">
<div id="command-box" class="text-right">
<button class="btn btn-default" ng-click="showContent = !showContent">
<i class="fa fa-expand" ng-show="showContent" aria-hidden="true"></i><i class="fa fa-compress" ng-hide="showContent" aria-hidden="true"></i>
</button>
<button class="btn btn-default btn-sm hidden-xs hidden-sm" ng-click="showSourceCode = false">
<div class="fa fa-eye-slash"></div>
</button>
<button class="btn btn-primary" ng-click="run()">
<span>Run</span><i class="fa fa-play" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="format()">
<span>Format</span><i class="fa fa-magic" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="reset()">
<span>Reset</span><i class="fa fa-undo" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="export()">
<span>Export</span><i class="fa fa-share" aria-hidden="true"></i>
</button>
</div>
<ui-codemirror ui-codemirror-opts="editorOptions" ui-codemirror="{ onLoad : codemirrorLoaded }" ng-model="sourceCode"></ui-codemirror>
</div>
</div>
<nav class="navbar navbar-bottom">
<div class="container text-center h1">
<a href="/tour/en/basics/foreach" ng-show="&#39;&#39; != &#39;/tour/en/basics/foreach&#39;" target="_self">
<
<span class="h4">Foreach</span>
</a>
13 /
<span class="small">20</span>
<a href="/tour/en/basics/associative-arrays" ng-show="&#39;&#39; != &#39;/tour/en/basics/associative-arrays&#39;" target="_self">
<span class="h4">Associative Arrays</span>>
</a>
</div>
<div class="container hidden-xs hidden-sm">
<p class="text-muted text-center">
<kbd>?</kbd>Keyboard Shortcuts
</p>
</div>
</nav>
<script type="application/javascript" src="/static/js/menu.js"></script><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script><script src="/static/js/tour-controller.js"></script><script src="/static/js/swipe.js"></script><script src="/static/lib/codemirror/lib/codemirror.js"></script><script src="/static/lib/codemirror/mode/d/d.js"></script><script src="/static/lib/codemirror/addon/lint/lint.js"></script><script src="/static/lib/codemirror/addon/runmode/runmode.js"></script><script src="/static/lib/ui-codemirror.min.js"></script><script src="/static/lib/hotkeys.min.js"></script><script src="/static/lib/nanobar.min.js"></script><script src="/static/lib/ansi_up.min.js"></script>
</body>
@@ -0,0 +1,363 @@
<!doctype html>
<html class="no-js" lang="en" data-content_root="">
<head><meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Design Principles" href="principles.html" />
<link rel="shortcut icon" href="_static/favicon.svg"/><!-- Generated with Sphinx 6.2.1 and Furo 2024.01.29 -->
<title>GNOME Human Interface Guidelines</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=369552022d0b975c8e74270ce6eabe0fb7978f24" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
<link rel="stylesheet" type="text/css" href="_static/gnome.css" />
<style>
body {
--color-code-background: #f8f8f8;
--color-code-foreground: black;
--color-brand-primary: #4a86cf;
--color-brand-content: #4a86cf;
}
@media not print {
body[data-theme="dark"] {
--color-code-background: #202020;
--color-code-foreground: #d0d0d0;
}
@media (prefers-color-scheme: dark) {
body:not([data-theme="light"]) {
--color-code-background: #202020;
--color-code-foreground: #d0d0d0;
}
}
}
</style>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//webstats.gnome.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '55']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<script>
document.body.dataset.theme = localStorage.getItem("theme") || "auto";
</script>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-toc" viewBox="0 0 24 24">
<title>Contents</title>
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024">
<path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z"/>
</svg>
</symbol>
<symbol id="svg-menu" viewBox="0 0 24 24">
<title>Menu</title>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-menu">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
<title>Expand</title>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</symbol>
<symbol id="svg-sun" viewBox="0 0 24 24">
<title>Light mode</title>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather-sun">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</symbol>
<symbol id="svg-moon" viewBox="0 0 24 24">
<title>Dark mode</title>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-moon">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z" />
</svg>
</symbol>
<symbol id="svg-sun-half" viewBox="0 0 24 24">
<title>Auto light/dark mode</title>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-shadow">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M13 12h5" />
<path d="M13 15h4" />
<path d="M13 18h1" />
<path d="M13 9h4" />
<path d="M13 6h1" />
</svg>
</symbol>
</svg>
<input type="checkbox" class="sidebar-toggle" name="__navigation" id="__navigation">
<input type="checkbox" class="sidebar-toggle" name="__toc" id="__toc">
<label class="overlay sidebar-overlay" for="__navigation"></label>
<label class="overlay toc-overlay" for="__toc"></label>
<div class="page">
<header class="mobile-header">
<div class="header-left">
<label class="nav-overlay-icon" for="__navigation">
<i class="icon"><svg><use href="#svg-menu"></use></svg></i>
</label>
</div>
<div class="header-center">
<a href="#"><div class="brand">GNOME Human Interface Guidelines</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
<button class="theme-toggle">
<div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
<svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
<svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
<svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
</button>
</div>
<label class="toc-overlay-icon toc-header-icon" for="__toc">
<div class="visually-hidden">Toggle table of contents sidebar</div>
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
</label>
</div>
</header>
<aside class="sidebar-drawer">
<div class="sidebar-container">
<div class="sidebar-sticky"><a class="sidebar-brand" href="#">
<div class="sidebar-logo-container">
<img class="sidebar-logo" src="_static/logo.svg" alt="Logo"/>
</div>
<span class="sidebar-brand-text">GNOME Human Interface Guidelines</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
<input type="hidden" name="check_keywords" value="yes">
<input type="hidden" name="area" value="default">
</form>
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
<ul>
<li class="toctree-l1"><a class="reference internal" href="principles.html">Design Principles</a></li>
<li class="toctree-l1"><a class="reference internal" href="resources.html">Tools &amp; Resources</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="guidelines.html">Guidelines</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" role="switch" type="checkbox"/><label for="toctree-checkbox-1"><div class="visually-hidden">Toggle navigation of Guidelines</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="guidelines/app-naming.html">App Naming</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/app-icons.html">App Icons</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/pointer-touch.html">Pointer &amp; Touch</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/keyboard.html">Keyboard</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/ui-icons.html">UI Icons</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/ui-styling.html">UI Styling</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/writing-style.html">Writing Style</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/typography.html">Typography</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/navigation.html">Navigation</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/adaptive.html">Scaling &amp; Adaptiveness</a></li>
<li class="toctree-l2"><a class="reference internal" href="guidelines/accessibility.html">Accessibility</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="patterns.html">Patterns</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle navigation of Patterns</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2 has-children"><a class="reference internal" href="patterns/containers.html">Containers</a><input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle navigation of Containers</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/windows.html">Windows</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/header-bars.html">Header Bars</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/popovers.html">Popovers</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/utility-panes.html">Utility Panes</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/boxed-lists.html">Boxed Lists</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/grid-views.html">Grid Views</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/list-column-views.html">List &amp; Column Views</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/containers/selection-mode.html">Selection &amp; Edit Modes</a></li>
</ul>
</li>
<li class="toctree-l2 has-children"><a class="reference internal" href="patterns/nav.html">Navigation</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle navigation of Navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="patterns/nav/browsing.html">Browsing</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/nav/view-switchers.html">View Switchers</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/nav/tabs.html">Tabs</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/nav/sidebars.html">Sidebars</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/nav/search.html">Search</a></li>
</ul>
</li>
<li class="toctree-l2 has-children"><a class="reference internal" href="patterns/controls.html">Controls</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle navigation of Controls</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/buttons.html">Buttons</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/menus.html">Menus</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/switches.html">Switches</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/text-fields.html">Text Fields</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/checkboxes.html">Checkboxes</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/radio-buttons.html">Radio Buttons</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/drop-downs.html">Drop-Down Lists</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/sliders.html">Sliders</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/spin-buttons.html">Spin Buttons</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/controls/overlaid.html">Overlaid Controls</a></li>
</ul>
</li>
<li class="toctree-l2 has-children"><a class="reference internal" href="patterns/feedback.html">Feedback</a><input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" role="switch" type="checkbox"/><label for="toctree-checkbox-6"><div class="visually-hidden">Toggle navigation of Feedback</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/notifications.html">Notifications</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/toasts.html">Toasts</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/banners.html">Banners</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/progress-bars.html">Progress Bars</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/spinners.html">Spinners</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/dialogs.html">Dialogs</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/placeholders.html">Placeholder Pages</a></li>
<li class="toctree-l3"><a class="reference internal" href="patterns/feedback/tooltips.html">Tooltips</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="reference.html">Reference</a><input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" role="switch" type="checkbox"/><label for="toctree-checkbox-7"><div class="visually-hidden">Toggle navigation of Reference</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="reference/keyboard.html">Standard Keyboard Shortcuts</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/palette.html">Palette</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/backgrounds.html">Backgrounds</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</aside>
<div class="main">
<div class="content">
<div class="article-container">
<a href="#" class="back-to-top muted-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"></path>
</svg>
<span>Back to top</span>
</a>
<div class="content-icon-container">
<div class="edit-this-page">
<a class="muted-link" href="https://gitlab.gnome.org/Teams/Websites/developer.gnome.org-hig/-/edit/main/source/index.rst" title="Edit this page">
<svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4" />
<line x1="13.5" y1="6.5" x2="17.5" y2="10.5" />
</svg>
<span class="visually-hidden">Edit this page</span>
</a>
</div><div class="theme-toggle-container theme-toggle-content">
<button class="theme-toggle">
<div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
<svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
<svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
<svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
</button>
</div>
<label class="toc-overlay-icon toc-content-icon" for="__toc">
<div class="visually-hidden">Toggle table of contents sidebar</div>
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
</label>
</div>
<article role="main" id="furo-main-content">
<img alt="_images/hig.svg" src="_images/hig.svg" /><section id="gnome-human-interface-guidelines">
<h1>GNOME Human Interface Guidelines<a class="headerlink" href="#gnome-human-interface-guidelines" title="Permalink to this heading">#</a></h1>
<p>The GNOME Human Interface Guidelines are the primary source of design documentation for those creating software with the GNOME development platform. They are primarily intended for app designers and developers, but are relevant to anyone wanting to familiarize themselves with GNOME UX.</p>
<section id="platform-definition">
<h2>Platform Definition<a class="headerlink" href="#platform-definition" title="Permalink to this heading">#</a></h2>
<p>The HIG is intended to be used in conjunction with recent versions of the GNOME platform, in particular GTK 4 and Libadwaita.</p>
</section>
<section id="content-overview">
<h2>Content Overview<a class="headerlink" href="#content-overview" title="Permalink to this heading">#</a></h2>
<p>The HIG is made up of the following sections:</p>
<ul class="simple">
<li><p><a class="reference internal" href="principles.html"><span class="doc">Design principles</span></a>: basic design rules and goals for the GNOME platform. This is the best place to start for anyone who is new to the HIG or GNOME design.</p></li>
<li><p><a class="reference internal" href="resources.html"><span class="doc">Resources</span></a>: an overview of the tools and assets that are available for GNOME design work.</p></li>
<li><p><a class="reference internal" href="guidelines.html"><span class="doc">Guidelines</span></a>: the standard conventions that are used in GNOME UX design, including how to write text, use icons, create app identities, and handle different types of input.</p></li>
<li><p><a class="reference internal" href="patterns.html"><span class="doc">Patterns</span></a>: covers the elements from which designs can be composed, such as windows, buttons, notifications or view switchers. The patterns are organized into four types: <a class="reference internal" href="patterns/containers.html"><span class="doc">containers</span></a>, <a class="reference internal" href="patterns/nav.html"><span class="doc">navigation</span></a>, <a class="reference internal" href="patterns/feedback.html"><span class="doc">feedback</span></a>, and <a class="reference internal" href="patterns/controls.html"><span class="doc">controls</span></a>.</p></li>
<li><p><a class="reference internal" href="reference.html"><span class="doc">Reference</span></a>: standard keyboard shortcuts and UI colors.</p></li>
</ul>
</section>
<section id="contribute">
<h2>Contribute<a class="headerlink" href="#contribute" title="Permalink to this heading">#</a></h2>
<p>The <a class="reference external" href="https://gitlab.gnome.org/Teams/Websites/developer.gnome.org-hig">HIG project</a> on GNOME’s GitLab instance can be used to report issues and propose changes.</p>
<div class="toctree-wrapper compound">
</div>
</section>
</section>
</article>
</div>
<footer>
<div class="related-pages">
<a class="next-page" href="principles.html">
<div class="page-info">
<div class="context">
<span>Next</span>
</div>
<div class="title">Design Principles</div>
</div>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
</a>
</div>
</footer>
</div>
<aside class="toc-drawer">
<div class="toc-sticky toc-scroll">
<div class="toc-title-container">
<span class="toc-title">
On this page
</span>
</div>
<div class="toc-tree-container">
<div class="toc-tree">
<ul>
<li><a class="reference internal" href="#">GNOME Human Interface Guidelines</a><ul>
<li><a class="reference internal" href="#platform-definition">Platform Definition</a></li>
<li><a class="reference internal" href="#content-overview">Content Overview</a></li>
<li><a class="reference internal" href="#contribute">Contribute</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</aside>
</div>
</div><script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/scripts/furo.js"></script>
</body>
</html>
@@ -0,0 +1,745 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="https://www.php.net/manual/ru/index.php">
<title>PHP: Предисловие - Manual</title>
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Fira/fira.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Font-Awesome/css/fontello.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-base.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-medium.css" media="screen">
<link rel="icon" type="image/svg+xml" sizes="any" href="https://www.php.net/favicon.svg?v=2">
<link rel="icon" type="image/png" sizes="196x196" href="https://www.php.net/favicon-196x196.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.php.net/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.php.net/favicon-16x16.png?v=2">
<link rel="shortcut icon" href="https://www.php.net/favicon.ico?v=2">
<link rel="search" type="application/opensearchdescription+xml" href="https://www.php.net/phpnetimprovedsearch.src" title="Add PHP.net search">
<link rel="alternate" type="application/atom+xml" href="https://www.php.net/releases/feed.php" title="PHP Release feed">
<link rel="alternate" type="application/atom+xml" href="https://www.php.net/feed.atom" title="PHP: Hypertext Preprocessor">
<link rel="canonical" href="https://www.php.net/manual/ru/index.php">
<link rel="shorturl" href="https://www.php.net/manual/ru/index.php">
<link rel="alternate" href="https://www.php.net/manual/ru/index.php" hreflang="x-default">
<link rel="contents" href="https://www.php.net/manual/ru/index.php">
<link rel="index" href="https://www.php.net/manual/ru/">
<link rel="prev" href="https://www.php.net/manual/ru/">
<link rel="next" href="https://www.php.net/manual/ru/">
<link rel="alternate" href="https://www.php.net/manual/en/index.php" hreflang="en">
<link rel="alternate" href="https://www.php.net/manual/de/index.php" hreflang="de">
<link rel="alternate" href="https://www.php.net/manual/es/index.php" hreflang="es">
<link rel="alternate" href="https://www.php.net/manual/fr/index.php" hreflang="fr">
<link rel="alternate" href="https://www.php.net/manual/it/index.php" hreflang="it">
<link rel="alternate" href="https://www.php.net/manual/ja/index.php" hreflang="ja">
<link rel="alternate" href="https://www.php.net/manual/pt_BR/index.php" hreflang="pt_BR">
<link rel="alternate" href="https://www.php.net/manual/ru/index.php" hreflang="ru">
<link rel="alternate" href="https://www.php.net/manual/tr/index.php" hreflang="tr">
<link rel="alternate" href="https://www.php.net/manual/uk/index.php" hreflang="uk">
<link rel="alternate" href="https://www.php.net/manual/zh/index.php" hreflang="zh">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Fira/fira.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/fonts/Font-Awesome/css/fontello.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-base.css" media="screen">
<link rel="stylesheet" type="text/css" href="/cached.php?t=&amp;f=/styles/theme-medium.css" media="screen">
<meta name="Description" content="Руководство по PHP" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP: Предисловие - Manual" />
<meta name="twitter:description" content="Руководство по PHP" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="https://www.php.net/images/meta-image.png" />
<meta itemprop="name" content="PHP: Предисловие - Manual" />
<meta itemprop="description" content="Руководство по PHP" />
<meta itemprop="image" content="https://www.php.net/images/meta-image.png" />
<meta property="og:image" content="https://www.php.net/images/meta-image.png" />
<meta property="og:description" content="Руководство по PHP" />
<link href="https://fosstodon.org/@php" rel="me" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.php.net/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body class="docs ">
<nav class="navbar navbar-fixed-top">
<div class="navbar__inner">
<a href="/" aria-label="PHP Home" class="navbar__brand">
<img
src="/images/logos/php-logo-white.svg"
aria-hidden="true"
width="80"
height="40"
>
</a>
<div
id="navbar__offcanvas"
tabindex="-1"
class="navbar__offcanvas"
aria-label="Menu"
role="navigation"
>
<button
id="navbar__close-button"
class="navbar__icon-item navbar_icon-item--visually-aligned navbar__close-button"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" fill="currentColor"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg>
</button>
<ul class="navbar__nav">
<li class="navbar__item">
<a
href="/downloads.php"
class="navbar__link "
>
Downloads </a>
</li>
<li class="navbar__item">
<a
href="/docs.php"
aria-current="page" class="navbar__link navbar__link--active "
>
Documentation </a>
</li>
<li class="navbar__item">
<a
href="/get-involved.php"
class="navbar__link "
>
Get Involved </a>
</li>
<li class="navbar__item">
<a
href="/support.php"
class="navbar__link "
>
Help </a>
</li>
<li class="navbar__item">
<a
href="/releases/8.5/index.php"
class="navbar__link navbar__release"
>
<img src="/images/php8/logo_php8_5.svg" alt="PHP 8.5">
</a>
</li>
</ul>
</div>
<div class="navbar__right">
<!-- Desktop default search -->
<form
action="/manual-lookup.php"
class="navbar__search-form"
>
<label for="navbar__search-input" aria-label="Search docs">
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </label>
<input
type="search"
name="pattern"
id="navbar__search-input"
class="navbar__search-input"
placeholder="Search docs"
accesskey="s"
>
<input type="hidden" name="scope" value="quickref">
</form>
<!-- Desktop encanced search -->
<button
id="navbar__search-button"
class="navbar__search-button"
hidden
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> Search docs
</button>
<!-- Mobile default items -->
<a
id="navbar__search-link"
href="/lookup-form.php"
aria-label="Search docs"
class="navbar__icon-item navbar__search-link"
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </a>
<a
id="navbar__menu-link"
href="/menu.php"
aria-label="Menu"
class="navbar__icon-item navbar_icon-item--visually-aligned navbar_menu-link"
>
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
</svg> </a>
<!-- Mobile enhanced items -->
<button
id="navbar__search-button-mobile"
aria-label="Search docs"
class="navbar__icon-item navbar__search-button-mobile"
hidden
>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg> </button>
<button
id="navbar__menu-button"
aria-label="Menu"
class="navbar__icon-item navbar_icon-item--visually-aligned"
hidden
>
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
</svg> </button>
</div>
<div
id="navbar__backdrop"
class="navbar__backdrop"
></div>
</div>
<div id="flash-message"></div>
</nav>
<div class="headsup"><a href='/index.php#2026-10-23-1'>Informational advisory: Session upload progress</a></div>
<nav id="trick"><div><dl>
<dt><a href='/manual/en/getting-started.php'>Getting Started</a></dt>
<dd><a href='/manual/en/introduction.php'>Introduction</a></dd>
<dd><a href='/manual/en/tutorial.php'>A simple tutorial</a></dd>
<dt><a href='/manual/en/langref.php'>Language Reference</a></dt>
<dd><a href='/manual/en/language.basic-syntax.php'>Basic syntax</a></dd>
<dd><a href='/manual/en/language.types.php'>Types</a></dd>
<dd><a href='/manual/en/language.variables.php'>Variables</a></dd>
<dd><a href='/manual/en/language.constants.php'>Constants</a></dd>
<dd><a href='/manual/en/language.expressions.php'>Expressions</a></dd>
<dd><a href='/manual/en/language.operators.php'>Operators</a></dd>
<dd><a href='/manual/en/language.control-structures.php'>Control Structures</a></dd>
<dd><a href='/manual/en/language.functions.php'>Functions</a></dd>
<dd><a href='/manual/en/language.oop5.php'>Classes and Objects</a></dd>
<dd><a href='/manual/en/language.namespaces.php'>Namespaces</a></dd>
<dd><a href='/manual/en/language.enumerations.php'>Enumerations</a></dd>
<dd><a href='/manual/en/language.error-handling.php'>Error Handling</a></dd>
<dd><a href='/manual/en/language.fibers.php'>Fibers</a></dd>
<dd><a href='/manual/en/language.generators.php'>Generators</a></dd>
<dd><a href='/manual/en/language.attributes.php'>Attributes</a></dd>
<dd><a href='/manual/en/language.references.php'>References Explained</a></dd>
<dd><a href='/manual/en/reserved.variables.php'>Predefined Variables</a></dd>
<dd><a href='/manual/en/reserved.exceptions.php'>Predefined Exceptions</a></dd>
<dd><a href='/manual/en/reserved.interfaces.php'>Predefined Interfaces and Classes</a></dd>
<dd><a href='/manual/en/reserved.attributes.php'>Predefined Attributes</a></dd>
<dd><a href='/manual/en/context.php'>Context options and parameters</a></dd>
<dd><a href='/manual/en/wrappers.php'>Supported Protocols and Wrappers</a></dd>
</dl>
<dl>
<dt><a href='/manual/en/security.php'>Security</a></dt>
<dd><a href='/manual/en/security.intro.php'>Introduction</a></dd>
<dd><a href='/manual/en/security.general.php'>General considerations</a></dd>
<dd><a href='/manual/en/security.cgi-bin.php'>Installed as CGI binary</a></dd>
<dd><a href='/manual/en/security.apache.php'>Installed as an Apache module</a></dd>
<dd><a href='/manual/en/security.sessions.php'>Session Security</a></dd>
<dd><a href='/manual/en/security.filesystem.php'>Filesystem Security</a></dd>
<dd><a href='/manual/en/security.database.php'>Database Security</a></dd>
<dd><a href='/manual/en/security.errors.php'>Error Reporting</a></dd>
<dd><a href='/manual/en/security.variables.php'>User Submitted Data</a></dd>
<dd><a href='/manual/en/security.hiding.php'>Hiding PHP</a></dd>
<dd><a href='/manual/en/security.current.php'>Keeping Current</a></dd>
<dt><a href='/manual/en/features.php'>Features</a></dt>
<dd><a href='/manual/en/features.http-auth.php'>HTTP authentication with PHP</a></dd>
<dd><a href='/manual/en/features.cookies.php'>Cookies</a></dd>
<dd><a href='/manual/en/features.sessions.php'>Sessions</a></dd>
<dd><a href='/manual/en/features.file-upload.php'>Handling file uploads</a></dd>
<dd><a href='/manual/en/features.remote-files.php'>Using remote files</a></dd>
<dd><a href='/manual/en/features.connection-handling.php'>Connection handling</a></dd>
<dd><a href='/manual/en/features.persistent-connections.php'>Persistent Database Connections</a></dd>
<dd><a href='/manual/en/features.commandline.php'>Command line usage</a></dd>
<dd><a href='/manual/en/features.gc.php'>Garbage Collection</a></dd>
<dd><a href='/manual/en/features.dtrace.php'>DTrace Dynamic Tracing</a></dd>
</dl>
<dl>
<dt><a href='/manual/en/funcref.php'>Function Reference</a></dt>
<dd><a href='/manual/en/refs.basic.php.php'>Affecting PHP's Behaviour</a></dd>
<dd><a href='/manual/en/refs.utilspec.audio.php'>Audio Formats Manipulation</a></dd>
<dd><a href='/manual/en/refs.remote.auth.php'>Authentication Services</a></dd>
<dd><a href='/manual/en/refs.utilspec.cmdline.php'>Command Line Specific Extensions</a></dd>
<dd><a href='/manual/en/refs.compression.php'>Compression and Archive Extensions</a></dd>
<dd><a href='/manual/en/refs.crypto.php'>Cryptography Extensions</a></dd>
<dd><a href='/manual/en/refs.database.php'>Database Extensions</a></dd>
<dd><a href='/manual/en/refs.calendar.php'>Date and Time Related Extensions</a></dd>
<dd><a href='/manual/en/refs.fileprocess.file.php'>File System Related Extensions</a></dd>
<dd><a href='/manual/en/refs.international.php'>Human Language and
Character Encoding Support</a></dd>
<dd><a href='/manual/en/refs.utilspec.image.php'>Image Processing and Generation</a></dd>
<dd><a href='/manual/en/refs.remote.mail.php'>Mail Related Extensions</a></dd>
<dd><a href='/manual/en/refs.math.php'>Mathematical Extensions</a></dd>
<dd><a href='/manual/en/refs.utilspec.nontext.php'>Non-Text MIME Output</a></dd>
<dd><a href='/manual/en/refs.fileprocess.process.php'>Process Control Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.other.php'>Other Basic Extensions</a></dd>
<dd><a href='/manual/en/refs.remote.other.php'>Other Services</a></dd>
<dd><a href='/manual/en/refs.search.php'>Search Engine Extensions</a></dd>
<dd><a href='/manual/en/refs.utilspec.server.php'>Server Specific Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.session.php'>Session Extensions</a></dd>
<dd><a href='/manual/en/refs.basic.text.php'>Text Processing</a></dd>
<dd><a href='/manual/en/refs.basic.vartype.php'>Variable and Type Related Extensions</a></dd>
<dd><a href='/manual/en/refs.webservice.php'>Web Services</a></dd>
<dd><a href='/manual/en/refs.utilspec.windows.php'>Windows Only Extensions</a></dd>
<dd><a href='/manual/en/refs.xml.php'>XML Manipulation</a></dd>
<dd><a href='/manual/en/refs.ui.php'>GUI Extensions</a></dd>
</dl>
<dl>
<dt>Keyboard Shortcuts</dt><dt>?</dt>
<dd>This help</dd>
<dt>j</dt>
<dd>Next menu item</dd>
<dt>k</dt>
<dd>Previous menu item</dd>
<dt>g p</dt>
<dd>Previous man page</dd>
<dt>g n</dt>
<dd>Next man page</dd>
<dt>G</dt>
<dd>Scroll to bottom</dd>
<dt>g g</dt>
<dd>Scroll to top</dd>
<dt>g h</dt>
<dd>Goto homepage</dd>
<dt>g s</dt>
<dd>Goto search<br>(current page)</dd>
<dt>/</dt>
<dd>Focus search box</dd>
</dl></div></nav>
<div id="goto">
<div class="search">
<div class="text"></div>
<div class="results"><ul></ul></div>
</div>
</div>
<div id="layout" class="clearfix">
<section id="layout-content">
<div class="page-tools">
<div class="change-language">
<form action="/manual/change.php" method="get" id="changelang" name="changelang">
<fieldset>
<label for="changelang-langs">Язык:</label>
<select onchange="document.changelang.submit()" name="page" id="changelang-langs">
<option value='en/index.php'>English</option>
<option value='de/index.php'>German</option>
<option value='es/index.php'>Spanish</option>
<option value='fr/index.php'>French</option>
<option value='it/index.php'>Italian</option>
<option value='ja/index.php'>Japanese</option>
<option value='pt_BR/index.php'>Brazilian Portuguese</option>
<option value='ru/index.php' selected="selected">Russian</option>
<option value='tr/index.php'>Turkish</option>
<option value='uk/index.php'>Ukrainian</option>
<option value='zh/index.php'>Chinese (Simplified)</option>
<option value='help-translate.php'>Other</option>
</select>
</fieldset>
</form>
</div>
</div><div id="index" class="set">
<h1 class="title">Руководство по PHP</h1>
<div class="info">
<div class="pubdate">2026-10-26</div>
<div class="authorgroup" id="translators">
<div class="author vcard"><strong class="by">от</strong>:<br />
<span class="personname fn">
<span class="firstname given-name">Алексей</span> <span class="surname family-name">Пыльцын</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Андрей</span> <span class="surname family-name">Громов</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Евгений</span> <span class="surname family-name">Четвериков</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Михаил</span> <span class="surname family-name">Алфёров</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Сергей</span> <span class="surname family-name">Зорин</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Сергей</span> <span class="surname family-name">Пантелеев</span>
</span>
</div>
</div>
<div class="authorgroup" id="translators.old">
<div class="author vcard"><strong class="by">от</strong>:<br />
<span class="personname fn">
<span class="firstname given-name">Александр</span> <span class="surname family-name">Москалёв</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Александр</span> <span class="surname family-name">Войцеховский</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Алексей</span> <span class="surname family-name">Асемов</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Алексей</span> <span class="surname family-name">Егоров</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Алексей</span> <span class="surname family-name">Шеин</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Андрей</span> <span class="surname family-name">Безруков</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Андрей</span> <span class="surname family-name">Деменев</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Антон</span> <span class="surname family-name">Довгаль</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Борис</span> <span class="surname family-name">Безруков</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Борис</span> <span class="surname family-name">Клименко</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Борис</span> <span class="surname family-name">Флейтлих</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Даниил</span> <span class="surname family-name">Реужков</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Дмитрий</span> <span class="surname family-name">Винярчук</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Евгений</span> <span class="surname family-name">Сюзев</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Иван</span> <span class="surname family-name">Коваленко</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Казбек</span> <span class="surname family-name">Джигкаев</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Кирилл</span> <span class="surname family-name">Барашкин</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Максим</span> <span class="surname family-name">Чабан</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Михаил</span> <span class="surname family-name">Баранов</span>
</span>
</div>
<div class="author vcard">
<span class="personname fn">
<span class="firstname given-name">Юрий</span> <span class="surname family-name">Бабиков</span>
</span>
</div>
</div>
</div>
<ul class="chunklist chunklist_set"><li><a href="copyright.php">Авторские права</a></li><li><a href="getting-started.php">Приступая к работе</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="introduction.php">Введение</a> — Что такое PHP и что он умеет делать</li><li><a href="tutorial.php">Простой учебник</a></li></ul></li><li><a href="install.php">Установка и настройка</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="install.general.php">Общие инструкции по установке</a></li><li><a href="install.unix.php">Установка в Unix-системы</a></li><li><a href="install.macosx.php">Установка на macOS</a></li><li><a href="install.windows.php">Установка в системы с ОС Windows</a></li><li><a href="install.cloud.php">Установка на платформах Cloud Computing</a></li><li><a href="install.fpm.php">Менеджер процессов FastCGI (FPM)</a></li><li><a href="install.pecl.php">Установка PECL-модулей</a></li><li><a href="install.composer.intro.php">Знакомство с пакетным менеджером Composer</a></li><li><a href="install.pie.intro.php">Введение в PIE</a></li><li><a href="configuration.php">Конфигурация времени выполнения</a></li></ul></li><li><a href="langref.php">Справочник языка</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="language.basic-syntax.php">Основы синтаксиса</a></li><li><a href="language.types.php">Типы</a></li><li><a href="language.variables.php">Переменные</a></li><li><a href="language.constants.php">Константы</a></li><li><a href="language.expressions.php">Выражения</a></li><li><a href="language.operators.php">Операторы</a></li><li><a href="language.control-structures.php">Управляющие конструкции</a></li><li><a href="language.functions.php">Функции</a></li><li><a href="language.oop5.php">Классы и объекты</a></li><li><a href="language.namespaces.php">Пространства имён</a></li><li><a href="language.enumerations.php">Перечисления</a></li><li><a href="language.error-handling.php">Error Handling</a></li><li><a href="language.fibers.php">Fibers</a></li><li><a href="language.generators.php">Генераторы</a></li><li><a href="language.attributes.php">Атрибуты</a></li><li><a href="language.references.php">Объяснение ссылок</a></li><li><a href="reserved.variables.php">Предопределённые переменные</a></li><li><a href="reserved.exceptions.php">Предопределённые исключения</a></li><li><a href="reserved.interfaces.php">Встроенные интерфейсы и классы</a></li><li><a href="reserved.attributes.php">Предопределённые атрибуты</a></li><li><a href="context.php">Опции и параметры контекста</a></li><li><a href="wrappers.php">Протоколы и обёртки</a></li></ul></li><li><a href="security.php">Безопасность</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="security.intro.php">Вступление</a></li><li><a href="security.general.php">Общие соображения</a></li><li><a href="security.cgi-bin.php">О безопасности PHP в режиме CGI-программы</a></li><li><a href="security.apache.php">Если PHP установлен как модуль Apache</a></li><li><a href="security.sessions.php">Безопасность сессий</a></li><li><a href="security.filesystem.php">Безопасность файловой системы</a></li><li><a href="security.database.php">Безопасность баз данных</a></li><li><a href="security.errors.php">Сообщения об ошибках</a></li><li><a href="security.variables.php">Данные пользовательского ввода</a></li><li><a href="security.hiding.php">Сокрытие PHP</a></li><li><a href="security.current.php">Необходимость обновлений</a></li></ul></li><li><a href="features.php">Особенности</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="features.http-auth.php">HTTP-аутентификация в PHP</a></li><li><a href="features.cookies.php">Cookies</a></li><li><a href="features.sessions.php">Сессии</a></li><li><a href="features.file-upload.php">Загрузка файлов на сервер</a></li><li><a href="features.remote-files.php">Работа с удалёнными файлами</a></li><li><a href="features.connection-handling.php">Работа с соединениями</a></li><li><a href="features.persistent-connections.php">Постоянные сLine truncated
<h3 class="title">Нашли ошибку?</h3>
<div>
</div>
<div class="edit-bug">
<a href="https://github.com/php/doc-base/blob/master/README.md" title="Github-инструкция по улучшению страниц" target="_blank" rel="noopener noreferrer">Инструкция</a>
•
<a href="https://github.com/php/doc-ru">Исправление</a>
•
<a href="https://github.com/php/doc-ru/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Findex%0A%0A---">Сообщение об ошибке</a>
</div>
</div><section id="usernotes">
<div class="head">
<span class="action"><a href="/manual/add-note.php?sect=index&amp;repo=ru&amp;redirect=https://www.php.net/manual/ru/index.php">+<small>Добавить</small></a></span>
<h3 class="title">Примечания пользователей </h3>
</div>
<div class="note">Пользователи ещё не добавляли примечания для страницы</div></section> </section><!-- layout-content -->
</div><!-- layout -->
<footer>
<div class="container footer-content">
<div class="row-fluid">
<ul class="footmenu">
<li><a href="/manual/ru/copyright.php">Copyright &copy; 2001-2026 The PHP Documentation Group</a></li>
<li><a href="/my.php">My PHP.net</a></li>
<li><a href="/contact.php">Contact</a></li>
<li><a href="/sites.php">Other PHP.net sites</a></li>
<li><a href="/privacy.php">Privacy policy</a></li>
</ul>
</div>
</div>
</footer>
<script src="/cached.php?t=&amp;f=/js/ext/jquery-3.6.0.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/FuzzySearch.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/mousetrap.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/ext/jquery.scrollTo.min.js"></script>
<script src="/cached.php?t=&amp;f=/js/search.js"></script>
<script src="/cached.php?t=&amp;f=/js/common.js"></script>
<script type="module" src="/cached.php?t=&amp;f=/js/interactive-examples.js"></script>
<a id="toTop" href="javascript:;"><span id="toTopHover"></span><img width="40" height="40" alt="To Top" src="/images/to-top@2x.png"></a>
<div id="search-modal__backdrop" class="search-modal__backdrop">
<div
role="dialog"
aria-label="Search modal"
id="search-modal"
class="search-modal"
>
<div class="search-modal__header">
<div class="search-modal__form">
<div class="search-modal__input-icon">
<!-- https://feathericons.com search -->
<svg xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</div>
<input
type="search"
id="search-modal__input"
class="search-modal__input"
placeholder="Search docs"
aria-label="Search docs"
/>
</div>
<button aria-label="Close" class="search-modal__close">
<!-- https://pictogrammers.com/library/mdi/icon/close/ -->
<svg
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
width="24"
viewBox="0 0 24 24"
>
<path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/>
</svg>
</button>
</div>
<div
role="listbox"
aria-label="Search results"
id="search-modal__results"
class="search-modal__results"
></div>
<div class="search-modal__helper-text">
<div>
<kbd>↑</kbd> and <kbd>↓</kbd> to navigate •
<kbd>Enter</kbd> to select •
<kbd>Esc</kbd> to close • <kbd>/</kbd> to open
</div>
<div>
Press <kbd>Enter</kbd> without
selection to search using Google
</div>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,682 @@
<!DOCTYPE html>
<html
lang="en"
data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"
data-a11y-animated-images="system" data-a11y-link-underlines="true"
data-css-features="site_disable_smooth_scrolling"
>
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
<link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
<link rel="preconnect" href="https://github.githubassets.com" crossorigin>
<link rel="preconnect" href="https://avatars.githubusercontent.com">
<script type="importmap">{"imports":{"react":"https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js","react-dom":"https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js","react-dom/client":"https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js","react-is":"https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js","react-reconciler":"https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js","react/compiler-runtime":"https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js","react/jsx-dev-runtime":"https://github.githubassets.com/assets/react-jsx-dev-runtime-ea55d68667d559e5.js","react/jsx-runtime":"https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js","scheduler":"https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js"}}</script>
<meta name="react-profiling" content="0" data-turbo-transient="true" />
<meta name="react-import-map" content="react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf" data-turbo-track="reload" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="light" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-3862d92e8cad06f0.css" /><link data-color-theme="light_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind_high_contrast-554f83c57e146400.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-8a8312bd5594c79a.css" /><link data-color-theme="light_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia_high_contrast-26b9d9807a0334fb.css" /><link data-color-theme="dark" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-bea0b289618fbfb6.css" /><link data-color-theme="dark_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind_high_contrast-fe483dca5ad67edd.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-7d4b8c531c77a24a.css" /><link data-color-theme="dark_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia_high_contrast-edfb3968733aaf25.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-1f24e8126354e7aa.css" /><link data-color-theme="dark_dimmed_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed_high_contrast-bb55737dcb13dc9b.css" />
<style type="text/css">
:root {
--tab-size-preference: 4;
}
pre, code {
tab-size: var(--tab-size-preference);
}
</style>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-02e066689466a8cd.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-38ae573fa780d76a.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-b577b4b65d1381c3.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-11ab453cdcc1b7c1.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-542ca59b4b92999d.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-b25a4886e30e3e5f.css" />
<script type="application/json" id="client-env">{"locale":"en","featureFlags":["actions_enable_background_steps","actions_new_hosted_runner_image_select_sizes_and_versions","actions_runners_react_view","actions_workflows_react_toggle","agent_author_search_expansion","agent_author_search_expansion_ui_pulls","ahp_v1_wire_protocol","alternate_user_config_repo","billing_billable_licenses_cost_center_bucket_fix","billing_budget_expiration","billing_cost_center_list_assigned_resources","billing_discount_threshold_notification","code_quality_enablement_banner_targeting","code_quality_remove_preview","code_scanning_ai_scan_button_v2","code_view_raf_sticky_lines","code_view_skip_unchanged_wrap_preference","codespaces_prebuild_region_target_update","coding_agent_third_party_model_ui","collab_docs_authorization","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_automation_continuous_history","copilot_automation_repo_mcp_servers","copilot_automations_pagination","copilot_background_shell_workbench","copilot_base_model_policy_row","copilot_chat_auto_mode_v2","copilot_chat_clear_model_selection_for_default_change","copilot_chat_persist_session_drafts","copilot_chat_vision_dotcom_chat_ga_gate","copilot_css_textarea_autosize","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_removal_on_marketplace","copilot_fix_failed_workflows_all_skus","copilot_hide_hovercard","copilot_immersive_task_hyperlinking","copilot_managed_settings_validation_file_links","copilot_mc_cli_resume_any_users_task","copilot_mission_control_agent_merge_feedback","copilot_mission_control_agent_merge_fix_ci","copilot_mission_control_agent_merge_resolve_conflicts","copilot_mission_control_agents_repository_task_detail","copilot_mission_control_agents_task_detail","copilot_mission_control_ahp_diff","copilot_mission_control_ahp_diff_workbench","copilot_mission_control_ahp_local_images","copilot_mission_control_awps_batching","copilot_mission_control_create_pull_request_client_tool","copilot_mission_control_early_stop","copilot_mission_control_environment_task_destination_startup","copilot_mission_control_environments_web_kickoff","copilot_mission_control_independent_mode_controls","copilot_mission_control_needs_attention","copilot_mission_control_pinned_tasks","copilot_mission_control_reasoning_effort","copilot_mission_control_reserved_sandbox_tasks","copilot_mission_control_reuse_project_workspace","copilot_mission_control_session_client_attribution","copilot_mission_control_session_metadata","copilot_mission_control_setup_steps_timing","copilot_mission_control_sticky_header","copilot_mission_control_task_alive_updates","copilot_mission_control_task_sharing","copilot_mission_control_use_api_gateway","copilot_org_policy_page_focus_mode","copilot_policy_ui_refresh","copilot_pr_chat_thread_persistence","copilot_quick_chat_default_chat_scope","copilot_quick_chat_project_sessions","copilot_quick_chat_recent_artifact_sessions","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_swe_agent_authorization_status_ui","copilot_swe_agent_automation_resource_scoped_writes","copilot_swe_agent_code_scanning_alert_trigger","copilot_swe_agent_dependabot_alert_trigger","copilot_swe_agent_discussion_comment_trigger","copilot_swe_agent_discussion_opened_trigger","copilot_swe_agent_discussion_updated_trigger","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_issue_assigned_trigger","copilot_swe_agent_issue_closed_trigger","copilot_swe_agent_issue_comment_trigger","copilot_swe_agent_issue_labeled_trigger","copilot_swe_agent_issue_reopened_trigger","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_pull_request_assigned_trigger","copilot_swe_agent_pull_request_closed_trigger","copilot_swe_agent_pull_request_comment_trigger","copilot_swe_agent_pull_request_converted_to_draft_trigger","copilot_swe_agent_pull_request_labeled_trigger","copilot_swe_agent_pull_request_merged_trigger","copilot_swe_agent_pull_request_opened_trigger","copilot_swe_agent_pull_request_ready_for_review_trigger","copilot_swe_agent_pull_request_reopened_trigger","copilot_swe_agent_pull_request_review_dismissed_trigger","copilot_swe_agent_pull_request_review_requested_trigger","copilot_swe_agent_pull_request_review_submitted_trigger","copilot_swe_agent_pull_request_review_thread_resolved_trigger","copilot_swe_agent_pull_request_review_thread_unresolved_trigger","copilot_swe_agent_pull_request_synchronize_trigger","copilot_swe_agent_secret_scanning_alert_trigger","copilot_swe_agent_sub_issue_added_trigger","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_task_scoped_alive_channel","copilot_token_based_billing","copilot_unconfigured_is_inherited","copilot_user_can_upgrade_plan_field","copilot_workbench_sunset_redirect","dashboard_agents_module_auth_token_check","fgpat_permissions_selector_redesign","glc_code_qualitLine truncated
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/high-contrast-cookie-141c17800ca6ba23.js"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wp-runtime-9bb558fd60393eac.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-foundation-799625033ee8341e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-runtime-24d1e3019d231636.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fetch-utilities-27ed50f7568a5f72.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ser-2defe2918d9c9884.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/environment-1cd4523d735f12f8.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-runtime.47c2032941ed0c3c.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/catalyst-5bc36fa5a846f5a0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/selector-observer-7ae05416e4a383ae.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/relative-time-element-a7b7e0f1360ca8f9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/by4-04f0d28829dc4df0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ja9-b94de714266ba389.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3h2-5f8899065b81d778.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t2-19741658de225445.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z8j-d8f6fa7339115370.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hjg-55b6d77c48226433.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wc-9718c61e184d7417.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/github-elements-300dc3b16544fdde.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/element-registry-53c2c2b92a4c8753.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/runtime-helpers-26f2970b9e869a17.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aria-live-e0f60f15396869e3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hotkey-a82e6cb07443fd1c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-core-64258d9ba65c8c5a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cc-99eedace671eb2b6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/urv-453c749eec9d7d37.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4t-f1181f796eb9ea15.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pb0-3a1794e99794195c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6n-e6e586acca87c769.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z-b2cf9f86cb4bed3b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9k-9938b9e1b5d2f0d0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0r-4a2b771052825f69.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ow-98d10140e8228c74.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mv-2c0d46e691479ec1.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eou-b91079b9ea7074de.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eon-36af335a1906af16.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/yga-dd50cf95593467fe.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/behaviors-e454b1001b1685dd.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/react-core.c2407ba3ce2b1978.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/n9-369bc13c0e8c5584.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/codespaces-4b099cf46c8ef081.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/liv-7ba64ac238bca0a9.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/repositories-24a38d4d8ca9d84c.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-menu-07478b06306b30b8.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/primer-react-911369ee234690ef.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/nc-28ebfc8e58bca42f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qmp-308230626a2aedb0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/to-b501df3e06c1799a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t7l-423469c05c948a8b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4u-bf6e08201764cb0a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/s07-527b0afa5c76403e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fe-f8365f29462c346a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zd-61606dd1c14634aa.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/7v5-d77d961bce5db1f3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/15-627ae2a5640b1bab.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5w-452c3a937483ff49.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/la-27ea91f01fa7ffcf.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/y0-02339f2a1b7b69ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t9-28dc4f6af25a5400.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/20-c4fa69654eec9c7a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a68-c67bfbb035a5cd79.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3s-ebbc335534e40b2a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cnq-00f06287d057a2b3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gw-4bf343b417f9ec19.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0-8683d136d595e7ee.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jn-9c45b198d99a47c8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/q6j-256bc816dd682a0f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fn-a24b6dda102e437d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/i2-5e26ac37ee961d06.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/b2-35e229a50d0f3d05.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pg-10c94bf4f9e9df2f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/lrk-ea49e115e48ba34b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mlz-fce49bd96df2c99f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/dx-17fc1b71910ed6ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sm-22346830d5e5a763.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ur-4cd875e44a87e9f6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pr-7e5e6964ac1c13a7.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/up-2550cb0824072126.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gd-c0d7e6321e1379df.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/51-b582a312086b7975.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/c28-f2c3e9d4cd1ed8f5.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ti-dc598d1734870bb6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/stw-61e8fd83c623657f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/w77-0527a66a073ed15c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6g-b16e60ccff69b263.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-view-3c1596a084a203f4.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/w77.25ab7aedc8e0cfc5.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-view.f8b0233ee1ce76e4.module.css" />
<title>GitHub - adamdruppe/terminal-emulator: A terminal emulator in D. · GitHub</title>
<meta name="route-pattern" content="/:user_id/:repository" data-turbo-transient>
<meta name="route-controller" content="files" data-turbo-transient>
<meta name="route-action" content="disambiguate" data-turbo-transient>
<meta name="fetch-nonce" content="v2:48524aa3-f2cb-c836-74ae-a94576152267">
<meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb">
<meta name="request-id" content="FCEB:1EA966:151AE036:1C46EE45:6ADF59A7" data-pjax-transient="true"/><meta name="html-safe-nonce" content="a6deeea000ed92d3eb4ba81f90b39f77f6b7c00152780b4e97b8846b081503f8" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJGQ0VCOjFFQTk2NjoxNTFBRTAzNjoxQzQ2RUU0NTo2QURGNTlBNyIsInZpc2l0b3JfaWQiOiI4ODgzNjEwNzczNzI3Njk3MzE5IiwicmVnaW9uX2VkZ2UiOiJmcmEiLCJyZWdpb25fcmVuZGVyIjoiZnJhIn0=" data-pjax-transient="true"/><meta name="visitor-hmac" content="a9716436d00b0f5ab05249d54dc72dd20fe2492f4d85147e8ecb002daa8fba18" data-pjax-transient="true"/>
<meta name="hovercard-subject-tag" content="repository:13337960" data-turbo-transient>
<meta name="github-keyboard-shortcuts" content="repository,copilot" data-turbo-transient="true" />
<meta name="selected-link" value="repo_source" data-turbo-transient>
<link rel="assets" href="https://github.githubassets.com/">
<meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I">
<meta name="octolytics-url" content="https://collector.github.com/github/collect" />
<meta name="analytics-location" content="/&lt;user-name&gt;/&lt;repo-name&gt;" data-turbo-transient="true" />
<meta name="user-login" content="">
<meta name="viewport" content="width=device-width">
<meta name="description" content="A terminal emulator in D. Contribute to adamdruppe/terminal-emulator development by creating an account on GitHub.">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
<meta property="fb:app_id" content="1401488693436528">
<meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/adamdruppe/terminal-emulator" />
<meta name="twitter:image" content="https://opengraph.githubassets.com/cb5156d43be26c803f284df1a8ad74d081f074e307a2ab47a6e3e4a853ab9ce2/adamdruppe/terminal-emulator" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="GitHub - adamdruppe/terminal-emulator: A terminal emulator in D." /><meta name="twitter:description" content="A terminal emulator in D. Contribute to adamdruppe/terminal-emulator development by creating an account on GitHub." />
<meta property="og:image" content="https://opengraph.githubassets.com/cb5156d43be26c803f284df1a8ad74d081f074e307a2ab47a6e3e4a853ab9ce2/adamdruppe/terminal-emulator" /><meta property="og:image:alt" content="A terminal emulator in D. Contribute to adamdruppe/terminal-emulator development by creating an account on GitHub." /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="600" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="GitHub - adamdruppe/terminal-emulator: A terminal emulator in D." /><meta property="og:url" content="https://github.com/adamdruppe/terminal-emulator" /><meta property="og:description" content="A terminal emulator in D. Contribute to adamdruppe/terminal-emulator development by creating an account on GitHub." />
<meta name="hostname" content="github.com">
<meta name="expected-hostname" content="github.com">
<meta http-equiv="x-pjax-version" content="b81857601f3cfc6217401e7227b2e97f6a17b7c285bac4cfafc01fbf54f97788" data-turbo-track="reload">
<meta http-equiv="x-pjax-csp-version" content="d546acd15426e62dc1faed109148b7d627958da25dee9fa681acfb875a2d8728" data-turbo-track="reload">
<meta http-equiv="x-pjax-css-version" content="9d9b01efda4d19542ab9c3e0a21f5b6dd074bb6b27faa77e51b4fe457a091220" data-turbo-track="reload">
<meta http-equiv="x-pjax-js-version" content="6160d3560837ba88bf2f4743d0d20d8f1a64d5cb904c43c1ab6c83b95a5bc97a" data-turbo-track="reload">
<meta name="turbo-cache-control" content="no-preview" data-turbo-transient="">
<meta name="turbo-cache-control" content="no-cache" data-turbo-transient>
<meta data-hydrostats="publish">
<meta name="go-import" content="github.com/adamdruppe/terminal-emulator git https://github.com/adamdruppe/terminal-emulator.git">
<meta name="octolytics-dimension-user_id" content="600799" /><meta name="octolytics-dimension-user_login" content="adamdruppe" /><meta name="octolytics-dimension-repository_id" content="13337960" /><meta name="octolytics-dimension-repository_nwo" content="adamdruppe/terminal-emulator" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="13337960" /><meta name="octolytics-dimension-repository_network_root_nwo" content="adamdruppe/terminal-emulator" />
<meta name="turbo-body-classes" content="logged-out env-production page-responsive">
<meta name="disable-turbo" content="false">
<meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
<meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
<meta name="release" content="1d6bab509c63982484732fef48ac891446a7ca46" data-turbo-track="reload">
<meta name="ui-target" content="full">
<link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000">
<link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
<link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon">
<meta name="theme-color" content="#1e2327">
<meta name="color-scheme" content="light dark" />
<link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
</head>
<body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div id="__primerPortalRoot__" style="z-index: 1000; position: absolute; width: 100%;" data-turbo-permanent></div>
<div class="position-relative header-wrapper js-header-wrapper ">
<a href="#start-of-content" data-skip-target-assigned="false" class="px-2 tmp-py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a>
<span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">
<span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span>
</span>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-b9143e9b577ebc64.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.6e2227f5a0b1c784.module.css" />
<react-partial
partial-name="keyboard-shortcuts-dialog"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/g6m-c6c2e85d4cbe6e0f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-install-banner-partial-7428daf7a3910b95.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-install-banner-partial.54a1ce4a8b5395b5.module.css" />
<react-partial
partial-name="app-install-banner-partial"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h3j-f1362403421e6888.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qz-cb0a40e50f2a2288.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fz-cb55e83c29d0a351.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/skl-90fea02d318d647f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h4-5f55e06e297293d6.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z7-54a4e2eade1aa26b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a6j-32ec4660665b36c1.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/marketing-header-f37244122aa8a66f.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-brand-css.bf4feb030857a64b.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/a6j.40fbb8aed1553149.module.css" />
<react-partial
partial-name="marketing-header"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2Fgithub.com%2Fadamdruppe%2Fterminal-emulator","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=adamdruppe%2Fterminal-emulator","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://github.com/adamdruppe/terminal-emulator\",\"user_id\":null}}","auth_hydro_click_hmac":"198da6dc851d04811868ed908edeb8d86c67e2de53a152c491bacfdd2e0df591","overlay":false,"fixed":false}}</script>
<div data-target="react-partial.reactRoot"><div data-color-mode="dark" data-light-theme="light" data-dark-theme="dark"><header class="root__q6pgdo HeaderMktg header-logged-out" role="banner" data-marketing-header="true" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark" data-is-top="true"><h2 class="visuallyHidden__TIbnmb">Navigation Menu</h2><button type="button" class="backdrop__rMNFxs" aria-label="Close navigation menu"></button><div class="bar__cF4m1O"><div class="topRow__-dqkhM"><div class="toggleSlot__-ODxSX"><button type="button" class="toggle__kPg75-" aria-label="Toggle navigation" aria-expanded="false"><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span></button></div><a href="/" aria-label="Homepage" class="logo__bX9RKh" data-analytics-event="{&quot;action&quot;:&quot;homepage&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;logo&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;homepage_link_logo_header&quot;}"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github" viewBox="0 0 24 24" width="32" height="32" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path></svg></a><div class="mobileActions__8F9jkX"><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw cta__xkenoh" href="/login?return_to=https%3A%2F%2Fgithub.com%2Fadamdruppe%2Fterminal-emulator" data-analytics-event="{&quot;action&quot;:&quot;sign_in&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_in_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/adamdruppe/terminal-emulator&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="198da6dc851d04811868ed908edeb8d86c67e2de53a152c491bacfdd2e0df591"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH">Sign in</span></span></a><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw trigger__VWDtQ2" type="button" aria-haspopup="dialog" aria-labelledby="_R_3dd_"><span class="Primer_Brand__Button-module__Button__leading-visual___jjtTe" data-testid="Button-leading-visual"><svg data-component="Octicon" focusable="false" aria-hidden="true" class="octicon octicon-sliders Primer_Brand__Button-module__Button__icon-visual____qybb" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path></svg></span></button><div class="Primer_Brand__Tooltip-module__Tooltip___0Eipx" data-direction="s" aria-hidden="true" id="_R_3dd_">Appearance settings</div></div></div><div class="menu__2EHTkB"><div class="menuWrapper__Vmk5KX"><nav class="nav__mHQXuz" aria-label="Global"><ul class="list__2Gh7vS"><li><div class="container__KHyzq4"><Line truncated
</react-partial>
<div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<button id="icon-button-1da83f84-24d4-46c4-bc84-73f049de75a8" aria-labelledby="tooltip-ef5e0a67-e522-4f37-af12-bc1538e112f1" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button><tool-tip id="tooltip-ef5e0a67-e522-4f37-af12-bc1538e112f1" for="icon-button-1da83f84-24d4-46c4-bc84-73f049de75a8" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip>
</div>
</div>
<div id="start-of-content" class="show-on-focus"></div>
<div id="js-flash-container" class="flash-container" data-turbo-replace>
<template class="js-flash-template">
<div class="flash flash-full {{ className }}">
<div >
<button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div aria-atomic="true" role="alert" class="js-flash-alert">
<div>{{ message }}</div>
</div>
</div>
</div>
</template>
</div>
<div
class="application-main "
data-commit-hovercards-enabled
data-discussion-hovercards-enabled
data-issue-and-pr-hovercards-enabled
data-project-hovercards-enabled
>
<div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
<main id="js-repo-pjax-container" >
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cn-7a4f85e8a901f4f7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0b-a7be65069037ffea.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t5-2c5d26edae56bda2.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5l-60d6b21dcbe3c5b7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1a-76a60fd58c2fa34b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/rk7-418a4f74edbc9f0d.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zxp-3eb99f149f91a754.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9ty-47c453f28886426e.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/r3j-2177885dae8b60eb.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1t-bdeb715d0c007303.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3j-c46f566649f3b4dc.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aj-7444763a0a51ca63.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sgn-de0af0b55144d4f4.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/li6-9946ed6b82f92046.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jvc-172b2b204ed5e8d3.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/global-nav-bar-67002cbbf88db339.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-nav-bar.912b64fbbec4ee98.module.css" />
<react-partial
partial-name="global-nav-bar"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"contextRegion":{"crumbs":[{"crumb_type":"user","label":"adamdruppe","is_root":false,"href":"/adamdruppe"},{"crumb_type":"repository","label":"terminal-emulator","is_root":false,"href":"/adamdruppe/terminal-emulator"}],"localNavigation":[{"id":"code","icon":"code","label":"Code","href":"/adamdruppe/terminal-emulator","selectedLinks":["repo_source","repo_downloads","repo_commits","repo_releases","repo_tags","repo_branches","repo_packages","repo_deployments","repo_attestations"],"popoverTarget":false,"commandId":"repositories:go-to-code","reactNav":{"appTarget":"code-view","anchor":"code-view-repo-link"},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"issues","icon":"issue-opened","label":"Issues","href":"/adamdruppe/terminal-emulator/issues","selectedLinks":["repo_issues","repo_labels","repo_milestones"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-issues","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"pull-requests","icon":"git-pull-request","label":"Pull requests","href":"/adamdruppe/terminal-emulator/pulls","selectedLinks":["repo_pulls","checks"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-pull-requests","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"actions","icon":"play","label":"Actions","href":"/adamdruppe/terminal-emulator/actions","selectedLinks":["repo_actions"],"popoverTarget":false,"commandId":"repositories:go-to-actions","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"projects","icon":"table","label":"Projects","href":"/adamdruppe/terminal-emulator/projects","selectedLinks":["repo_projects","new_repo_project","repo_project"],"popoverTarget":false,"commandId":"repositories:go-to-projects","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"wiki","icon":"book","label":"Wiki","href":"/adamdruppe/terminal-emulator/wiki","selectedLinks":["repo_wiki"],"popoverTarget":false,"commandId":"repositories:go-to-wiki","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"security-and-quality","icon":"shield","label":"Security and quality","href":"/adamdruppe/terminal-emulator/security","selectedLinks":["security","overview","alerts","policy","token_scanning","code_scanning"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-security","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"insights","icon":"graph","label":"Insights","href":"/adamdruppe/terminal-emulator/pulse","selectedLinks":["repo_graphs","repo_contributors","dependency_graph","dependabot_updates","pulse","people","community"],"popoverTarget":false,"commandId":"repositories:go-to-insights","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}}],"localNavigationUpdateChannel":null,"selectedLink":null,"currentPath":"/adamdruppe/terminal-emulator"},"owner":null,"headerLogo":{"href":"/","aria-label":"Homepage "},"notifications":{"indicatorMode":"disabled","websocketChannel":null,"fetchIndicatorSrc":"/notifications/indicator","fetchIndicatorEnabled":false},"issues":{"href":"/issues"},"pulls":{"href":"/pulls"},"contributedRepos":{"href":"/repos"},"copilot":{"show":false,"showAgentsButton":false,"showRelaunchAnnouncement":false,"copilotChatUrl":null,"copilotApiUrl":"https://api.githubcopilot.com"},"search":{"show":true,"showCommandPalette":false,"isSearchPage":false,"isJumpToSearch":false,"searchContext":{"scope":"repo:adamdruppe/terminal-emulator","current_repo_name":"terminal-emulator","current_repo_nwo":"adamdruppe/terminal-emulator","user_id":"adamdruppe"}},"commandPalette":null,"enterpriseBar":{"show":false},"globalTransactionalMessage":[],"payloadsUrl":"/_global-navigation/payloads.json?can_toggle_site_admin_and_employee_status=0\u0026is_admin_mode_on=0\u0026is_ui_opted_out=0\u0026show_ui_opt_out=0\u0026v=8","contextRegionUrl":"/_global-navigation/context-region.json"}}</script>
<div data-target="react-partial.reactRoot"><header aria-label="Global navigation menu" data-component="Stack" class="GlobalNav appHeader__6OmbvL prc-Stack-Stack-UQ9k6" data-gap="none" data-direction="vertical" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="none"><div data-component="Stack" class="prc-Stack-Stack-UQ9k6" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="center" data-padding="none"><div data-testid="top-nav-center" data-component="Stack" class="center__f1ujjY withLocalNavigation__FzpnU6 loggedOut__--dPuC prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="normal"><nav class="contextRegion__Wb1-GR prc-Breadcrumbs-BreadcrumbsBase-3Gb-B" aria-label="Breadcrumbs" data-overflow="menu" data-variant="normal" data-component="Breadcrumbs"><ol class="prc-Breadcrumbs-BreadcrumbsList-BKjpe"><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/adamdruppe" data-discover="true"><span class="">adamdruppe</span></a></li><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/adamdruppe/terminal-emulator" data-discover="true"><span class="contextCrumbLast__l2P28s">terminal-emulator</span></a></li></ol></nav></div><div data-testid="top-nav-right" data-component="Stack" class="right__5m36ST withLocalNavigation__FzpnU6 rightWithResponsiveCreateButton__JePGAt prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="start" data-padding="normal"></div></div><h2 class="prc-src-InternalVisuallyHidden-2YaI6">Repository navigation</h2><nav class="prc-components-UnderlineWrapper-eT-Yj prc-UnderlineNav-UnderlineWrapper-GWONT LocalNavigation__QHRW7C" aria-label="Repository" data-variant="inset" data-overflow-mode="wrap" data-hide-icons-breakpoint="medium"><ul class="prc-UnderlineNav-ItemsList-oj8gN prc-components-UnderlineItemList-xKlKC" role="list"><li role="presentation" aria-hidden="true" class="prc-UnderlineNav-WrapSpacer--aLgz"></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a aria-current="page" data-tab-item="code" data-react-nav="code-view" data-react-nav-anchor="code-view-repo-link" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/adamdruppe/terminal-emulator" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-code" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path></svg></span><span data-component="text" data-content="Code">Code</span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="issues" data-react-nav="repo" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/adamdruppe/terminal-emulator/issues" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-issue-opened" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path></svg></span><span data-component="text" data-content="Issues">Issues</span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="pull-requests" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/adamdruppe/terminal-emulator/pulls" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-pull-request" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path></svg></span><span data-compoLine truncated
</react-partial>
<turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class="">
<div id="repo-content-pjax-container" class="repository-content " >
<react-app
app-name="code-view"
initial-path="/adamdruppe/terminal-emulator"
style="display: block; min-height: calc(100vh - 64px);"
data-attempted-ssr="true"
data-ssr="true"
data-lazy="false"
data-alternate="false"
data-data-router-enabled="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-app.embeddedData">{"payload":{"codeViewRepoRoute":{"path":"/","refInfo":{"name":"master","listCacheKey":"v0:1765820217.0","canEdit":false,"refType":"branch","currentOid":"fcb50f62ce9dd76f5415f2bdf8ef3772da6d9e71"},"tree":{"items":[{"name":"font","path":"font","contentType":"directory"},{"name":"BUGS","path":"BUGS","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"attach.d","path":"attach.d","contentType":"file"},{"name":"detachable.d","path":"detachable.d","contentType":"file"},{"name":"dub.json","path":"dub.json","contentType":"file"},{"name":"icon.png","path":"icon.png","contentType":"file"},{"name":"mactabs.d","path":"mactabs.d","contentType":"file"},{"name":"main.d","path":"main.d","contentType":"file"},{"name":"message.d","path":"message.d","contentType":"file"},{"name":"nestedterminalemulator.d","path":"nestedterminalemulator.d","contentType":"file"},{"name":"serverside.d","path":"serverside.d","contentType":"file"},{"name":"utility.d","path":"utility.d","contentType":"file"},{"name":"variant-icon.png","path":"variant-icon.png","contentType":"file"}],"totalCount":16,"templateDirectorySuggestionUrl":null,"readme":null,"showBranchInfobar":false},"userNameDisplayConfiguration":null,"treeExpanded":false,"symbolsExpanded":false,"copilotSWEAgentEnabled":false,"copilotAccessAllowed":false,"isOverview":true,"overview":{"banners":{"shouldRecommendReadme":false,"isPersonalRepo":false,"showUseActionBanner":false,"actionSlug":null,"actionId":null,"showProtectBranchBanner":false,"requiredCustomPropertyValuesMissingCount":0,"transactionalMessageBanner":null,"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_repo","releasePath":"/adamdruppe/terminal-emulator/releases/new?marketplace=true","showPublishActionBanner":false},"interactionLimitBanner":null,"showInvitationBanner":false,"inviterName":null,"actionsMigrationBannerInfo":{"releaseTags":[],"showImmutableActionsMigrationBanner":false,"initialMigrationStatus":null},"copilotSurveyBanner":null,"showSpammyBanner":false,"blockedContributorsBanner":null,"codespacesSurveyBanner":null},"codeButton":{"contactPath":"/contact","isEnterprise":false,"local":{"protocolInfo":{"httpAvailable":true,"sshAvailable":null,"httpUrl":"https://github.com/adamdruppe/terminal-emulator.git","showCloneWarning":null,"sshUrl":null,"sshCertificatesRequired":null,"sshCertificatesAvailable":null,"ghCliUrl":"gh repo clone adamdruppe/terminal-emulator","defaultProtocol":"http","newSshKeyUrl":"/settings/ssh/new","setProtocolPath":"/users/set_protocol?protocol_type=clone"},"platformInfo":{"cloneUrl":"https://desktop.github.com","showVisualStudioCloneButton":false,"visualStudioCloneUrl":"https://windows.github.com","showXcodeCloneButton":false,"xcodeCloneUrl":"xcode://clone?repo=https%3A%2F%2Fgithub.com%2Fadamdruppe%2Fterminal-emulator","zipballUrl":"/adamdruppe/terminal-emulator/archive/refs/heads/master.zip"}},"newCodespacePath":"/codespaces/new?hide_repo_select=true\u0026repo=13337960"},"popovers":{"rename":null,"renamedParentRepo":null},"commitCount":"85","overviewFiles":[{"displayName":"README.md","repoName":"terminal-emulator","refName":"master","path":"README.md","preferredFileType":"readme","tabName":"README","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cp dir=\"auto\"\u003eThis is a terminal emulator library and ui with some xterm features and some extensions.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eBUILDING\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSee the example makefile for what I do on my system. You'll need a collection of files from my arsd repo, then just pass them all right over using the same version and -J flags I did.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dmd main.d terminalemulator.d -L-lutil ~/arsd/{color,eventloop,stb_truetype,xwindows,png,bmp,simpledisplay}.d -version=with_eventloop -J.\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003edmd main.d terminalemulator.d -L-lutil ~/arsd/{color,eventloop,stb_truetype,xwindows,png,bmp,simpledisplay}.d -version=with_eventloop -J.\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003efor one example\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIt expects a monospace font to be availble. I use the bitstream vera or the dejavu monospaces and rename them as the monospace-2.ttf.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can probably just do like\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"cp /usr/share/fonts/TTF/DejaVuSansMono.ttf monospace-2.ttf\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccoLine truncated
<div data-target="react-app.reactRoot"><link rel="preload" as="image" href="https://avatars.githubusercontent.com/u/600799?s=60&amp;v=4"/><meta name="github-code-view-meta-stats" id="github-code-view-meta-stats" data-hydrostats="publish"/> <!-- --> <a hidden="" id="code-view-repo-link" href="/adamdruppe/terminal-emulator" data-discover="true"></a> <div class="d-none"></div><div><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><div class="prc-PageLayout-PageLayoutContent-BneH9"><div data-component="SplitPageLayout.Content" class="prc-PageLayout-ContentWrapper-gR9eG" data-is-hidden-narrow="false"><div class="prc-PageLayout-Content-xWL-A" data-width="full" style="--spacing:var(--spacing-none)"><div class="content__cw9d2I" data-selector="repos-split-pane-content" id="repos-split-pane-content" tabindex="0"><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d container-xl" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><header data-component="SplitPageLayout.Header" data-hidden="false" class="prc-PageLayout-Header-0of-R tmp-px-3 tmp-px-lg-5" style="--spacing:var(--spacing-none)"><div class="prc-PageLayout-HeaderContent-gdFfN" style="--spacing:var(--spacing-none)"><!--&--><div class="tmp-pt-3 tmp-pb-3 border-bottom color-border-muted"><div class="d-flex flex-wrap flex-items-center gapx-3 gapy-1"><div class="TitleWrapper__4f5JPQ"><div id="repo-title-component"><div class="d-flex flex-items-center f3 text-normal min-width-0"><img data-component="Avatar" class="mr-2 flex-shrink-0 prc-Avatar-Avatar-0xaUi" alt="adamdruppe" width="24" height="24" style="--avatarSize-regular:24px" src="https://avatars.githubusercontent.com/u/600799?s=60&amp;v=4" data-testid="github-avatar"/><div itemProp="name" data-testid="repo-name-wrapper" class="mr-2 prc-Truncate-Truncate-2G1eo" data-inline="true" title="terminal-emulator" style="--truncate-max-width:100%"><strong><a class="color-fg-default prc-Link-Link-9ZwDx" data-component="Link" data-testid="repo-name-link" href="/adamdruppe/terminal-emulator" data-discover="true">terminal-emulator</a></strong></div><span class="mr-1 v-align-middle prc-Label-Label-qG-Zu" data-size="small" data-variant="secondary" data-testid="repo-visibility-label" data-component="Label">Public</span></div></div></div><div><ul class="list-style-none d-flex flex-shrink-0 flex-wrap flex-items-center gap-2 py-1 Actions__zFJ2t2" data-testid="repo-header-actions"><li><a data-component="Button" type="button" href="/login?return_to=%2Fadamdruppe%2Fterminal-emulator" rel="nofollow" aria-label="You must be signed in to change notification settings" data-testid="notifications-sign-in-button" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default" aria-describedby="_R_7abahlik5_"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-bell" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3">Notifications</span></span></a><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" role="tooltip" aria-hidden="true" id="_R_7abahlik5_">You must be signed in to change notification settings</span></li><li><a data-component="Button" type="button" href="/login?return_to=%2Fadamdruppe%2Fterminal-emulator" data-testid="fork-button" aria-label="You must be signed in to fork a repository" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-repo-forked" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" ovLine truncated
<p dir="auto">BUILDING</p>
<p dir="auto">See the example makefile for what I do on my system. You'll need a collection of files from my arsd repo, then just pass them all right over using the same version and -J flags I did.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dmd main.d terminalemulator.d -L-lutil ~/arsd/{color,eventloop,stb_truetype,xwindows,png,bmp,simpledisplay}.d -version=with_eventloop -J."><pre class="notranslate"><code>dmd main.d terminalemulator.d -L-lutil ~/arsd/{color,eventloop,stb_truetype,xwindows,png,bmp,simpledisplay}.d -version=with_eventloop -J.
</code></pre></div>
<p dir="auto">for one example</p>
<p dir="auto">It expects a monospace font to be availble. I use the bitstream vera or the dejavu monospaces and rename them as the monospace-2.ttf.</p>
<p dir="auto">You can probably just do like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cp /usr/share/fonts/TTF/DejaVuSansMono.ttf monospace-2.ttf"><pre class="notranslate"><code>cp /usr/share/fonts/TTF/DejaVuSansMono.ttf monospace-2.ttf
</code></pre></div>
<p dir="auto">if you're on Linux or download the font <a href="http://web.archive.org/web/20111127102009/http://www-old.gnome.org/fonts/" rel="nofollow">http://web.archive.org/web/20111127102009/http://www-old.gnome.org/fonts/</a></p>
<p dir="auto">Or even just modify the code to remove that bit or load it from your system at runtime. Maybe I'll change that later anyway.</p>
</article></div></div></div></div></div></div></div><div class="prc-PageLayout-PaneWrapper-pHPop pr-2" style="--offset-header:0px;--spacing-row:var(--spacing-none);--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="end"><div class="prc-PageLayout-HorizontalDivider-JLVqp prc-PageLayout-PaneHorizontalDivider-9tbnE" data-component="PageLayout.HorizontalDivider" data-variant-narrow="none" data-variant-regular="none" data-position="end" style="--spacing-divider:var(--spacing-none);--spacing:var(--spacing-none)"></div><div class="prc-PageLayout-Pane-AyzHK" data-component="SplitPageLayout.Pane" style="--spacing:var(--spacing-normal);--pane-min-width:256px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));--pane-width-size:var(--pane-width-large);--pane-width:320px"><!--&--><div class="borderGrid__VCnF9i"><div class="sidebarSection__oqw6Y8 HideWhenNarrow__nfGOuR border-0"><h2 class="sectionHeading__4n11uG prc-Heading-Heading-MtWFE" data-variant="small" data-component="Heading"><span>About</span></h2><p class="description__ej4leF prc-Text-Text-9mHv3" data-component="Text">A terminal emulator in D.</p><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Resources</span></h3><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#readme-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-book mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path></svg><span>Readme</span></a></div><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#License-1-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-law mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path></svg><span>License</span></a></div><div class="insights__9SON7y"><div class="insightLinks__Vv5-fu"><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="/adamdruppe/terminal-emulator/activity" data-discover="true"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-pulse mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"></path></svg><span>Activity</span></a></div></div><div class="insightStats__Z3jICr"><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Stars</span></h3><div class="mt-2 insightItem__0CLkke"><span class="socialStat__OaJfGy"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-star mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0Line truncated
</react-app>
</div>
</turbo-frame>
</main>
</div>
</div>
<footer class="footer f6 color-fg-muted color-border-subtle tmp-pt-7 tmp-pb-6 p-responsive" role="contentinfo" >
<h2 class='sr-only'>Footer</h2>
<div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap">
<div class="d-flex flex-items-center flex-shrink-0 mx-2">
<a aria-label="GitHub Homepage" class="footer-octicon mr-2" href="https://github.com">
<svg aria-hidden="true" data-component="Octicon" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
<path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path>
</svg>
</a>
<span>
&copy; 2026 GitHub,&nbsp;Inc.
</span>
</div>
<nav aria-label="Footer">
<h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3>
<ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading">
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to Terms&quot;,&quot;label&quot;:&quot;text:terms&quot;}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to privacy&quot;,&quot;label&quot;:&quot;text:privacy&quot;}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to security&quot;,&quot;label&quot;:&quot;text:security&quot;}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to status&quot;,&quot;label&quot;:&quot;text:status&quot;}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to community&quot;,&quot;label&quot;:&quot;text:community&quot;}" href="https://github.community/" data-view-component="true" class="Link--secondary Link">Community</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to docs&quot;,&quot;label&quot;:&quot;text:docs&quot;}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to contact&quot;,&quot;label&quot;:&quot;text:contact&quot;}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a>
</li>
<li class="mx-2" >
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;cookies&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;cookies_link_subfooter_footer&quot;}"
>
Manage cookies
</button>
</cookie-consent-link>
</li>
<li class="mx-2">
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent text-left"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;dont_share_info&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;dont_share_info_link_subfooter_footer&quot;}"
>
Do not share my personal information
</button>
</cookie-consent-link>
</li>
</ul>
</nav>
</div>
</footer>
<ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999"
data-locale="en"
data-initial-cookie-consent-allowed=""
data-cookie-consent-required="false"
></ghcc-consent>
<div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
You can’t perform that action at this time.
</div>
<template id="site-details-dialog">
<details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open>
<summary role="button" aria-label="Close dialog"></summary>
<details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">
<button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div class="octocat-spinner tmp-my-6 js-details-dialog-spinner"></div>
</details-dialog>
</details>
</template>
<div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;">
<div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;">
</div>
</div>
<template id="snippet-clipboard-copy-button">
<div class="zeroclipboard-container position-absolute right-0 top-0">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2 tmp-m-2">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2 tmp-m-2">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
<template id="snippet-clipboard-copy-button-unpositioned">
<div class="zeroclipboard-container">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
</div>
<div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div>
<div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div>
</body>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,327 @@
<html>
<head>
<title>CPrice::SetBasePrice</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script data-skip-moving="true">(function(w, d, n) {var cl = "bx-core";var ht = d.documentElement;var htc = ht ? ht.className : undefined;if (htc === undefined || htc.indexOf(cl) !== -1){return;}var ua = n.userAgent;if (/(iPad;)|(iPhone;)/i.test(ua)){cl += " bx-ios";}else if (/Windows/i.test(ua)){cl += ' bx-win';}else if (/Macintosh/i.test(ua)){cl += " bx-mac";}else if (/Linux/i.test(ua) && !/Android/i.test(ua)){cl += " bx-linux";}else if (/Android/i.test(ua)){cl += " bx-android";}cl += (/(ipad|iphone|android|mobile|touch)/i.test(ua) ? " bx-touch" : " bx-no-touch");cl += w.devicePixelRatio && w.devicePixelRatio >= 2? " bx-retina": " bx-no-retina";if (/Safari/i.test(ua) && !/Chrome/i.test(ua)){cl += " bx-safari";}else if (/AppleWebKit/.test(ua)){cl += " bx-chrome";}else if (/Opera/.test(ua)){cl += " bx-opera";}else if (/Firefox/.test(ua)){cl += " bx-firefox";}ht.className = htc ? htc + " " + cl : cl;})(window, document, navigator);</script>
<link href="/bitrix/js/bx_site/learning/highlightjs/highlight.css?17140505692317" type="text/css" rel="stylesheet"/>
<link href="/bitrix/js/main/loader/dist/loader.bundle.min.css?16114221762029" type="text/css" rel="stylesheet"/>
<link href="/bitrix/css/bx_site/learning/tab_panel.css?16926251835469" type="text/css" rel="stylesheet"/>
<link href="/bitrix/js/ui/design-tokens/dist/ui.design-tokens.min.css?172728310023463" type="text/css" rel="stylesheet"/>
<link href="/bitrix/js/ui/fonts/opensans/ui.font.opensans.min.css?16655106042320" type="text/css" rel="stylesheet"/>
<link href="/bitrix/js/main/popup/dist/main.popup.bundle.min.css?176053911328056" type="text/css" rel="stylesheet"/>
<link href="/bitrix/css/bx_site/service/detail_word.css?16970185245259" type="text/css" rel="stylesheet"/>
<link href="/bitrix/css/bx_site/learning/icon_new.css?1706274494802" type="text/css" rel="stylesheet"/>
<link href="/local/components/sb/price.table.bitrix/templates/default.prices.table/style.min.css?17611444149563" type="text/css" rel="stylesheet"/>
<link href="/local/components/sb/learning.documentation/templates/.default/style.css?1724839477522" type="text/css" rel="stylesheet"/>
<link href="/local/components/sb/learning.documentation/templates/.default/print.css?167594477531" type="text/css" rel="stylesheet"/>
<link href="/local/components/sb/newdoc.show.bar/templates/.default/style.css?17593136161203" type="text/css" rel="stylesheet"/>
<link href="/bitrix/components/bx/doc.social.buttons/templates/learn_square/style.css?16505498431325" type="text/css" rel="stylesheet"/>
<link href="/bitrix/templates/b24sites_unify/assets/vendor/icon-awesome/css/font-awesome.min.css?152638200030903" type="text/css" rel="stylesheet" data-template-style="true"/>
<link href="/bitrix/templates/.default/css/fontawesome-list-styles.css?16294582991884" type="text/css" rel="stylesheet" data-template-style="true"/>
<link href="/bitrix/templates/help_2017/styles.css?1685610491100" type="text/css" rel="stylesheet" data-template-style="true"/>
<link href="/bitrix/templates/help_2017/template_styles.css?171405746924323" type="text/css" rel="stylesheet" data-template-style="true"/>
</head>
<body>
<script data-skip-moving="true" type="text/html" data-bx-gdpr-counter-loader="head">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-NSRCCHQ');;(function(){var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18655900-1']);
_gaq.push(['_setDomainName', '.1c-bitrix.ru']);
_gaq.push(['_setAllowLinker', true]);
// Поиск картинок
_gaq.push(['_addOrganic', 'images.yandex.ru', 'text', true]);
// Поиск по блогам
_gaq.push(['_addOrganic', 'blogsearch.google.ru', 'q', true]);
_gaq.push(['_addOrganic', 'blogs.yandex.ru', 'text', true]);
// Товарные площадки России
_gaq.push(['_addOrganic', 'market.yandex.ru', 'text', true]);
_gaq.push(['_addOrganic', 'price.ru', 'pnam']);
// Поисковики России
_gaq.push(['_addOrganic', 'go.mail.ru', 'q']);
_gaq.push(['_addOrganic', 'nova.rambler.ru', 'query']);
_gaq.push(['_addOrganic', 'nigma.ru', 's']);
_gaq.push(['_addOrganic', 'webalta.ru', 'q']);
_gaq.push(['_addOrganic', 'aport.ru', 'r']);
_gaq.push(['_addOrganic', 'poisk.ru', 'text']);
_gaq.push(['_addOrganic', 'km.ru', 'sq']);
_gaq.push(['_addOrganic', 'liveinternet.ru', 'ask']);
_gaq.push(['_addOrganic', 'quintura.ru', 'request']);
_gaq.push(['_addOrganic', 'search.qip.ru', 'query']);
_gaq.push(['_addOrganic', 'gde.ru', 'keywords']);
_gaq.push(['_addOrganic', 'gogo.ru', 'q']);
_gaq.push(['_addOrganic', 'ru.yahoo.com', 'p']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setCustomVar',1,'Cache',window.frameRequestStart?'Composite':'NoComposite',3]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();})();
</script>
<script data-skip-moving="true" type="text/html" data-bx-gdpr-counter-loader="body"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NSRCCHQ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript></script>
<script data-skip-moving="true">!function(){function e(n){t(),n.currentTarget.removeEventListener(n.type,e)}function t(){if(window.isGtmInitialized)return!1;window.isGtmInitialized=!0,function(e,t,n,o,i,r,b){let c=e.location.search.match(new RegExp("[?&]"+encodeURIComponent("enable_counters_initialization")+"=([^&]*)"))||[];if("Y"!==decodeURIComponent(c[1])&&t.cookie.match(new RegExp("(?:^|; )"+"DEV_OFFICE_USER".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))return;let d=t.cookie.match(new RegExp("(?:^|; )"+"BITRIX_SM_USER_GDPR_SETTINGS".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));d=d?decodeURIComponent(d[1]):b;let a=!0;if((d=JSON.parse(d)||{})[r]&&"N"===d[r].enabled&&(a=!1),a){let e,i,r=t.getElementsByTagName(n)[0],d=r.parentNode,a=t.querySelectorAll("["+o+"]");for(let c in a)if(a.hasOwnProperty(c)){let l=a[c],s=l.getAttribute(o),u=l.innerHTML;if(u)switch(s){case"head":(e=t.createElement(n)).async=!0,e.innerHTML=u,d.insertBefore(e,r);break;case"body":(e=t.createElement("DIV")).innerHTML=u,i=e.childNodes;for(let e=0;e<i.length;e++)t.body.insertBefore(i[e],t.body.nextSibling)}l.parentNode.removeChild(l)}}}(window,document,"script","data-bx-gdpr-counter-loader",0,"analytical","{\"necessary\":{\"isMain\":\"Y\",\"type\":\"necessary\",\"enabled\":\"Y\",\"changingAllowed\":\"Y\"},\"analytical\":{\"type\":\"analytical\",\"enabled\":\"Y\",\"changingAllowed\":\"Y\"}}")}t()}();</script><div class="title main-font">
<div class="title-left-block">
<div class="change-menu-container" onclick="ChangeMenuStatus();" style="display: none">
<div id="changeMenu"></div>
</div>
<div class="title-text" id="titleText">Документация для разработчиков</div>
<div class="docs-selector-container js-docs-selector-cnt" >
<div class="docs-selector js-docs-selector"></div>
<div class="docs-list-container js-docs-list">
<a href="https://dev.1c-bitrix.ru/api_help/">Документация для разработчиков</a>
<a href="https://dev.1c-bitrix.ru/api_d7/">Документация по D7</a>
<a href="https://dev.1c-bitrix.ru/rest_help/">Документация по REST</a>
<a href="https://dev.1c-bitrix.ru/user_help/">Пользовательская документация</a>
</div>
</div>
</div>
<div class="version-for-print">
<div style="padding-top: 4px;">
</div>
<div class="dark-theme-button-cnr">
<div class="dark-theme-button-title" id="dark-title">Темная тема</div>
<label class="dark-theme-button-switch">
<input type="checkbox" id="dark-themer" >
<span class="slider round"></span>
</label>
</div>
<a class="printer-img-link" target="_blank" href="/api_help/catalog/classes/cprice/cprice__setbaseprice.a8de1fcf.php?print=Y"><div class="printer-img" title="Версия для печати"></div></a>
<a class="home-img-link" target="_blank" href="https://www.1c-bitrix.ru"><div class="home-img" title="Домой"></div></a>
</div>
</div>
<div id="mainArea" class="main-area ">
<div id="mainNode">
<div class="contentDiv main-font" id="contentDiv" style="margin-left: 0;width: 100%;">
<div class="content-text">
<div id="pagetop">
<div id="pagetitlebanner">
<div class="Banner"><div class="nav-chain-item"><a class="nav-chain-item" href="/api_help/catalog/index.php">Торговый каталог</a></div><div class="nav-chain-container"><div class="nav-chain-arrow"></div></div><div class="nav-chain-item"><a class="nav-chain-item" href="/api_help/catalog/classes/index.php">Классы</a></div><div class="nav-chain-container"><div class="nav-chain-arrow"></div></div><div class="nav-chain-item"><a class="nav-chain-item" href="/api_help/catalog/classes/cprice/index.php">CPrice</a></div><div class="nav-chain-container"><div class="nav-chain-arrow"></div></div><div class="nav-chain-item">SetBasePrice (доступен с 3.3.5)</div></div> </div>
</div>
<h1 class="document-name">SetBasePrice</h1>
<div class="detail-text" id="js-lesson-content-cnt">
<p class="note">Метод устарел с версии 17.6.0.<br>Используйте методы <code>\Bitrix\Catalog\Model\Price::add</code> и <code>\Bitrix\Catalog\Model\Price::update</code></p>
<pre class=syntax>bool
CPrice::SetBasePrice(
int ProductID,
float Price,
string Currency[,
int|boolean quantityFrom = false[,
int|boolean quantityTo = false[,
boolean bGetID = false]]]
);</pre>
<p>Метод устанавливает базовую цену товара с кодом <i>ProductID</i>. Базовая цена - это цена базового типа цен. Нестатический метод. Перед использованием убедитесь, что сохранены характеристики товара - класс <a class="link" href="/api_help/catalog/classes/ccatalogproduct/index.php">CCatalogProduct</a>.</p>
<p><div class="note"><b>Важно! Рекомендуется использовать метод <a class="link" href="/api_help/catalog/classes/cprice/add.php">CPrice::Add</a> взамен данного.</b></div></p>
<h4>Параметры вызова</h4>
<table class="tnormal" width="100%">
<tr>
<th width="15%">Параметр</th><th>Описание</th><th width="12%">С версии</th>
</tr>
<tr>
<td>ProductID</td>
<td>Код товара или торгового предложения (ID элемента инфоблока).
<br/><br/>
До версии 4.0.4 параметр назывался PRODUCT_ID.</td><td></td>
</tr>
<tr>
<td>Price</td>
<td>Новая базовая цена.
<br/><br/>
До версии 4.0.4 параметр назывался PRICE.</td><td></td>
</tr>
<tr>
<td>Currency</td>
<td>Валюта новой базовой цены.
<br/><br/>
До версии 4.0.4 параметр назывался CURRENCY.</td><td></td>
</tr>
<tr>
<td>quantityFrom</td>
<td>Количество товара, начиная с приобретения которого действует эта цена.
<br/><br/>
Значение по умолчанию, начиная с версии <b>14.5.0</b>, равно <b>false</b>.
<br/><br/>
До версии <b>14.5.0</b> значение по умолчанию было равно <b>0</b>, но его использование приводило к ошибке. Поэтому при использовании функции на установках, где версия модуля ниже <b>14.5.0</b>, необходимо явно указывать значение <b>false</b>.
<br/><br/>
Цифровое значение (любое) можно ставить только в том случае, если базовая цена создается в расширенном режиме цен (зависимости цены от количества).</td><td>4.0.4</td>
</tr>
<tr>
<td>quantityTo</td>
<td>Количество товара, при приобретении которого заканчивает действие эта цена.
<br/><br/>
Значение по умолчанию, начиная с версии <b>14.5.0</b>, равно <b>false</b>.
<br/><br/>
До версии <b>14.5.0</b> значение по умолчанию было равно <b>0</b>, но его использование приводило к ошибке. Поэтому при использовании функции на установках, где версия модуля ниже <b>14.5.0</b>, необходимо явно указывать значение <b>false</b>.<br/><br/>
Цифровое значение (любое) можно ставить только в том случае, если базовая цена создается в расширенном режиме цен (зависимости цены от количества).</td><td>4.0.4</td>
</tr>
<tr>
<td>bGetID</td>
<td>Если задано значение <i>false</i>, то будет возвращено <i>true</i> после установки цены. Иначе задается код записи в таблице.</td><td>10.0.4</td>
</tr>
</table>
<h4>Возвращаемые значения</h4>
<p>Возвращает значение <i>true</i> в случае успешного сохранения цены и <i>false</i> - в противном случае. </p>
<br/><br/> </div>
<div class="social-media-channels">
<div class="social-media-channels-title">
Новинки документации в соцсетях:
</div>
<div class="social-media-channels-list">
<div class="social-media-channels-item">
<a href="https://vk.com/1c_bitrix_doc" target="blank" title="VKontakte" class="social-media-channels-item-link vk"></a>
</div>
<div class="social-media-channels-item">
<a href="https://www.youtube.com/channel/UCtugDnALPdpOISTVfA8Hmjw" target="blank" title="YouTube" class="social-media-channels-item-link yt"></a>
</div>
<div class="social-media-channels-item">
<a href="https://rutube.ru/channel/23487950/" target="blank" title="RUTUBE" class="social-media-channels-item-link rt"></a>
</div>
<div class="social-media-channels-item">
<a href="https://t.me/bitrixdoc" target="blank" title="Telegram" class="social-media-channels-item-link tg"></a>
</div>
</div>
</div>
</div>
<div class="watermark">
&copy; &laquo;Битрикс&raquo;, 2001-2026, &laquo;1С-Битрикс&raquo;, 2026 </div>
</div>
</div>
</div>
<script>if(!window.BX)window.BX={};if(!window.BX.message)window.BX.message=function(mess){if(typeof mess==='object'){for(let i in mess) {BX.message[i]=mess[i];} return true;}};</script>
<script>(window.BX||top.BX).message({"JS_CORE_LOADING":"Загрузка...","JS_CORE_NO_DATA":"- Нет данных -","JS_CORE_WINDOW_CLOSE":"Закрыть","JS_CORE_WINDOW_EXPAND":"Развернуть","JS_CORE_WINDOW_NARROW":"Свернуть в окно","JS_CORE_WINDOW_SAVE":"Сохранить","JS_CORE_WINDOW_CANCEL":"Отменить","JS_CORE_WINDOW_CONTINUE":"Продолжить","JS_CORE_H":"ч","JS_CORE_M":"м","JS_CORE_S":"с","JSADM_AI_HIDE_EXTRA":"Скрыть лишние","JSADM_AI_ALL_NOTIF":"Показать все","JSADM_AUTH_REQ":"Требуется авторизация!","JS_CORE_WINDOW_AUTH":"Войти","JS_CORE_IMAGE_FULL":"Полный размер"});</script><script src="/bitrix/js/main/core/core.min.js?1776180912245644"></script><script>BX.Runtime.registerExtension({"name":"main.core","namespace":"BX","loaded":true});</script>
<script>BX.setJSList(["\/bitrix\/js\/main\/core\/core_ajax.js","\/bitrix\/js\/main\/core\/core_promise.js","\/bitrix\/js\/main\/polyfill\/promise\/js\/promise.js","\/bitrix\/js\/main\/loadext\/loadext.js","\/bitrix\/js\/main\/loadext\/extension.js","\/bitrix\/js\/main\/polyfill\/promise\/js\/promise.js","\/bitrix\/js\/main\/polyfill\/find\/js\/find.js","\/bitrix\/js\/main\/polyfill\/includes\/js\/includes.js","\/bitrix\/js\/main\/polyfill\/matches\/js\/matches.js","\/bitrix\/js\/ui\/polyfill\/closest\/js\/closest.js","\/bitrix\/js\/main\/polyfill\/fill\/main.polyfill.fill.js","\/bitrix\/js\/main\/polyfill\/find\/js\/find.js","\/bitrix\/js\/main\/polyfill\/matches\/js\/matches.js","\/bitrix\/js\/main\/polyfill\/core\/dist\/polyfill.bundle.js","\/bitrix\/js\/main\/core\/core.js","\/bitrix\/js\/main\/polyfill\/intersectionobserver\/js\/intersectionobserver.js","\/bitrix\/js\/main\/lazyload\/dist\/lazyload.bundle.js","\/bitrix\/js\/main\/polyfill\/core\/dist\/polyfill.bundle.js","\/bitrix\/js\/main\/parambag\/dist\/parambag.bundle.js"]);
</script>
<script>BX.Runtime.registerExtension({"name":"ui.dexie","namespace":"BX.DexieExport","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"fc","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"pull.protobuf","namespace":"BX","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"rest.client","namespace":"window","loaded":true});</script>
<script>(window.BX||top.BX).message({"pull_server_enabled":"Y","pull_config_timestamp":1760539188,"shared_worker_allowed":"Y","pull_guest_mode":"N","pull_guest_user_id":0,"pull_worker_mtime":1760539184});(window.BX||top.BX).message({"PULL_OLD_REVISION":"Для продолжения корректной работы с сайтом необходимо перезагрузить страницу."});</script>
<script>BX.Runtime.registerExtension({"name":"pull.client","namespace":"BX","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"pull","namespace":"window","loaded":true});</script>
<script>(window.BX||top.BX).message({"HLJS_COPY_BTN_LANG":"ru"});</script>
<script>BX.Runtime.registerExtension({"name":"bx_site.learning.highlightjs","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"jquery3","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"main.loader","namespace":"BX","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"loader","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"bx_site.learning.documentation","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"ui.design-tokens","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"ui.fonts.opensans","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"main.popup","namespace":"BX.Main","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"popup","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"bx_word_detail_info","namespace":"window","loaded":true});</script>
<script>BX.Runtime.registerExtension({"name":"bx_icon_new","namespace":"window","loaded":true});</script>
<script>(window.BX||top.BX).message({"LANGUAGE_ID":"ru","FORMAT_DATE":"DD.MM.YYYY","FORMAT_DATETIME":"DD.MM.YYYY HH:MI:SS","COOKIE_PREFIX":"BITRIX_SM","SERVER_TZ_OFFSET":"10800","UTF_MODE":"Y","SITE_ID":"dv","SITE_DIR":"\/","USER_ID":"","SERVER_TIME":1793022366,"USER_TZ_OFFSET":0,"USER_TZ_AUTO":"Y","bitrix_sessid":"e5eac60e6e34fbaadbd02df1b4a327e8"});</script><script src="/bitrix/js/ui/dexie/dist/dexie.bundle.min.js?1760539213102530"></script>
<script src="/bitrix/js/main/core/core_frame_cache.min.js?177618091210246"></script>
<script src="/bitrix/js/pull/protobuf/protobuf.js?1703578952274055"></script>
<script src="/bitrix/js/pull/protobuf/model.min.js?170357895214190"></script>
<script src="/bitrix/js/rest/client/rest.client.min.js?16121731009240"></script>
<script src="/bitrix/js/pull/client/pull.client.min.js?176053918649849"></script>
<script src="/bitrix/js/bx_site/learning/highlightjs/highlight.min.js?1714050569121592"></script>
<script src="/bitrix/js/main/jquery/jquery-3.7.1.min.js?174309395787532"></script>
<script src="/bitrix/js/main/loader/dist/loader.bundle.min.js?17272833124392"></script>
<script src="/bitrix/js/bx_site/learning/documentation/main.js?16763786526183"></script>
<script src="/bitrix/js/bx_site/learning/tab_panel.js?16926243396702"></script>
<script src="/bitrix/js/main/popup/dist/main.popup.bundle.min.js?177618091267330"></script>
<script src="/bitrix/js/bx_site/service/detail_word_init.js?1686756216627"></script>
<script src="/bitrix/js/bx_site/word_detail_info.js?16970185245586"></script>
<script src="/bitrix/js/bx_site/learning/icon_new.js?1706274494664"></script>
<script src="/bitrix/templates/help_2017/js/button-up.js?1675944775571"></script>
<script src="/bitrix/templates/help_2017/script.js?16877778812074"></script>
<script src="/local/components/sb/price.table.bitrix/templates/default.prices.table/script.js?16935582274895"></script>
<script src="/local/components/sb/newdoc.show.bar/templates/.default/script.js?17700242031543"></script>
<script>
BX.ready(function() {
BX.BX_Site.Learning.Documentation.init({"componentName":"sb:learning.documentation","componentParameters":"YTo0OntzOjY6IkZPTERFUiI7czo5OiIvYXBpX2hlbHAiO3M6MTE6IkZPTERFUl9OQU1FIjtzOjg6ImFwaV9oZWxwIjtzOjc6IlNJVEVfSUQiO3M6MjoiZHYiO3M6MTM6IlRFTVBMQVRFX05BTUUiO3M6ODoiLmRlZmF1bHQiO30=.d1e721d35e9aca21dee7cb9a2ee274b896e4e53ac1e5444d1bd296d3388852a6"});
});
</script>
<script>
let titleBlock = document.getElementById('titleText');
if (BX.type.isElementNode(titleBlock))
{
titleBlock.innerHTML = 'Документация для разработчиков';
}
</script>
<script>showNewDocBar("Доступна новая документация по Bitrix Framework. Понятнее описания, больше примеров, удобнее поиск.","https://docs.1c-bitrix.ru/","Перейти");</script>
<script>
setTimeout(function () {
var hash = location.hash;
if(hash.toString().length > 0)
location.href = hash;
}, 1);
</script>
<script>
// dark theme switcher button
BX.ready(function() {
let elements = document.querySelectorAll('pre');
const escapeBR = function(unsafe) {
return unsafe.replace(/<br\s*\\?>/g, '\r\n').replace(/[\r\n]{2,}/g,'\r\n');
};
// imitation game
[].forEach.call(elements, function(pre) {
// escaping BR
pre.innerHTML = escapeBR(pre.innerHTML);
// Escape pre content and put into <pre><code>
pre.innerHTML = '<code>' + pre.innerHTML + '</code>';
});
let themeChanger = BX('dark-themer');
let mainNode = BX('mainArea');
let switcherTitle = BX('dark-title');
if (BX.type.isElementNode(themeChanger) && BX.type.isElementNode(mainNode))
{
BX.bind(themeChanger, 'change', function() {
BX.toggleClass(mainNode, 'dark-theme');
let cookieDaysExpire = 30;
let cookieName = 'DARK_THEME_ENABLED=Y';
let date = new Date(new Date().getTime() + cookieDaysExpire * 24 * 60 * 60 * 1000);
if (mainNode.classList.contains('dark-theme'))
{
document.cookie = cookieName + "; path=/; expires=" + date.toUTCString();
switcherTitle.innerText = 'Светлая тема';
document.body.dataset.colorScheme = 'dark';
}
else
{
document.cookie = cookieName + "; path=/; max-age=0";
switcherTitle.innerText = 'Темная тема';
delete document.body.dataset.colorScheme;
}
})
}
if ("undefined" != typeof hljs)
{
hljs.highlightAll();
}
});
</script>
</body>
</html>
@@ -0,0 +1 @@
Not Found
@@ -0,0 +1,526 @@
<!DOCTYPE html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="/static/css/common.css"/>
<link rel="shortcut icon" href="/static/img/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/static/css/menu.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0"/>
<title>Compile Time Function Evaluation (CTFE) - Dlang Tour</title>
<link rel="stylesheet" href="/static/css/tour.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/static/lib/hotkeys.min.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/lib/codemirror.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/addon/lint/lint.css"/>
<link rel="stylesheet" href="/static/lib/codemirror/theme/elegant.css"/>
<link rel="stylesheet" href="/static/lib/grid12.min.css"/>
<link rel="stylesheet" href="/static/css/ansi.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
</head>
<body ng-app="DlangTourApp" class="ng-cloak">
<div id="top">
<div class="helper">
<div class="helper expand-container active">
<div class="logo">
<a href="https://dlang.org">
<img id="logo" alt="DLang Logo" src="/static/img/dlogo.svg"/>
</a>
<a href="../../../" id="title">
<span>DLang Tour</span>
</a>
</div>
<a href="#" title="Menu" class="hamburger expand-toggle">
<span>Menu</span>
</a>
<div id="cssmenu">
<ul>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Welcome</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/welcome/welcome-to-d">
<span>Welcome to D</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/languages">
<span>Read in your language</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/install-d-locally">
<span>Install D locally</span>
</a>
</li>
<li class="">
<a href="/tour/en/welcome/run-d-program-locally">
<span>Run D program locally</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>D's Basics</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/basics/imports-and-modules">
<span>Imports and modules</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/basic-types">
<span>Basic types</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/memory">
<span>Memory</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/type-qualifiers">
<span>Mutability</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/controlling-flow">
<span>Control flow</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/functions">
<span>Functions</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/structs">
<span>Structs</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/arrays">
<span>Arrays</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/slices">
<span>Slices</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/alias-strings">
<span>Alias &amp; Strings</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/loops">
<span>Loops</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/foreach">
<span>Foreach</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/ranges">
<span>Ranges</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/associative-arrays">
<span>Associative Arrays</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/classes">
<span>Classes</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/interfaces">
<span>Interfaces</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/templates">
<span>Templates</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/delegates">
<span>Delegates</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/exceptions">
<span>Exceptions</span>
</a>
</li>
<li class="">
<a href="/tour/en/basics/further-reading">
<span>Further Reading</span>
</a>
</li>
</ul>
</li>
<li class="expand-container active">
<a class="expand-toggle" href="#">
<span>D's Gems</span>
</a>
<ul class="expand-content">
<li class="active">
<a href="/tour/en/gems/uniform-function-call-syntax-ufcs">
<span>Uniform Function Call Syntax (UFCS)</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/scope-guards">
<span>Scope guards</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/range-algorithms">
<span>Range algorithms</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/unittesting">
<span>Unit Testing</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/string-mixins">
<span>String Mixins</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/compile-time-function-evaluation-ctfe">
<span>Compile Time Function Evaluation (CTFE)</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/functional-programming">
<span>Functional programming</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/contract-programming">
<span>Contract programming</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/subtyping">
<span>Subtyping</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/attributes">
<span>Attributes</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/opdispatch-opapply">
<span>opDispatch &amp; opApply</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/documentation">
<span>Documentation</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/traits">
<span>Traits</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/template-meta-programming">
<span>Template meta programming</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/bit-manipulation">
<span>Bit manipulation</span>
</a>
</li>
<li class="active">
<a href="/tour/en/gems/unicode">
<span>Unicode in D</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Multithreading</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/multithreading/thread-local-storage">
<span>Thread local storage</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/message-passing">
<span>Message Passing</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/synchronization-sharing">
<span>Synchronization &amp; Sharing</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/std-parallelism">
<span>std.parallelism</span>
</a>
</li>
<li class="">
<a href="/tour/en/multithreading/fibers">
<span>Fibers</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>Vibe.d</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/vibed/vibe-d-web-framework">
<span>Vibe.d web framework</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/basics-asynchronous-i-o">
<span>Basics &amp; Asynchronous I/O</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/web-server">
<span>Web server</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/diet-templates">
<span>DIET Templates</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/json-rest-interface">
<span>JSON REST Interface</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/database-connectivity">
<span>Database connectivity</span>
</a>
</li>
<li class="">
<a href="/tour/en/vibed/deploy-on-heroku">
<span>Deploy on Heroku</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>D by Examples</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/byexample/code-generation-parser">
<span>Code generation (Parser)</span>
</a>
</li>
</ul>
</li>
<li class="expand-container">
<a class="expand-toggle" href="#">
<span>DUB packages</span>
</a>
<ul class="expand-content">
<li class="">
<a href="/tour/en/dub/mir-algorithm">
<span>Mir Algorithm</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/mir-random">
<span>Mir Random</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/mir">
<span>Mir</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/emsi_containers">
<span>EMSI Containers</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/vibe-d">
<span>Vibe-d</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/libdparse">
<span>libdparse</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/pegged">
<span>Pegged</span>
</a>
</li>
<li class="">
<a href="/tour/en/dub/lubeck">
<span>Lubeck</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
<div id="github_avatar">
<a href="https://github.com/dlang-tour/core">
<i class="fa fa-github" aria-hidden="true"></i>
</a>
<a ng-href="https://github.com/dlang-tour/core/issues/new">
<i class="fa fa-question-circle" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
<div class="row" ng-controller="DlangTourAppCtrl as ctrl" ng-init="initTour(&#39;en&#39;, &#39;dlang-tour/english&#39;, &#39;gems&#39;, &#39;compile-time-function-evaluation-ctfe&#39;, true, &#39;/tour/en/gems/string-mixins&#39;, &#39;/tour/en/gems/functional-programming&#39;)">
<div id="tour-content" ng-show="showContent" ng-class="{&#39;col-md-12&#39;: !showSourceCode, &#39;col-md-7 col-sm-12&#39;: showSourceCode}">
<div ng-hide="showProgramOutput">
<div class="content-command-box">
<button class="btn btn-default" ng-click="editOnGithub()">
<div class="fa fa-edit"></div>
</button>
<span class="hidden-xs hidden-sm">
<button class="btn btn-default btn-sm" ng-click="showSourceCode = true" ng-hide="showSourceCode">
<div class="fa fa-eye"></div>
</button>
</span>
</div>
<h1 id="compile-time-function-evaluation-ctfe"> Compile Time Function Evaluation (CTFE)</h1>
<p>CTFE is a mechanism which allows the compiler to execute
functions at <strong>compile time</strong>. There is no special set of the D
language necessary to use this feature - whenever
a function just depends on compile time known values
the D compiler might decide to interpret
it during compilation.
</p>
<pre class="prettyprint"><code>// result will be calculated at compile
// time. Check the machine code, it won't
// contain a function call!
static val = sqrt(50);
</code></pre>
<p>Keywords like <code class="prettyprint">static</code>, <code class="prettyprint">immutable</code> or <code class="prettyprint">enum</code>
instruct the compiler to use CTFE whenever possible.
The great thing about this technique is that
functions don't need to be rewritten to use
it, and the same code can perfectly be shared:
</p>
<pre class="prettyprint"><code>int n = doSomeRuntimeStuff();
// same function as above but this
// time it is just called the classical
// run-time way.
auto val = sqrt(n);
</code></pre>
<p>One prominent example in D is the <a href="https://dlang.org/phobos/std_regex.html">std.regex</a>
library. It provides the <code class="prettyprint">ctRegex</code> type which uses
<em>string mixins</em> and CTFE to generate a highly optimized
regular expression automaton that is generated during
compilation. The same code base is re-used for
the run-time version <code class="prettyprint">regex</code> that allows regular
expressions only available at run-time to be compiled.
</p>
<pre class="prettyprint"><code>auto ctr = ctRegex!(`^.*/([^/]+)/?$`);
auto tr = regex(`^.*/([^/]+)/?$`);
// ctr and tr can be used interchangely
// but ctr will be faster!
</code></pre>
<p>Not all language features are available
during CTFE but the supported feature set is increased
with every release of the compiler.
</p>
<h3 id="in-depth"> In-depth</h3>
<ul>
<li><a href="https://dlang.org/regular-expression.html">Introduction to regular expressions in D</a>
</li>
<li><a href="https://dlang.org/phobos/std_regex.html">std.regex</a>
</li>
<li><a href="https://dlang.org/spec/version.html">Conditional compilation</a>
</li>
</ul>
</div>
<div ng-show="showProgramOutput">
<div class="content-command-box">
<button class="btn btn-danger btn-sm" ng-click="showProgramOutput = !showProgramOutput">
<span class="fa fa-close"></span>
</button>
</div>
<h2 class="program-output-title">rdmd playground.d</h2><div id="nanobar" ng-show="inProgress"></div><pre id="program-output" ng-bind-html="programOutput"></pre></div>
</div>
<div ng-class="{&#39;col-md-5 col-sm-12&#39;: showContent, &#39;col-md-12&#39;: !showContent}" ng-show="showSourceCode" style="padding-left: 0px; padding-right: 0px">
<div id="command-box" class="text-right">
<button class="btn btn-default" ng-click="showContent = !showContent">
<i class="fa fa-expand" ng-show="showContent" aria-hidden="true"></i><i class="fa fa-compress" ng-hide="showContent" aria-hidden="true"></i>
</button>
<button class="btn btn-default btn-sm hidden-xs hidden-sm" ng-click="showSourceCode = false">
<div class="fa fa-eye-slash"></div>
</button>
<button class="btn btn-primary" ng-click="run()">
<span>Run</span><i class="fa fa-play" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="format()">
<span>Format</span><i class="fa fa-magic" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="reset()">
<span>Reset</span><i class="fa fa-undo" aria-hidden="true"></i>
</button>
<button class="btn btn-default" ng-click="export()">
<span>Export</span><i class="fa fa-share" aria-hidden="true"></i>
</button>
</div>
<ui-codemirror ui-codemirror-opts="editorOptions" ui-codemirror="{ onLoad : codemirrorLoaded }" ng-model="sourceCode"></ui-codemirror>
</div>
</div>
<nav class="navbar navbar-bottom">
<div class="container text-center h1">
<a href="/tour/en/gems/string-mixins" ng-show="&#39;&#39; != &#39;/tour/en/gems/string-mixins&#39;" target="_self">
<
<span class="h4">String Mixins</span>
</a>
6 /
<span class="small">16</span>
<a href="/tour/en/gems/functional-programming" ng-show="&#39;&#39; != &#39;/tour/en/gems/functional-programming&#39;" target="_self">
<span class="h4">Functional programming</span>>
</a>
</div>
<div class="container hidden-xs hidden-sm">
<p class="text-muted text-center">
<kbd>?</kbd>Keyboard Shortcuts
</p>
</div>
</nav>
<script type="application/javascript" src="/static/js/menu.js"></script><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script><script src="/static/js/tour-controller.js"></script><script src="/static/js/swipe.js"></script><script src="/static/lib/codemirror/lib/codemirror.js"></script><script src="/static/lib/codemirror/mode/d/d.js"></script><script src="/static/lib/codemirror/addon/lint/lint.js"></script><script src="/static/lib/codemirror/addon/runmode/runmode.js"></script><script src="/static/lib/ui-codemirror.min.js"></script><script src="/static/lib/hotkeys.min.js"></script><script src="/static/lib/nanobar.min.js"></script><script src="/static/lib/ansi_up.min.js"></script>
</body>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,772 @@
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Compile-time vs. compile-time - D Wiki</title>
<script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Compile-time_vs._compile-time","wgTitle":"Compile-time vs. compile-time","wgCurRevisionId":10062,"wgRevisionId":10062,"wgArticleId":988,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Compile-time_vs._compile-time","wgRelevantArticleId":988,"wgRequestId":"ba7052cc1faaf1472c83a1fa","wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRedirectedFrom":"User:Quickfur/Compile-time_vs._compile-time","wgWikiEditorEnabledModules":[],"wgInternalRedirectTargetUrl":"/Compile-time_vs._compile-time"});mw.loader.state({"site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","site":"ready","user.options":"ready","user.tokens":"loading","ext.pygments":"ready","ext.smw.style":"ready","ext.smw.tooltip.styles":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","mediawiki.sectionAnchor":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready"});mw.loader.implement("user.tokens@1d7z0ue",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});
});mw.loader.load(["mediawiki.action.view.redirect","ext.smw.style","ext.smw.tooltips","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.toc","mediawiki.searchSuggest","skins.vector.js"]);});</script>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=ext.pygments%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&amp;only=styles&amp;skin=vector"/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=ext.smw.style%7Cext.smw.tooltip.styles&amp;only=styles&amp;skin=vector"/>
<script async="" src="/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector"></script>
<meta name="ResourceLoaderDynamicStyles" content=""/>
<link rel="stylesheet" href="/load.php?debug=false&amp;lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"/>
<meta name="generator" content="MediaWiki 1.31.2"/>
<link rel="alternate" type="application/rdf+xml" title="Compile-time vs. compile-time" href="/?title=Special:ExportRDF/Compile-time_vs._compile-time&amp;xmlmime=rdf"/>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="D Wiki (en)"/>
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.dlang.org/api.php?action=rsd"/>
<link rel="license" href="http://www.gnu.org/copyleft/fdl.html"/>
<link rel="canonical" href="https://wiki.dlang.org/Compile-time_vs._compile-time"/>
<!--[if lt IE 9]><script src="/load.php?debug=false&amp;lang=en&amp;modules=html5shiv&amp;only=scripts&amp;skin=vector&amp;sync=1"></script><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Compile-time_vs_compile-time rootpage-Compile-time_vs_compile-time skin-vector action-view"> <div id="mw-page-base" class="noprint"></div>
<div id="mw-head-base" class="noprint"></div>
<div id="content" class="mw-body" role="main">
<a id="top"></a>
<div class="mw-indicators mw-body-content">
</div>
<h1 id="firstHeading" class="firstHeading" lang="en">Compile-time vs. compile-time</h1> <div id="bodyContent" class="mw-body-content">
<div id="siteSub" class="noprint">From D Wiki</div> <div id="contentSub"><span class="mw-redirectedfrom">(Redirected from <a href="/?title=User:Quickfur/Compile-time_vs._compile-time&amp;redirect=no" class="mw-redirect" title="User:Quickfur/Compile-time vs. compile-time">User:Quickfur/Compile-time vs. compile-time</a>)</span></div>
<div id="jump-to-nav" class="mw-jump">
Jump to: <a href="#mw-head">navigation</a>, <a href="#p-search">search</a>
</div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><dl><dd><i>By H. S. Teoh, March 2017</i></dd></dl>
<p>One of D's oft-touted features is its awesome "compile-time" capabilities. However, said capabilities are also often the source of much confusion and misunderstanding, especially on the part of newcomers to D, often taking the form of questions posted to the discussion forum by frustrated users such as the classic: "Why can't the compiler read this value at compile-time, since it's clearly known at compile-time?!"
</p><p>This article hopes to clear up most of these misunderstandings by explaining just what D's "compile-time" capabilities are, how it works, and how to solve some commonly-encountered problems.
</p>
<div id="toc" class="toc"><div class="toctitle" lang="en" dir="ltr"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#There.27s_compile-time.2C_and_then_there.27s_compile-time"><span class="tocnumber">1</span> <span class="toctext">There's compile-time, and then there's compile-time</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Template_expansion_.2F_AST_manipulation"><span class="tocnumber">2</span> <span class="toctext">Template expansion / AST manipulation</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="#Templates"><span class="tocnumber">2.1</span> <span class="toctext">Templates</span></a></li>
<li class="toclevel-2 tocsection-4"><a href="#static_if"><span class="tocnumber">2.2</span> <span class="toctext">static if</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-5"><a href="#CTFE"><span class="tocnumber">3</span> <span class="toctext">CTFE</span></a>
<ul>
<li class="toclevel-2 tocsection-6"><a href="#Constant-folding"><span class="tocnumber">3.1</span> <span class="toctext">Constant-folding</span></a></li>
<li class="toclevel-2 tocsection-7"><a href="#Constant-folding.2C_glorified"><span class="tocnumber">3.2</span> <span class="toctext">Constant-folding, glorified</span></a></li>
<li class="toclevel-2 tocsection-8"><a href="#Forcing_CTFE_evaluation"><span class="tocnumber">3.3</span> <span class="toctext">Forcing CTFE evaluation</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-9"><a href="#A_different_.22compile-time.22"><span class="tocnumber">4</span> <span class="toctext">A different "compile-time"</span></a></li>
<li class="toclevel-1 tocsection-10"><a href="#Case_Study:_Reading_CTFE_variables_at_AST_manipulation_time"><span class="tocnumber">5</span> <span class="toctext">Case Study: Reading CTFE variables at AST manipulation time</span></a>
<ul>
<li class="toclevel-2 tocsection-11"><a href="#Solution_1:_Make_it_available_during_AST_manipulation"><span class="tocnumber">5.1</span> <span class="toctext">Solution 1: Make it available during AST manipulation</span></a></li>
<li class="toclevel-2 tocsection-12"><a href="#Solution_2:_Do_everything_during_AST_manipulation_instead"><span class="tocnumber">5.2</span> <span class="toctext">Solution 2: Do everything during AST manipulation instead</span></a></li>
<li class="toclevel-2 tocsection-13"><a href="#Solution_3:_Move_everything_to_CTFE"><span class="tocnumber">5.3</span> <span class="toctext">Solution 3: Move everything to CTFE</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-14"><a href="#Interleaved_AST_manipulation_and_CTFE"><span class="tocnumber">6</span> <span class="toctext">Interleaved AST manipulation and CTFE</span></a></li>
<li class="toclevel-1 tocsection-15"><a href="#Case_Study:_pragma.28msg.29_and_CTFE"><span class="tocnumber">7</span> <span class="toctext">Case Study: pragma(msg) and CTFE</span></a></li>
<li class="toclevel-1 tocsection-16"><a href="#Case_Study:_static_if_and_ctfe"><span class="tocnumber">8</span> <span class="toctext">Case Study: static if and __ctfe</span></a>
<ul>
<li class="toclevel-2 tocsection-17"><a href="#Solution:_Just_use_if"><span class="tocnumber">8.1</span> <span class="toctext">Solution: Just use if</span></a></li>
<li class="toclevel-2 tocsection-18"><a href="#But_what_of_runtime_performance.3F"><span class="tocnumber">8.2</span> <span class="toctext">But what of runtime performance?</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-19"><a href="#Case_Study:_foreach_over_a_type_list"><span class="tocnumber">9</span> <span class="toctext">Case Study: foreach over a type list</span></a>
<ul>
<li class="toclevel-2 tocsection-20"><a href="#Automatic_unrolling"><span class="tocnumber">9.1</span> <span class="toctext">Automatic unrolling</span></a></li>
<li class="toclevel-2 tocsection-21"><a href="#foreach_over_a_type_list_does_NOT_interpret_break_and_continue"><span class="tocnumber">9.2</span> <span class="toctext">foreach over a type list does NOT interpret break and continue</span></a></li>
<li class="toclevel-2 tocsection-22"><a href="#What_foreach_over_a_type_list_actually_does"><span class="tocnumber">9.3</span> <span class="toctext">What foreach over a type list actually does</span></a></li>
<li class="toclevel-2 tocsection-23"><a href="#Possible_solutions"><span class="tocnumber">9.4</span> <span class="toctext">Possible solutions</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-24"><a href="#Summary"><span class="tocnumber">10</span> <span class="toctext">Summary</span></a></li>
</ul>
</div>
<h2><span id="There's_compile-time,_and_then_there's_compile-time"></span><span class="mw-headline" id="There.27s_compile-time.2C_and_then_there.27s_compile-time">There's compile-time, and then there's compile-time</span></h2>
<p>Part of the confusion is no thanks to the overloaded term "compile-time". It sounds straightforward enough -- "compile-time" is just the time when the compiler performs its black magic of transforming human-written D code into machine-readable executables. So, the reasoning goes, if feature X is a "compile-time" feature, and feature Y is another "compile-time" feature, then surely X and Y ought to be usable in any combination, right? Since, after all, it all happens at "compile-time", and the compiler ought to be able to sort it all out magically.
</p><p>The reality, of course, is a <i>bit</i> more involved than this. There are, roughly speaking, at least <i>two</i> distinct categories of D features that are commonly labelled "compile-time":
</p>
<ul><li>Template expansion, or abstract syntax tree (AST) manipulation; and</li>
<li>Compile-time function evaluation (CTFE).</li></ul>
<p>While these two take place at "compile-time", they represent distinct phases in the process of compilation, and understanding this distinction is the key to understanding how D's "compile-time" features work.
</p><p>In particular, the AST manipulation features apply to an early stage in the process of compilation, whereas CTFE applies to a much later stage. To understand this, it is helpful to know roughly the stages of compilation that a piece of code goes through:
</p>
<ol><li>Lexical analysis and parsing, where the compiler scans the human-written text of the program and turns it into a syntax tree representing the structure of the code;</li>
<li>AST manipulation, where templates are expanded and other AST manipulation features are applied;</li>
<li>Semantic analysis, where meaning is assigned to various AST features, such as associating an identifier with a data type, another identifier with a function, and another identifier with a variable.</li>
<li>Code generation, where the semantically-analyzed code is used to emit the machine code that goes into the executable.</li></ol>
<p>CTFE sits somewhere between semantic analysis and code generation, and basically involves running D code inside an interpreter (called the CTFE engine) embedded inside the compiler.
</p><p>Since CTFE can only take place after semantic analysis has been performed, it no longer has access to AST manipulation features. Similarly, at the AST manipulation stage, no semantics have been attached to various structures in the code yet, and so "compile-time" features that manipulate the AST can't access things inside the CTFE engine.
</p><p>Thus, as far as D's "compile-time" features are concerned, there are really <i>two</i> different "compile-times"; an early phase involving manipulating the program's AST, and a late phase involving CTFE. Confusing these two is the source of most of the problems encountered when using D's "compile-time" features.
</p><p>These two phases interact in more complex ways than it might appear at first, though. In order to understand how this works, we need to look at each of these two categories of "compile-time" features in more detail.
</p>
<h2><span id="Template_expansion_/_AST_manipulation"></span><span class="mw-headline" id="Template_expansion_.2F_AST_manipulation">Template expansion / AST manipulation</span></h2>
<p>One of the first things the compiler does when it compiles your code, is to transform the text of the code into what is commonly known as the Abstract Syntax Tree (AST).
</p><p>For example, this program:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">stdio</span><span class="p">;</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">(</span><span class="nb">string</span><span class="p">[]</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">writeln</span><span class="p">(</span><span class="s">&quot;Hello, world!&quot;</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>is parsed into something resembling this:
</p><p><a href="/File:AST.svg" class="image"><img alt="AST.svg" src="/images/thumb/b/bb/AST.svg/923px-AST.svg.png" width="923" height="685" srcset="/images/thumb/b/bb/AST.svg/1385px-AST.svg.png 1.5x, /images/thumb/b/bb/AST.svg/1846px-AST.svg.png 2x" /></a>
</p><p>(Note: this is not the actual AST created by the compiler; it is only an example to illustrate the point. The AST created by the compiler may differ slightly in structure and/or details.)
</p><p>The AST represents the structure of the program as seen by the compiler, and contains everything the compiler needs to eventually transform the program into executable machine code.
</p><p>One key point to note here is that in this AST, there are no such things as variables, memory, or input and output. At this stage of compilation, the compiler has only gone as far as building a model of the program structure. In this structure, we have identifiers like <code>args</code> and <code>writeln</code>, but the compiler has not yet attached semantic meanings to them yet. That will be done in a later stage of compilation.
</p><p>Part of D's powerful "compile-time" capabilities stem from the ability to manipulate this AST to some extent as the program is being compiled. Among the features that D offers are templates and <code>static if</code>.
</p>
<h3><span class="mw-headline" id="Templates">Templates</span></h3>
<dl><dd><i>If you are already familiar with the basics of templates, you may want to skip to the following section.</i></dd></dl>
<p>One of D's powerful features is templates, which are similar to C++ templates. Templates can be thought of as <i>code stencils</i>, or AST patterns that can be used to generate AST subtrees. For example, consider the following template struct:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">Box</span><span class="p">(</span><span class="n">T</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">T</span> <span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>In D, this is a shorthand for a so-called <i>eponymous template</i> that, written out in full, is:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">template</span> <span class="n">Box</span><span class="p">(</span><span class="n">T</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">struct</span> <span class="n">Box</span>
<span class="p">{</span>
<span class="n">T</span> <span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>Its corresponding AST tree looks something like this:
</p><p><a href="/File:Template1.svg" class="image"><img alt="Template1.svg" src="/images/thumb/d/dd/Template1.svg/608px-Template1.svg.png" width="608" height="505" srcset="/images/thumb/d/dd/Template1.svg/912px-Template1.svg.png 1.5x, /images/thumb/d/dd/Template1.svg/1216px-Template1.svg.png 2x" /></a>
</p><p>When you instantiate the template with a declaration like:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">Box</span><span class="p">!</span><span class="kt">int</span> <span class="n">intBox</span><span class="p">;</span>
</pre></div>
<p>for example, the type <code>Box!int</code> may not yet be defined. However, the compiler automatically makes a copy of the AST subtree under the <code>TemplateBody</code> node and substitute <code>int</code> for every occurrence of <code>T</code> in it. This generated AST subtree is then included among the program's declarations:
</p><p><a href="/File:Template-example1.svg" class="image"><img alt="Template-example1.svg" src="/images/thumb/0/01/Template-example1.svg/373px-Template-example1.svg.png" width="373" height="325" srcset="/images/thumb/0/01/Template-example1.svg/560px-Template-example1.svg.png 1.5x, /images/thumb/0/01/Template-example1.svg/746px-Template-example1.svg.png 2x" /></a>
</p><p>Which corresponds to this code fragment:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">Box</span><span class="p">!</span><span class="kt">int</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>(Note that you cannot actually write this in your source code; the name <code>Box!int</code> is reserved for the template expansion process and cannot be directly defined by user code.)
</p><p>Similarly, if you instantiate the same template with a different declaration, such as:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">Box</span><span class="p">!</span><span class="kt">float</span> <span class="n">floatBox</span><span class="p">;</span>
</pre></div>
<p>it is as if you had declared something like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">Box</span><span class="p">!</span><span class="kt">float</span>
<span class="p">{</span>
<span class="kt">float</span> <span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
<span class="n">Box</span><span class="p">!</span><span class="kt">float</span> <span class="n">floatBox</span><span class="p">;</span>
</pre></div>
<p>In effect, you are creating new AST subtrees every time you instantiate a template, which get grafted into your program's AST.
</p><p>One common use for this feature is to avoid boilerplate code: you can factor out commonly-repeated bits of code into a template, and the compiler would automatically insert them each time you instantiate the template. This saves you a lot of repetitive typing, and thereby allows you to adhere to the DRY (Don't Repeat Yourself) principle.
</p><p>D templates, of course, go much, much farther than this, but a full exposition of templates is beyond the scope of this article.
</p><p>The important point here is that template expansion happens in the AST manipulation phase of compilation, and therefore template arguments must be known <i>at the time the code in question is in its AST manipulation phase</i>. In common D parlance, we tend to say that template arguments must be known "at compile-time", but this is often not precise enough. It is more precise to say that template arguments must be known during the AST manipulation phase of compilation. As we shall see later, being more precise will help us understand and avoid many of the common problems that D learners encounter when they try to use D's "compile-time" features.
</p>
<h3><span class="mw-headline" id="static_if">static if</span></h3>
<p>Another powerful feature in the AST manipulation phase of D compilation is <code>static if</code>. This construct allows you to choose a subtree of the AST to be compiled, or, conversely, which a subtree to be pruned. For example:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">S</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">b</span><span class="p">)</span>
<span class="kt">int</span> <span class="n">x</span><span class="p">;</span>
<span class="k">else</span>
<span class="kt">float</span> <span class="n">y</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>The <code>static if</code> here means that the boolean parameter <code>b</code> is evaluated when the compiler is expanding the template <code>S</code>. The value of must be known <i>at the time the template is being expanded</i>. In D circles, we often say that the value must be known "at compile-time", but it is important to more precise. We will elaborate on this more later.
</p><p>If the value of <code>b</code> is <code>true</code>, then the <code>else</code> branch of the <code>static if</code> is pruned away from the expanded template. That is, when you write:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">S</span><span class="p">!</span><span class="kc">true</span> <span class="n">s</span><span class="p">;</span>
</pre></div>
<p>it is as if you declared:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">S</span><span class="p">!</span><span class="kc">true</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">x</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p><i>(You can't actually write this in your source code, of course, since the name <code>S!true</code> is reserved for the template expansion process and cannot be directly defined by user code. But this is just to illustrate the point.)</i>
</p><p>Note that the <code>else</code> branch is <i>completely absent</i> from the expanded template. This is a very important point.
</p><p>Similarly, when you write:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">S</span><span class="p">!</span><span class="kc">false</span> <span class="n">t</span><span class="p">;</span>
</pre></div>
<p>it is as if you had declared:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">struct</span> <span class="n">S</span><span class="p">!</span><span class="kc">false</span>
<span class="p">{</span>
<span class="kt">float</span> <span class="n">y</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Note that the <code>if</code> branch is <i>completely absent</i> from the expanded template. This is also a very important point.
</p><p>In other words, <code>static if</code> is a choice that affects the effective AST seen by later compilation phases.
</p><p>To drive this point home further: at this stage, when <code>static if</code> is evaluated, notions like variables, memory, and I/O don't exist yet. We are manipulating the <i>structure</i> of the program; <i>not</i> its execution. In the above code, <code>x</code> and <code>y</code> are merely identifiers; they have not yet been assigned any semantic meanings like variables or data fields that reside in a concrete offset in the <code>struct</code>. This is done in subsequent stages of compilation.
</p><p>Why is this point so important? Because it relates to a common misunderstanding of D's "compile-time" capabilities as it relates to CTFE, or Compile-Time Function Evaluation. Let's talk about that next.
</p>
<h2><span class="mw-headline" id="CTFE">CTFE</span></h2>
<p>CTFE stands for Compile-Time Function Evaluation. This is an extremely powerful feature that D offers, and is similar to C++'s <code>constexpr</code> feature (though in the author's opinion far more powerful).
</p><p>The first and most important thing to understand about CTFE is that it happens <i>after the AST manipulation phase has been completed</i>. More precisely, it happens when the compiler has "finalized" the AST of that part of the program, and is performing semantic analysis on it. Identifiers are assigned meanings as modules, functions, function arguments, variables, and so on, control-flow constructs like <code>if</code> and <code>foreach</code> are given their meanings, and other semantic analyses such as VRP (Value Range Propagation) are performed.
</p>
<h3><span class="mw-headline" id="Constant-folding">Constant-folding</span></h3>
<p>Part of this semantic analysis is <i>constant-folding</i>. For example, if we wrote something like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">i</span> <span class="p">=</span> <span class="mi">3</span><span class="p">*(</span><span class="mi">5</span> <span class="p">+</span> <span class="mi">7</span><span class="p">);</span>
</pre></div>
<p>it would be a waste of computational resources to perform the indicated calculation (add 5 to 7, multiply the result by 3) at runtime, because all the arguments of the calculation are constants known to the compiler, and the result will never change at runtime. Of course, this particular example is trivial, but imagine if this line of code were inside a busy inner loop in a performance-critical part of the program. If we <i>folded</i> this constant expression into its resulting value, the program would run faster, since it wouldn't have to repeat this same calculation over and over, and indeed, it wouldn't even need to perform the calculation at all, since the answer is already known by the compiler. The answer could be directly assigned to <code>i</code>:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">i</span> <span class="p">=</span> <span class="mi">36</span><span class="p">;</span>
</pre></div>
<p>This process is called <i>constant-folding</i>, and is implemented by basically all modern compilers of any language today. So it is nothing new. The D compiler, however, takes this game to a whole new level.
</p>
<h3><span id="Constant-folding,_glorified"></span><span class="mw-headline" id="Constant-folding.2C_glorified">Constant-folding, glorified</span></h3>
<p>Consider, for example, this code:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">f</span><span class="p">(</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="n">x</span> <span class="p">+</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
<span class="kt">int</span> <span class="n">i</span> <span class="p">=</span> <span class="mi">3</span><span class="p">*(</span><span class="mi">5</span> <span class="p">+</span> <span class="n">f</span><span class="p">(</span><span class="mi">6</span><span class="p">));</span>
</pre></div>
<p>Again, if we perform the calculation manually, we see that the value of the expression is 36. However, this time, the constants involved in the expression are masked by the function call to <code>f</code>. But since the definition of <code>f</code> is visible to the compiler, and all it does is to add a constant value 1 to its argument, the compiler should be able to deduce that, again, the expression is constant and does not need to be performed at runtime.
</p><p>But what if <code>f</code> was more complicated than merely adding a constant to its argument, for example:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">f</span><span class="p">(</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">a</span> <span class="p">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="k">for</span> <span class="p">(</span><span class="kt">int</span> <span class="n">i</span><span class="p">=</span><span class="mi">1</span><span class="p">;</span> <span class="n">i</span> <span class="p">&lt;=</span> <span class="n">x</span><span class="p">/</span><span class="mi">2</span><span class="p">;</span> <span class="n">i</span><span class="p">++)</span>
<span class="p">{</span>
<span class="n">a</span> <span class="p">+=</span> <span class="n">i</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">return</span> <span class="n">a</span> <span class="p">+</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
<span class="kt">int</span> <span class="n">i</span> <span class="p">=</span> <span class="mi">3</span><span class="p">*(</span><span class="mi">5</span> <span class="p">+</span> <span class="n">f</span><span class="p">(</span><span class="mi">6</span><span class="p">));</span>
</pre></div>
<p>Again, the value of <code>f(6)</code> is constant, but in order to know its value, the compiler has to effectively <i>run this function during compilation</i>. And in order to do that, the compiler essentially has to compile the body of <code>f</code> into a state where it can be run inside a D interpreter embedded inside the compiler.
</p><p>This, in a nutshell, is how CTFE came about in the history of D. There is a limit as to how much this D virtual machine can do, but there's an ongoing trend of expanding its capabilities as far as possible. As of this writing, the D compiler is able to execute significant chunks of the Phobos standard library during compilation, thus making many library features accessible during compilation without needing to implement them the second time inside the compiler. Furthermore, a focused effort is being spearheaded by Stefan Koch to replace the current CTFE engine with an even more powerful one based on a bytecode interpreter, that promises superior CTFE performance and better memory management, and eventually, more features.
</p>
<h3><span class="mw-headline" id="Forcing_CTFE_evaluation">Forcing CTFE evaluation</span></h3>
<p>Of course, the compiler usually does not always go this far in attempting to constant-fold an expression. Past a certain level of complexity, it makes more sense for the compiler to simply leave it up to the generated runtime code to compute the value of the expression. After all, it may be that the entire purpose of the program is to compute the constant answer to a complex mathematical problem. It wouldn't make sense to perform such a computation in the slower CTFE engine instead of letting the generated executable run the computation at native execution speed.
</p><p>Being <i>able</i> to perform such a computation at compile-time when needed, however, can be very useful. For example, you could precompute values for a lookup table that gets stored into the executable, so that there is no runtime cost associated with initializing the table when the program starts up. As such, it is sometimes desirable to <i>force</i> the compiler to evaluate an expression at compile-time rather than relegating it to runtime. The usual idiom is to assign the result of the computation to a construct that requires the value to be known at compile-time, such as an <code>enum</code> or a template parameter. For example:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">complicatedComputation</span><span class="p">(</span><span class="kt">int</span> <span class="n">x</span><span class="p">,</span> <span class="kt">int</span> <span class="n">y</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="p">...;</span> <span class="cm">/* insert complicated computation here */</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="c1">// The compiler may choose to evaluate this at compile-time or not,</span>
<span class="c1">// depending on how complex the computation is.</span>
<span class="kt">int</span> <span class="n">i</span> <span class="p">=</span> <span class="n">complicatedComputation</span><span class="p">(</span><span class="mi">123</span><span class="p">,</span> <span class="mi">456</span><span class="p">);</span>
<span class="c1">// Since the value of an enum must be known at compile-time, the</span>
<span class="c1">// compiler has no choice but to evaluate it in CTFE. This is the</span>
<span class="c1">// standard idiom for forcing CTFE evaluation of an expression.</span>
<span class="k">enum</span> <span class="n">j</span> <span class="p">=</span> <span class="n">complicatedComputation</span><span class="p">(</span><span class="mi">123</span><span class="p">,</span> <span class="mi">456</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>In discussions among D users, when CTFE is mentioned it is usually in this context, where CTFE evaluation is forced because the value of an expression must be known at compile-time.
</p>
<h2><span id="A_different_&quot;compile-time&quot;"></span><span class="mw-headline" id="A_different_.22compile-time.22">A different "compile-time"</span></h2>
<p>Coming back to the topic at hand, though, notice that when we speak of CTFE, we speak of "virtual machines" and "bytecode interpreters". This implies that by this point, the code has gone far enough through the compilation process that it is essentially ready to be turned into runtime executable code.
</p><p>In particular, this means that it has long passed the AST manipulation stage. Which in turn implies that code that can be evaluated by CTFE <i>can no longer make use of AST manipulation constructs</i> like <code>static if</code>. In order for CTFE to work, semantic notions such as variables and memory must have been assigned to various constructs in the code, otherwise there is nothing to execute or interpret. But in the AST manipulation phase, such semantics have not yet been assigned -- we're still manipulating the structure of the program.
</p><p>Thus, even though CTFE happens at "compile-time" just as AST manipulation happens at "compile-time", this is actually a different "compile-time". It is much closer to "runtime" than AST manipulation, which represents a much earlier stage in the compilation process. This is why the terminology "compile-time" is confusing: it gives the false impression that all of these features, AST manipulation and CTFE alike, are lumped together into a single, amorphous blob of time labelled "compile-time", and that the compiler can somehow make it all magically just work, by fiat.
</p><p>The point to take away from all this, is that AST manipulation constructs are applied first, and then the code may be used in CTFE later:
</p>
<dl><dd>AST manipulation &#8594; CTFE</dd></dl>
<p>The unidirectional arrow indicates that a piece of code can only move from AST manipulation to CTFE, but never the other way round.
</p><p>Of course, in practice, this simple picture is only part of the story. To understand how it all works, it's best to look at actual code examples. So let's now take a look at a few common pitfalls that D learners often run into, and see how this principle applies in practice.
</p>
<h2><span class="mw-headline" id="Case_Study:_Reading_CTFE_variables_at_AST_manipulation_time">Case Study: Reading CTFE variables at AST manipulation time</span></h2>
<p>A rather common complaint that's brought up in the D forums from time to time pertains to code along these lines:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">b</span><span class="p">)</span> <span class="c1">// &lt;--- compile error at this line</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">else</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="c1">// N.B.: the enum forces the compiler to evaluate the function in CTFE</span>
<span class="k">enum</span> <span class="n">myInt</span> <span class="p">=</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
</pre></div>
<p>If you try to compile the above code, the compiler will complain that the <code>static if</code> cannot read the value of <code>b</code> at "compile-time". Which almost certainly elicits the reaction, "What??! What do you mean you can't read <code>b</code> at compile-time?! Aren't you running this code in CTFE, which is by definition compile-time, with a value of <code>b</code> that's obviously known at compile-time?"
</p><p>On the surface, this would appear to be a glaring bug in the compiler, or a glaring shortcoming in D's "compile-time" capabilities, and/or an astonishing lack of competence on the part of the D compiler authors in failing to notice a problem in such an obvious and simple use case for CTFE.
</p><p>If we understand what's really going on, however, we would see why the compiler rejected this code. Remember that during the process of compilation, the D compiler first creates an AST of the code, evaluating any <code>static if</code>s that may change the shape of the resulting AST.
</p><p>So when the compiler first encounters the declaration of <code>ctfeFunc</code>, it scans its body and sees the <code>static if (b)</code> while building the AST for this function. If the value of <code>b</code> is <code>true</code>, then it would emit the AST tree that essentially corresponds with:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>(Recall that in the AST manipulation stage, the false branch of a <code>static if</code> is discarded from the resulting AST, and it is as if it wasn't even there. So the <code>return 0</code> doesn't even make it past this stage.)
</p><p>If the value of <code>b</code> is <code>false</code>, then it would emit the AST tree that corresponds with:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>There is a problem here, however. The value of <code>b</code> is unknown at this point. All the compiler knows about <code>b</code> at this point is that it's an identifier representing a parameter of the function. Semantics such as what values it might hold haven't been attached to it yet. In fact, the compiler hasn't even gotten to the <code>enum</code> line that calls <code>ctfeFunc</code> with an argument of <code>true</code> yet!
</p><p>And even if the compiler <i>did</i> get to the <code>enum</code> line, it wouldn't have been able to assign a value to <code>b</code>, because the function's AST is still not fully processed yet. You can't assign values to identifiers in an AST that hasn't been fully constructed yet, because the meaning of the identifiers may change once the AST is altered. It is simply too early at this point to meaningfully assign any value to <code>b</code>. The notion of assigning a value to a parameter is a semantic concept that can only be applied <i>after</i> the AST manipulation phase. But in order to fully process the AST, the compiler needs to know the value of <code>b</code>. Yet the value of <code>b</code> cannot be known until after the AST has been processed. This is an insoluble impasse, so the compiler gives up and emits a compile error.
</p>
<h3><span class="mw-headline" id="Solution_1:_Make_it_available_during_AST_manipulation">Solution 1: Make it available during AST manipulation</span></h3>
<p>One possible solution to this impasse is to make the value of <code>b</code> available during the AST manipulation phase. The simplest way to do this is to turn <code>ctfeFunc</code> into a template function with <code>b</code> as a template parameter, with the corresponding change in the <code>enum</code> line to pass <code>true</code> as a template argument rather than a runtime argument:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)()</span> <span class="c1">// N.B.: the first set of parentheses enclose template parameters</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">b</span><span class="p">)</span> <span class="c1">// Now this compiles without error</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">else</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">enum</span> <span class="n">myInt</span> <span class="p">=</span> <span class="n">ctfeFunc</span><span class="p">!</span><span class="kc">true</span><span class="p">;</span>
</pre></div>
<p>Since <code>b</code> is now a template argument, its value is known during AST manipulation, and so the <code>static if</code> can be compiled without any problems.
</p>
<h3><span class="mw-headline" id="Solution_2:_Do_everything_during_AST_manipulation_instead">Solution 2: Do everything during AST manipulation instead</span></h3>
<p>The foregoing solution works, but if we consider it more carefully, we will see that we can take it further. Look at it again from the standpoint of the AST manipulation. After the AST manipulation phase, the function has essentially become:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">()</span> <span class="c1">// N.B.: template parameters no longer exist after AST manipulation phase</span>
<span class="p">{</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span> <span class="c1">// N.B.: else branch of static if has been discarded</span>
<span class="p">}</span>
</pre></div>
<p>This means that CTFE wasn't actually necessary to evaluate this function in the first place! We could have just as easily declared <b>ctfeFunc</b> as a template, completely evaluated in the AST manipulation phase. (And we might as well also rename it to something other than <code>ctfeFunc</code>, since it would be no longer evaluated in CTFE, and no longer even a function):
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">template</span> <span class="n">Value</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">b</span><span class="p">)</span>
<span class="k">enum</span> <span class="n">Value</span> <span class="p">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">else</span>
<span class="k">enum</span> <span class="n">Value</span> <span class="p">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">enum</span> <span class="n">myVal</span> <span class="p">=</span> <span class="n">Value</span><span class="p">!</span><span class="kc">true</span><span class="p">;</span>
</pre></div>
<p>Now <code>myVal</code> can be completely evaluated at the AST manipulation phase, and CTFE doesn't even need to be involved.
</p>
<h3><span class="mw-headline" id="Solution_3:_Move_everything_to_CTFE">Solution 3: Move everything to CTFE</span></h3>
<p>There is another approach, however. Although the example we have given is rather trivial, in practice CTFE functions tend to be a lot more involved than a mere if-condition over a boolean parameter. Some functions may not be amenable to be rewritten in template form. So what do we do in that case?
</p><p>The answer may surprise you: get rid of the <code>static if</code>, and replace it with a plain old "runtime" <code>if</code>, like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">bool</span> <span class="n">b</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">b</span><span class="p">)</span> <span class="c1">// &lt;--- N.B.: regular if, not static if</span>
<span class="k">return</span> <span class="mi">1</span><span class="p">;</span>
<span class="k">else</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="c1">// N.B.: the enum forces the compiler to evaluate the function in CTFE</span>
<span class="k">enum</span> <span class="n">myInt</span> <span class="p">=</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
</pre></div>
<p>And, miracle of miracles, this code compiles without any error, and with the correct value for <code>myInt</code>! But wait a minute. What's going on here? How can changing <code>static if</code> to <code>if</code>, ostensibly a "runtime" construct, possibly work for a value that is needed at "compile-time"? Is the compiler cheating and secretly turning <code>myInt</code> into a runtime computation behind our backs?
</p><p>Actually, inspecting the executable code with a disassembler shows that no such cheating is happening. So how does this work?
</p>
<h2><span class="mw-headline" id="Interleaved_AST_manipulation_and_CTFE">Interleaved AST manipulation and CTFE</span></h2>
<p>Let's take a close look. This time, during the AST manipulation phase, nothing much happens besides the usual construction of the AST corresponding with <code>ctfeFunc</code>. There are no <code>static if</code>s or other template-related constructs anymore, so the resulting AST is as straightforward as it can get. Then the compiler sees the <code>enum</code> declaration and realizes that it needs to evaluate <code>ctfeFunc</code> at "compile-time".
</p><p>Here is where something interesting happens. Based on the above discussion, you may think, the compiler is still in the "AST manipulation" stage (because it hasn't fully constructed the AST for <code>myInt</code> yet), so wouldn't this fail, since <code>ctfeFunc</code> hasn't gotten to the semantic analysis phase yet? Note, however, that while it is certainly true that the AST for <code>myInt</code> hasn't been fully resolved yet (and therefore we can't read the value of <code>myInt</code> from CTFE at this point in time), the AST for <code>ctfeFunc</code>, by this point, <i>is</i> already ready to proceed to the next stage of compilation. Or, more precisely, <i>the subtree of the program's AST corresponding with <code>ctfeFunc</code> is complete,</i> and can be handed over to semantic analysis now.
</p><p>So the D compiler, being pretty smart about these things, realizes that it can go ahead with the semantic analysis of <code>ctfeFunc</code> <i>independently of the fact that other parts of the program's AST, namely the declaration of <code>myInt</code>, aren't completed yet.</i> This works because <code>ctfeFunc</code>'s subtree of the AST can be semantically analyzed as a unit on its own, without depending on <code>myInt</code>'s subtree of the AST at all! (It would fail if <code>ctfeFunc</code> somehow depended on the value of <code>myInt</code>, though.)
</p><p>Thus, the compiler applies semantic analysis to the AST of <code>ctfeFunc</code> and brings it to the point where it can be interpreted by the CTFE engine. The CTFE engine is then invoked to run <code>ctfeFunc</code> with the value <code>true</code> as its argument -- essentially simulating what it would have done at runtime. The return value of 1 is then handed back to the AST manipulation code that's still waiting to finish processing the AST for <code>myInt</code>, upon which the latter AST also becomes fully constructed.
</p><p>Perhaps this "smart" invocation of CTFE interleaved with AST manipulation is part of what imparts some validity to the term "compile-time" as referring to the entire process as a whole. Hopefully, though, by now you have also acquired a better understanding of why there are really (at least) two different "compile-times": an early phase where AST manipulation happens, and a later phase with CTFE which is very much like runtime except that it just so happens to be done inside the compiler. These phases may be applied to different parts of the program's AST at different times, though with respect to each part of the AST they are <i>always</i> in the order of AST manipulation first, and then CTFE. AST manipulation always happens on any given subtree of the AST <i>before</i> CTFE can be applied to that subtree, and CTFE can run on a given subtree of the AST only if the entire subtree has already passed the AST manipulation phase.
</p><p>This interleaving of AST manipulation and CTFE is what makes D's "compile-time" features so powerful: you can perform arbitrarily complex computations inside CTFE (subject to certain limitations of the CTFE engine, of course), and then use the result to manipulate the AST of another part of the program. You can even have that other part of the program also pass through CTFE, and use the result of <i>that</i> to affect the AST of a third part of the program, and so on, all as part of the compilation process. This is one of the keystones of metaprogramming in D.
</p>
<h2><span id="Case_Study:_pragma(msg)_and_CTFE"></span><span class="mw-headline" id="Case_Study:_pragma.28msg.29_and_CTFE">Case Study: pragma(msg) and CTFE</span></h2>
<p>Another common complaint by D learners arises from trying to debug CTFE functions, and pertains to the "strange" way in which <code>pragma(msg)</code> behaves in CTFE.
</p><p>First of all, if you're not familiar with it, <code>pragma(msg)</code> is a handy compiler feature that lets you debug certain compile-time processes. When the <code>pragma(msg)</code> directive is processed by the compiler, the compiler outputs whatever message is specified as arguments to the <code>pragma</code>. For example:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">template</span> <span class="n">MyTemplate</span><span class="p">(</span><span class="n">T</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;instantiating MyTemplate with T=&quot;</span> <span class="p">~</span> <span class="n">T</span><span class="p">.</span><span class="n">stringof</span><span class="p">);</span>
<span class="c1">// ... insert actual code here</span>
<span class="p">}</span>
</pre></div>
<p>This causes the compiler to print "instantiating MyTemplate with T=int" when <code>MyTemplate!int</code> is instantiated, and to print "instantiating MyTemplate with T=float" when <code>MyTemplate!float</code> is instantiated. This can be a useful debugging tool to trace exactly what instantiations are being used in the code.
</p><p>So far so good.
</p><p>Complaints, however, tend to arise when people attempt to do things like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">x</span> <span class="p">&lt;</span> <span class="mi">100</span><span class="p">)</span>
<span class="k">return</span> <span class="n">x</span><span class="p">;</span>
<span class="k">else</span>
<span class="p">{</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;bad value passed in&quot;</span><span class="p">);</span>
<span class="k">return</span> <span class="p">-</span><span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">enum</span> <span class="n">y</span> <span class="p">=</span> <span class="n">ctfeFunc</span><span class="p">(</span><span class="mi">50</span><span class="p">);</span> <span class="c1">// N.B.: enum forces CTFE on ctfeFunc</span>
</pre></div>
<p>Even though the argument 50 is well within the bounds of what <code>ctfeFunc</code> can handle, the compiler persistently prints "bad value passed in". And it does the same if the argument is changed to something the function ostensibly rejects, like 101. What gives?
</p><p>"Compiler bug!" some would scream.
</p><p>By now, however, you should be able to guess at the answer: <code>pragma(msg)</code> is a construct that pertains to the AST manipulation phase. The compiler prints the message while it is building the AST of <code>ctfeFunc</code>, well before it even knows that it needs to invoke CTFE on it. The <code>pragma(msg)</code> is then discarded from the AST. As we have mentioned, during the AST manipulation phase the compiler has not yet attached any meaning to <code>if</code> or any value to the identifier <code>x</code>; these are seen merely as syntax nodes to be attached to the AST being built. So the <code>pragma(msg)</code> is processed without any regard to the semantics of the surrounding code -- said semantics haven't been attached to the AST yet! Since there are no AST manipulation constructs that would prune away the subtree containing the <code>pragma(msg)</code>, the specified message is <i>always</i> printed regardless of what the value of <code>x</code> will be in CTFE. By the time this function gets to CTFE, the <code>pragma(msg)</code> has already been discarded from the AST, and the CTFE engine doesn't even see it.
</p>
<h2><span class="mw-headline" id="Case_Study:_static_if_and_ctfe">Case Study: static if and __ctfe</span></h2>
<p>Another common source of misunderstandings is the built-in magic variable <code>__ctfe</code>. This variable evaluates to <code>true</code> when inside the CTFE engine, but always evaluates to <code>false</code> at runtime. It is useful for working around CTFE engine limitations when your code contains constructs that work fine at runtime, but aren't currently supported in CTFE. It can also be used for optimizing your code for the CTFE engine by taking advantage of its known performance characteristics.
</p><p>As a simple example, as of this writing <code>std.array.appender</code> is generally recommended for use at runtime when you're appending a large number of items to an array. However, due to the way the current CTFE engine works, it is better to simply use the built-in array append operator <code>~</code> when inside the CTFE engine. Doing so would reduce the memory footprint of CTFE, and probably improve compilation speed as well. So you would test the <code>__ctfe</code> variable in your code and choose the respective implementation depending on whether it is running in CTFE or at runtime.
</p><p>Since <code>__ctfe</code> is, ostensibly, a "compile-time" variable, useful only for targeting the CTFE engine, a newcomer to D may be tempted to write the code like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span><span class="p">[]</span> <span class="n">buildArray</span><span class="p">()</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="n">__ctfe</span><span class="p">)</span> <span class="c1">// &lt;-- this is line 3</span>
<span class="p">{</span>
<span class="c1">// We&#39;re in CTFE: just use ~= for appending</span>
<span class="kt">int</span><span class="p">[]</span> <span class="n">result</span><span class="p">;</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">i</span><span class="p">;</span> <span class="mi">0</span> <span class="p">..</span> <span class="mi">1_000_000</span><span class="p">)</span>
<span class="n">result</span> <span class="p">~=</span> <span class="n">i</span><span class="p">;</span>
<span class="k">return</span> <span class="n">result</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">else</span>
<span class="p">{</span>
<span class="c1">// This is runtime, use appender() for faster performance</span>
<span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">array</span> <span class="p">:</span> <span class="n">appender</span><span class="p">;</span>
<span class="k">auto</span> <span class="n">app</span> <span class="p">=</span> <span class="n">appender</span><span class="p">!(</span><span class="kt">int</span><span class="p">[]);</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">i</span><span class="p">;</span> <span class="mi">0</span> <span class="p">..</span> <span class="mi">1_000_000</span><span class="p">)</span>
<span class="n">app</span><span class="p">.</span><span class="n">put</span><span class="p">(</span><span class="n">i</span><span class="p">);</span>
<span class="k">return</span> <span class="n">app</span><span class="p">.</span><span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>This code, unfortunately, gets rejected by the compiler:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span>test.d<span class="o">(</span><span class="m">3</span><span class="o">)</span>: Error: variable __ctfe cannot be <span class="nb">read</span> at compile <span class="nb">time</span>
</pre></div>
<p>which, almost certainly, elicits the response, "What?! What do you mean <code>__ctfe</code> cannot be read at compile time?! Isn't it specifically designed to work in CTFE, which is a compile-time feature??"
</p><p>Knowing what we now know, however, we can understand why this doesn't work: <code>static if</code> is a construct that pertains to the AST manipulation phase of the code, whereas <code>__ctfe</code> is clearly something specific to the later CTFE phase. At the AST manipulation phase of compilation, the compiler doesn't even know whether <code>buildArray</code> is going to be evaluated by CTFE or not. In fact, it hasn't even assigned a semantic meaning to the identifier <code>__ctfe</code> yet, because semantic analysis is not performed until the construction of the AST has been completed. Identifiers are not assigned concrete meanings until semantic analysis is done. So even though both <code>static if</code> and <code>__ctfe</code> are "compile-time" features, the former relates to an earlier phase of compilation, and the latter to a later phase. Again, we see that conflating the two under the blanket term "compile-time" leads to confusion.
</p>
<h3><span class="mw-headline" id="Solution:_Just_use_if">Solution: Just use if</span></h3>
<p>The solution is simple: just replace <code>static if</code> with <code>if</code>:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span><span class="p">[]</span> <span class="n">buildArray</span><span class="p">()</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">__ctfe</span><span class="p">)</span> <span class="c1">// &lt;--- N.B. no longer static if</span>
<span class="p">{</span>
<span class="c1">// We&#39;re in CTFE: just use ~= for appending</span>
<span class="kt">int</span><span class="p">[]</span> <span class="n">result</span><span class="p">;</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">i</span><span class="p">;</span> <span class="mi">0</span> <span class="p">..</span> <span class="mi">1_000_000</span><span class="p">)</span>
<span class="n">result</span> <span class="p">~=</span> <span class="n">i</span><span class="p">;</span>
<span class="k">return</span> <span class="n">result</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">else</span>
<span class="p">{</span>
<span class="c1">// This is runtime, use appender() for faster performance</span>
<span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">array</span> <span class="p">:</span> <span class="n">appender</span><span class="p">;</span>
<span class="k">auto</span> <span class="n">app</span> <span class="p">=</span> <span class="n">appender</span><span class="p">!(</span><span class="kt">int</span><span class="p">[]);</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">i</span><span class="p">;</span> <span class="mi">0</span> <span class="p">..</span> <span class="mi">1_000_000</span><span class="p">)</span>
<span class="n">app</span><span class="p">.</span><span class="n">put</span><span class="p">(</span><span class="n">i</span><span class="p">);</span>
<span class="k">return</span> <span class="n">app</span><span class="p">.</span><span class="n">data</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>Now <code>buildArray</code> works correctly, because the AST of this function can be fully built, analysed, and then, if necessary, passed to the CTFE engine for execution. When the CTFE engine interprets the code, it can then assign semantic meaning to <code>__ctfe</code> and take the true branch of the if-statement. At runtime, <code>__ctfe</code> is always <code>false</code> and the false branch is always taken.
</p>
<h3><span id="But_what_of_runtime_performance?"></span><span class="mw-headline" id="But_what_of_runtime_performance.3F">But what of runtime performance?</span></h3>
<p>One question that may still be lingering, though, is whether this "non-static" <code>if</code>, ostensibly a runtime construct, would generate redundant code in the executable. Since <code>__ctfe</code> will always be false at runtime, it would be a waste of CPU resources to always perform an unconditional branch over the CTFE-specific version of the code. On modern CPUs, branches can cause the instruction pipeline to stall, leading to poor performance. The CTFE-specific part of the code would also be dead weight, taking up space in the executable and using up memory at runtime, but serving no purpose since it will never be run.
</p><p>Compiling the code and examining it with a disassembler, however, shows that such fears are unfounded: the branch is elided by the compiler's code generator because the value of <code>__ctfe</code> is statically <code>false</code> outside of the CTFE engine. So the optimizer sees that the true branch of the if-statement is dead code, and simply omits it from the generated object code. There is no performance penalty and no additional dead code in the executable.
</p>
<h2><span class="mw-headline" id="Case_Study:_foreach_over_a_type_list">Case Study: foreach over a type list</span></h2>
<p>Let's now turn to something that might trip up even experienced D coders. Consider the following function:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">void</span> <span class="n">func</span><span class="p">(</span><span class="n">Args</span><span class="p">...)(</span><span class="n">Args</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">a</span><span class="p">;</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">a</span><span class="p">)</span> <span class="p">==</span> <span class="kt">int</span><span class="p">))</span>
<span class="p">{</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;is an int&quot;</span><span class="p">);</span>
<span class="k">continue</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;not an int&quot;</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">func</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>Trick question: what is the compiler's output when this program is compiled?
</p><p>If your answer is "is an int", you're wrong.
</p><p>Here's the output:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span>is an int
not an int
</pre></div>
<p>Now wait a minute! Surely this is a bug? There is only one argument passed to <code>func</code>; how could it possibly have <i>two</i> lines of output?
</p><p>Let's go through the paces of what we've learned so far, and see if we can figure this out.
</p><p>First, <code>func</code> is a template function, so it is not semantically analyzed until it is instantiated by a function call that specifies its argument types. This happens when the compiler is processing the <code>main</code> function, and sees the call <code>func(1)</code>. So, by IFTI (Implicit Function Template Instantiation -- the process of inferring the template arguments to a template function by looking at the types of the runtime arguments that are passed to it), the compiler assigns <code>Args</code> to be the single-member sequence <code>(int)</code>.
</p><p>That is, the function call is translated as:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">func</span><span class="p">!(</span><span class="kt">int</span><span class="p">)(</span><span class="mi">1</span><span class="p">);</span>
</pre></div>
<p>This causes the instantiation of <code>func</code>, which causes the compiler to build an AST for this particular instantiation based on the template body -- i.e., it enters the AST manipulation phase for the (copy of the) function body.
</p>
<h3><span class="mw-headline" id="Automatic_unrolling">Automatic unrolling</span></h3>
<p>There is a <code>foreach</code> over <code>args</code>. There's a tricky bit involved here, in that this <code>foreach</code> isn't just any <code>foreach</code> loop; it is a loop over variadic arguments. Such loops are treated specially in D: they are automatically unrolled. In AST terms, this means that the compiler will generate n copies of the AST for the loop body, once per iteration. Note also that this is done at the AST manipulation phase; <i>there is no CTFE involved here</i>. This kind of <code>foreach</code> loop is different from the usual "runtime" <code>foreach</code>.
</p><p>Then the compiler processes the loop body, and sees <code>static if</code>. Since the condition is true (the current element being looped over, which is also the only argument to the function, is an <code>int</code> with a value of 1), the compiler expands the <code>true</code> branch of the <code>static if</code>.
</p><p>Then it sees the <code>pragma(msg)</code>, and emits the message "is an int".
</p><p>Following that, it sees <code>continue</code>. And here's the important point: since we are in AST manipulation phase, <code>continue</code> is just another syntax node to be attached to the AST being built. The <code>continue</code> is not interpreted by the AST manipulation phase!
</p><p>And so, moving on to the next item in the loop body, the AST manipulation code sees another <code>pragma(msg)</code> and outputs "not an int".
</p><p>It is important to note here, and we repeat for emphasis, that:
</p>
<ol><li>CTFE is <i>not involved</i> here; the loop unrolling happens in the AST manipulation phase, not in CTFE;</li>
<li>the <code>continue</code> is not interpreted by the AST manipulation phase, but is left in the AST to be translated into code later on.</li></ol>
<h3><span class="mw-headline" id="foreach_over_a_type_list_does_NOT_interpret_break_and_continue">foreach over a type list does NOT interpret break and continue</span></h3>
<p>This last point is worth elaborating on, because even advanced D users may be misled to think that foreach over a type list interprets <code>break</code> and <code>continue</code> specially, i.e., during the unrolling of the loop. The next code snippet illustrates this point:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">stdio</span><span class="p">;</span>
<span class="kt">void</span> <span class="n">func</span><span class="p">(</span><span class="n">Args</span><span class="p">...)(</span><span class="n">Args</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">arg</span><span class="p">;</span> <span class="n">args</span><span class="p">)</span> <span class="c1">// N.B.: this is foreach over a type list</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="p">==</span> <span class="kt">int</span><span class="p">))</span>
<span class="k">continue</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">arg</span><span class="p">);</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="p">==</span> <span class="nb">string</span><span class="p">))</span>
<span class="k">break</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="s">&quot;Got to end of loop body with &quot;</span><span class="p">,</span> <span class="n">arg</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">func</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="s">&quot;abc&quot;</span><span class="p">,</span> <span class="mf">3.14159</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>What do you think is the output of this program? (Not a trick question.)
</p><p>Here's the output:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span>abc
</pre></div>
<p>This seems to confirm our initial hypothesis that <code>continue</code> and <code>break</code> are interpreted by the foreach, such that the first argument, which is an <code>int</code>, causes the rest of the loop body to be skipped until the next iteration, and the second argument, which is a <code>string</code>, breaks out of the loop itself and thus causes the loop unrolling to be interrupted.
</p><p>However, this is not true, as can be proven by replacing the last <code>writeln</code> with a <code>static assert</code>:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">stdio</span><span class="p">;</span>
<span class="kt">void</span> <span class="n">func</span><span class="p">(</span><span class="n">Args</span><span class="p">...)(</span><span class="n">Args</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">arg</span><span class="p">;</span> <span class="n">args</span><span class="p">)</span> <span class="c1">// N.B.: this is foreach over a type list</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="p">==</span> <span class="kt">int</span><span class="p">))</span>
<span class="k">continue</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">arg</span><span class="p">);</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="p">==</span> <span class="nb">string</span><span class="p">))</span>
<span class="k">break</span><span class="p">;</span>
<span class="c1">// This should be true, right?</span>
<span class="c1">// Since the string case has broken out of the loop?</span>
<span class="k">static</span> <span class="k">assert</span><span class="p">(!</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="p">==</span> <span class="nb">string</span><span class="p">));</span> <span class="c1">// line 16</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">func</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="s">&quot;abc&quot;</span><span class="p">,</span> <span class="mf">3.14159</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>Here is what the compiler has to say:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="n">test</span><span class="p">.</span><span class="n">d</span><span class="p">(</span><span class="mi">16</span><span class="p">):</span> <span class="n">Error</span><span class="p">:</span> <span class="k">static</span> <span class="k">assert</span> <span class="p">(!</span><span class="kc">true</span><span class="p">)</span> <span class="k">is</span> <span class="kc">false</span>
<span class="n">test</span><span class="p">.</span><span class="n">d</span><span class="p">(</span><span class="mi">21</span><span class="p">):</span> <span class="n">instantiated</span> <span class="n">from</span> <span class="n">here</span><span class="p">:</span> <span class="n">func</span><span class="p">!(</span><span class="kt">int</span><span class="p">,</span> <span class="nb">string</span><span class="p">,</span> <span class="kt">double</span><span class="p">)</span>
</pre></div>
<p>What's going on here?
</p><p>It seems counterintuitive, but it's actually very simple, and should be readily understandable now that we have a clearer idea of the role of AST manipulation. Simply put, the foreach does <i>not</i> interpret <code>continue</code> and <code>break</code> at all during the AST manipulation phase. They are treated merely as nodes in the AST being constructed, and thus the compiler continues process the rest of the loop body. Thus, the <code>static assert</code> is evaluated <i>in all three iterations of the loop</i>, including the second iteration where it fails because <code>typeof(arg) == string</code>.
</p>
<h3><span class="mw-headline" id="What_foreach_over_a_type_list_actually_does">What foreach over a type list actually does</span></h3>
<p>But if this is the case, then why does the original loop appear to obey <code>continue</code> and <code>break</code>? To answer that, let's take a look at the actual AST as printed by the D compiler <code>dmd</code> (with additional comments added by yours truly):
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="nd">@safe</span> <span class="kt">void</span> <span class="n">func</span><span class="p">(</span><span class="kt">int</span> <span class="n">_param_0</span><span class="p">,</span> <span class="nb">string</span> <span class="n">_param_1</span><span class="p">,</span> <span class="kt">double</span> <span class="n">_param_2</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">import</span> <span class="n">std</span><span class="p">.</span><span class="n">stdio</span><span class="p">;</span>
<span class="cm">/*unrolled*/</span> <span class="p">{</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">arg</span> <span class="p">=</span> <span class="n">_param_0</span><span class="p">;</span>
<span class="k">continue</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">arg</span><span class="p">);</span> <span class="c1">// N.B.: NOT skipped!</span>
<span class="p">}</span>
<span class="p">{</span>
<span class="nb">string</span> <span class="n">arg</span> <span class="p">=</span> <span class="n">_param_1</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">arg</span><span class="p">);</span>
<span class="k">break</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">{</span>
<span class="c1">// N.B.: this iteration is NOT skipped!</span>
<span class="kt">double</span> <span class="n">arg</span> <span class="p">=</span> <span class="n">_param_2</span><span class="p">;</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">arg</span><span class="p">);</span> <span class="c1">// N.B.: NOT skipped!</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>During code generation (which is another phase that comes after AST manipulation), however, the compiler's code generator notices that the first loop iteration begins with an unconditional branch to the next iteration. As such, the rest of the first iteration is dead code, and can be elided altogether. Similarly, in the second loop iteration, the code generator notices that there is an unconditional branch to the end of the loop, so the rest of that iteration is also dead code and can be elided. Lastly, the third loop iteration is never reached -- it is dead code, and gets elided as well.
</p><p>After these elisions, what's left is:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">void</span> <span class="n">func</span><span class="p">!(</span><span class="kt">int</span><span class="p">,</span> <span class="nb">string</span><span class="p">,</span> <span class="kt">double</span><span class="p">)(</span><span class="kt">int</span> <span class="n">__arg0</span><span class="p">,</span> <span class="nb">string</span> <span class="n">__arg1</span><span class="p">,</span> <span class="kt">double</span> <span class="n">__arg2</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">writeln</span><span class="p">(</span><span class="n">__arg1</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>which is what produced the observed output.
</p><p>In other words, it wasn't the foreach over the type list that pruned the code following the <code>break</code> and the <code>continue</code>; it's actually the compiler's optimizer, which is part of the code generator, getting rid of dead code so that the final executable doesn't waste space on what will never be executed.
</p>
<h3><span class="mw-headline" id="Possible_solutions">Possible solutions</span></h3>
<p>The simplest solution to the conundrum posed by the original code in this case study is to use an <code>else</code> clause with the <code>static if</code>:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">void</span> <span class="n">func</span><span class="p">(</span><span class="n">Args</span><span class="p">...)(</span><span class="n">Args</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">foreach</span> <span class="p">(</span><span class="n">a</span><span class="p">;</span> <span class="n">args</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">static</span> <span class="k">if</span> <span class="p">(</span><span class="k">is</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="n">a</span><span class="p">)</span> <span class="p">==</span> <span class="kt">int</span><span class="p">))</span>
<span class="p">{</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;is an int&quot;</span><span class="p">);</span>
<span class="k">continue</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">else</span> <span class="c1">// &lt;---- N.B.: else clause</span>
<span class="k">pragma</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="s">&quot;not an int&quot;</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="kt">void</span> <span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">func</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>This ensures that the second <code>pragma(msg)</code> is correctly elided from the generated AST when the condition of the <code>static if</code> is false.
</p>
<h2><span class="mw-headline" id="Summary">Summary</span></h2>
<p>In summary, we learned that there are (at least) two distinct stages of compilation that a piece of D code passes through:
</p>
<ol><li>The AST manipulation phase, where templates are expanded and <code>static if</code> is processed. In this phase, we are manipulating the structure of the code itself in the form of its AST (Abstract Syntax Tree). Semantic concepts such as variables, the meaning of control-flow constructs like <code>break</code> or <code>continue</code> do not apply in this stage.</li>
<li>The semantic analysis phase, where meaning is attached to the AST. Notions such as variables, arguments, and control-flow are applied here. AST manipulation constructs can no longer be applied at this point. CTFE (Compile-Time Function Evaluation) can only be used for code that has already passed the AST manipulation phase and the semantic analysis phase. By the time the CTFE engine sees the code, anything involving templates, <code>static if</code>, or any of the other AST manipulation features has already been processed, and the CTFE engine does not see the original AST manipulation constructs anymore.</li></ol>
<p>Each piece of code passes through the AST manipulation phase and the semantic analysis phase, <i>in that order</i>, and never the other way around. Consequently, CTFE can only run on a piece of code <i>after</i> it has finished its AST manipulation phase.
</p><p>Nevertheless, it is possible for <i>another</i> part of the program to still be in the AST manipulation phase, depending on a value computed by a piece of code that has already passed the AST manipulation phase and is ready to be interpreted by the CTFE engine. This interleaving of AST manipulation and CTFE is what makes D's "compile-time" features so powerful. But it is subject to the condition that the code running in CTFE must itself have already passed its AST manipulation phase; it cannot depend on anything that hasn't reached the semantic analysis phase yet.
</p><p>Mixing up AST manipulation constructs with CTFE-specific semantic notions is what causes most of the confusion and frustrations with D's "compile-time" features.
</p>
<!--
NewPP limit report
Cached time: 20261026134656
Cache expiry: 86400
Dynamic content: false
[SMW] In‐text annotation parser time: 0 seconds
CPU time usage: 0.105 seconds
Real time usage: 3.871 seconds
Preprocessor visited node count: 446/1000000
Preprocessor generated node count: 880/1000000
Post‐expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/100
Unstrip recursion depth: 0/20
Unstrip post‐expand size: 34369/5000000 bytes
-->
<!--
Transclusion expansion time report (%,ms,calls,template)
100.00% 0.000 1 -total
-->
</div>
<!-- Saved in parser cache with key dwiki:pcache:idhash:988-0!canonical and timestamp 20261026134652 and revision id 10062
-->
</div> <div class="printfooter">
Retrieved from "<a dir="ltr" href="https://wiki.dlang.org/?title=Compile-time_vs._compile-time&amp;oldid=10062">https://wiki.dlang.org/?title=Compile-time_vs._compile-time&amp;oldid=10062</a>" </div>
<div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> <div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
<div id="mw-head">
<div id="p-personal" role="navigation" class="" aria-labelledby="p-personal-label">
<h3 id="p-personal-label">Personal tools</h3>
<ul>
<li id="pt-createaccount"><a href="/?title=Special:CreateAccount&amp;returnto=Compile-time+vs.+compile-time" title="You are encouraged to create an account and log in; however, it is not mandatory">Create account</a></li><li id="pt-login"><a href="/?title=Special:UserLogin&amp;returnto=Compile-time+vs.+compile-time" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> </ul>
</div>
<div id="left-navigation">
<div id="p-namespaces" role="navigation" class="vectorTabs" aria-labelledby="p-namespaces-label">
<h3 id="p-namespaces-label">Namespaces</h3>
<ul>
<li id="ca-nstab-main" class="selected"><span><a href="/Compile-time_vs._compile-time" title="View the content page [c]" accesskey="c">Page</a></span></li><li id="ca-talk" class="new"><span><a href="/?title=Talk:Compile-time_vs._compile-time&amp;action=edit&amp;redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t">Discussion</a></span></li> </ul>
</div>
<div id="p-variants" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-variants-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-variants-label" />
<h3 id="p-variants-label">
<span>Variants</span>
</h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
</div>
<div id="right-navigation">
<div id="p-views" role="navigation" class="vectorTabs" aria-labelledby="p-views-label">
<h3 id="p-views-label">Views</h3>
<ul>
<li id="ca-view" class="collapsible selected"><span><a href="/Compile-time_vs._compile-time">Read</a></span></li><li id="ca-viewsource" class="collapsible"><span><a href="/?title=Compile-time_vs._compile-time&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></span></li><li id="ca-history" class="collapsible"><span><a href="/?title=Compile-time_vs._compile-time&amp;action=history" title="Past revisions of this page [h]" accesskey="h">View history</a></span></li> </ul>
</div>
<div id="p-cactions" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-cactions-label">
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="p-cactions-label" />
<h3 id="p-cactions-label"><span>More</span></h3>
<div class="menu">
<ul>
</ul>
</div>
</div>
<div id="p-search" role="search">
<h3>
<label for="searchInput">Search</label>
</h3>
<form action="/" id="searchform">
<div id="simpleSearch">
<input type="search" name="search" placeholder="Search D Wiki" title="Search D Wiki [f]" accesskey="f" id="searchInput"/><input type="hidden" value="Special:Search" name="title"/><input type="submit" name="fulltext" value="Search" title="Search the pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/><input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" id="searchButton" class="searchButton"/> </div>
</form>
</div>
</div>
</div>
<div id="mw-panel">
<div id="p-logo" role="banner"><a class="mw-wiki-logo" href="/The_D_Programming_Language" title="Visit the main page"></a></div>
<div class="portal" role="navigation" id="p-navigation" aria-labelledby="p-navigation-label">
<h3 id="p-navigation-label">Navigation</h3>
<div class="body">
<ul>
<li id="n-mainpage-description"><a href="/The_D_Programming_Language" title="Visit the main page [z]" accesskey="z">Main page</a></li><li id="n-portal"><a href="/DWiki:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li><li id="n-currentevents"><a href="/DWiki:Current_events" title="Find background information on current events">Current events</a></li><li id="n-recentchanges"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li><li id="n-randompage"><a href="/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li><li id="n-help"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" title="The place to find out">Help</a></li><li id="n-D-home"><a href="http://dlang.org" rel="nofollow">D home</a></li> </ul>
</div>
</div>
<div class="portal" role="navigation" id="p-tb" aria-labelledby="p-tb-label">
<h3 id="p-tb-label">Tools</h3>
<div class="body">
<ul>
<li id="t-whatlinkshere"><a href="/Special:WhatLinksHere/Compile-time_vs._compile-time" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li><li id="t-recentchangeslinked"><a href="/Special:RecentChangesLinked/Compile-time_vs._compile-time" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li id="t-specialpages"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li id="t-print"><a href="/?title=Compile-time_vs._compile-time&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li id="t-permalink"><a href="/?title=Compile-time_vs._compile-time&amp;oldid=10062" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-info"><a href="/?title=Compile-time_vs._compile-time&amp;action=info" title="More information about this page">Page information</a></li><li id="t-smwbrowselink"><a href="/Special:Browse/:Compile-2Dtime-5Fvs.-5Fcompile-2Dtime" rel="search">Browse properties</a></li> </ul>
</div>
</div>
</div>
</div>
<div id="footer" role="contentinfo">
<ul id="footer-info">
<li id="footer-info-lastmod"> This page was last edited on 13 May 2022, at 16:40.</li>
<li id="footer-info-copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
</ul>
<ul id="footer-places">
<li id="footer-places-privacy"><a href="/DWiki:Privacy_policy" title="DWiki:Privacy policy">Privacy policy</a></li>
<li id="footer-places-about"><a href="/DWiki:About" title="DWiki:About">About D Wiki</a></li>
<li id="footer-places-disclaimer"><a href="/DWiki:General_disclaimer" title="DWiki:General disclaimer">Disclaimers</a></li>
</ul>
<ul id="footer-icons" class="noprint">
<li id="footer-copyrightico">
<a href="http://www.gnu.org/copyleft/fdl.html"><img src="/resources/assets/licenses/gnu-fdl.png" alt="GNU Free Documentation License 1.3 or later" width="88" height="31"/></a> </li>
<li id="footer-poweredbyico">
<a href="//www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"/></a> </li>
</ul>
<div style="clear: both;"></div>
</div>
<script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"smw":{"limitreport-intext-parsertime":0},"limitreport":{"cputime":"0.105","walltime":"3.871","ppvisitednodes":{"value":446,"limit":1000000},"ppgeneratednodes":{"value":880,"limit":1000000},"postexpandincludesize":{"value":0,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":40},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":34369,"limit":5000000},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"timestamp":"20261026134656","ttl":86400,"transientcontent":false}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":4545});});</script>
</body>
</html>
@@ -0,0 +1,46 @@
<!DOCTYPE html><html style="font-size: 62.5%;font-family: Roboto, Arial, sans-serif;" lang="ru-RU" darker-dark-theme darker-dark-theme-deprecate system-icons color-version="v2_0" typography typography-spacing><head><script data-id="_gd" nonce="7gkCJG7smKJg6D__kv1ttw">window.WIZ_global_data = {"AfY8Hf":false,"FL1an":false,"HiPsbb":0,"MUE6Ne":"youtube_web","MuJWjd":false,"TSDtV":"%.@.[[null,[[45862259,null,false,null,null,null,\"sZycyd\"],[45824912,131072,null,null,null,null,\"b2C2B\"]],\"\"]]]","UUFaWc":"%.@.null,1000,2]","cfb2h":"youtube.web-front-end-critical_20261021.09_p0","gTCm1":true,"hsFLT":"%.@.null,10,3]","nQyAE":{},"oxN3nb":{"1":false,"0":false,"610401301":false,"899588437":false,"772657768":true,"513659523":false,"568333945":true,"651175828":false,"722764542":false,"748402145":false,"748402146":false,"748402147":true,"1602613185":true,"861377723":false,"861377724":false,"869336903":false,"882674507":false,"869336904":true,"869336905":true,"283953155":true,"995371348":false,"919444824":true,"928875398":true,"683749201":false},"u4g7r":"%.@.null,1,3]","xnI9P":false,"xwAfE":true,"yFnxrf":2486};</script><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="origin-trial" content="ApvK67ociHgr2egd6c2ZjrfPuRs8BHcvSggogIOPQNH7GJ3cVlyJ1NOq/COCdj0+zxskqHt9HgLLETc8qqD+vwsAAABteyJvcmlnaW4iOiJodHRwczovL3lvdXR1YmUuY29tOjQ0MyIsImZlYXR1cmUiOiJQcml2YWN5U2FuZGJveEFkc0FQSXMiLCJleHBpcnkiOjE2OTUxNjc5OTksImlzU3ViZG9tYWluIjp0cnVlfQ=="/><meta name="apple-itunes-app" content="app-id=544007664, app-argument=https://www.youtube.com/watch?v=5eUL8Z9AFW0&amp;referring_app=com.apple.mobilesafari-smartbanner, affiliate-data=ct=smart_app_banner_polymer&amp;pt=9008"><script nonce="7gkCJG7smKJg6D__kv1ttw">var ytcfg={d:function(){return window.yt&&yt.config_||ytcfg.data_||(ytcfg.data_={})},get:function(k,o){return k in ytcfg.d()?ytcfg.d()[k]:o},set:function(){var a=arguments;if(a.length>1)ytcfg.d()[a[0]]=a[1];else{var k;for(k in a[0])ytcfg.d()[k]=a[0][k]}}};
window.ytcfg.set('EMERGENCY_BASE_URL', '\/error_204?t\x3djserror\x26level\x3dERROR\x26client.name\x3d1\x26client.version\x3d2.20261023.01.00');</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function(){window.yterr=window.yterr||true;window.unhandledErrorMessages={};window.unhandledErrorCount=0;
window.onerror=function(msg,url,line,columnNumber,error){var err;if(error)err=error;else{err=new Error;err.stack="";err.message=msg;err.fileName=url;err.lineNumber=line;if(!isNaN(columnNumber))err["columnNumber"]=columnNumber}var message=String(err.message);if(!err.message||message in window.unhandledErrorMessages||window.unhandledErrorCount>=5)return;window.unhandledErrorCount+=1;window.unhandledErrorMessages[message]=true;var img=new Image;window.emergencyTimeoutImg=img;img.onload=img.onerror=function(){delete window.emergencyTimeoutImg};
var combinedLineAndColumn=err.lineNumber;if(!isNaN(err["columnNumber"]))combinedLineAndColumn=combinedLineAndColumn+(":"+err["columnNumber"]);var stack=err.stack||"";var values={"msg":message,"type":err.name,"client.params":"unhandled window error","file":err.fileName,"line":combinedLineAndColumn,"stack":stack.substr(0,500)};var thirdPartyScript=!err.fileName||err.fileName==="<anonymous>"||stack.indexOf("extension://")>=0;var replaced=stack.replace(/https:\/\/www.youtube.com\//g,"");if(replaced.match(/https?:\/\/[^/]+\//))thirdPartyScript=
true;else if(stack.indexOf("trapProp")>=0&&stack.indexOf("trapChain")>=0)thirdPartyScript=true;else if(message.indexOf("redefine non-configurable")>=0)thirdPartyScript=true;var baseUrl=window["ytcfg"].get("EMERGENCY_BASE_URL","https://www.youtube.com/error_204?t=jserror&level=ERROR");var unsupported=message.indexOf("window.customElements is undefined")>=0;if(thirdPartyScript||unsupported)baseUrl=baseUrl.replace("level=ERROR","level=WARNING");var parts=[baseUrl];var key;for(key in values){var value=
values[key];if(value)parts.push(key+"="+encodeURIComponent(value))}img.src=parts.join("&")};
(function(){function _getExtendedNativePrototype(tag){var p=this._nativePrototypes[tag];if(!p){p=Object.create(this.getNativePrototype(tag));var p$=Object.getOwnPropertyNames(window["Polymer"].Base);var i=0;var n=void 0;for(;i<p$.length&&(n=p$[i]);i++)if(!window["Polymer"].BaseDescriptors[n])try{p[n]=window["Polymer"].Base[n]}catch(e){throw new Error("Error while copying property: "+n+". Tag is "+tag);}try{Object.defineProperties(p,window["Polymer"].BaseDescriptors)}catch(e){throw new Error("Polymer define property failed for "+
Object.keys(p));}this._nativePrototypes[tag]=p}return p}function handlePolymerError(msg){window.onerror(msg,window.location.href,0,0,new Error(Array.prototype.join.call(arguments,",")))}var origPolymer=window["Polymer"];var newPolymer=function(config){if(!origPolymer._ytIntercepted&&window["Polymer"].Base){origPolymer._ytIntercepted=true;window["Polymer"].Base._getExtendedNativePrototype=_getExtendedNativePrototype;window["Polymer"].Base._error=handlePolymerError;window["Polymer"].Base._warn=handlePolymerError}return origPolymer.apply(this,
arguments)};var origDescriptor=Object.getOwnPropertyDescriptor(window,"Polymer");Object.defineProperty(window,"Polymer",{set:function(p){if(origDescriptor&&origDescriptor.set&&origDescriptor.get){origDescriptor.set(p);origPolymer=origDescriptor.get()}else origPolymer=p;if(typeof origPolymer==="function")Object.defineProperty(window,"Polymer",{value:origPolymer,configurable:true,enumerable:true,writable:true})},get:function(){return typeof origPolymer==="function"?newPolymer:origPolymer},configurable:true,
enumerable:true})})();}).call(this);
</script><script nonce="7gkCJG7smKJg6D__kv1ttw">window.Polymer=window.Polymer||{};window.Polymer.legacyOptimizations=true;window.Polymer.setPassiveTouchGestures=true;window.ShadyDOM={force:true,preferPerformance:true,noPatch:true};
window.polymerSkipLoadingFontRoboto = true;window.ShadyCSS = {disableRuntime: true};</script><link rel="shortcut icon" href="https://www.youtube.com/s/desktop/dc0b62b0/img/favicon.ico" type="image/x-icon"><link rel="icon" href="https://www.youtube.com/s/desktop/dc0b62b0/img/favicon_32x32.png" sizes="32x32"><link rel="icon" href="https://www.youtube.com/s/desktop/dc0b62b0/img/favicon_48x48.png" sizes="48x48"><link rel="icon" href="https://www.youtube.com/s/desktop/dc0b62b0/img/favicon_96x96.png" sizes="96x96"><link rel="icon" href="https://www.youtube.com/s/desktop/dc0b62b0/img/favicon_144x144.png" sizes="144x144"><script nonce="7gkCJG7smKJg6D__kv1ttw">if ('undefined' == typeof Symbol || 'undefined' == typeof Symbol.iterator) {delete Array.prototype.entries;}</script><script nonce="7gkCJG7smKJg6D__kv1ttw">var ytcsi={gt:function(n){n=(n||"")+"data_";return ytcsi[n]||(ytcsi[n]={tick:{},info:{},gel:{preLoggedGelInfos:[]}})},now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()},tick:function(l,t,n){var ticks=ytcsi.gt(n).tick;var v=t||ytcsi.now();if(ticks[l]){ticks["_"+l]=ticks["_"+l]||[ticks[l]];ticks["_"+l].push(v)}ticks[l]=
v},info:function(k,v,n){ytcsi.gt(n).info[k]=v},infoGel:function(p,n){ytcsi.gt(n).gel.preLoggedGelInfos.push(p)},setStart:function(t,n){ytcsi.tick("_start",t,n)}};
(function(w,d){function isGecko(){if(!w.navigator)return false;try{if(w.navigator.userAgentData&&w.navigator.userAgentData.brands&&w.navigator.userAgentData.brands.length){var brands=w.navigator.userAgentData.brands;var i=0;for(;i<brands.length;i++)if(brands[i]&&brands[i].brand==="Firefox")return true;return false}}catch(e){setTimeout(function(){throw e;})}if(!w.navigator.userAgent)return false;var ua=w.navigator.userAgent;return ua.indexOf("Gecko")>0&&ua.toLowerCase().indexOf("webkit")<0&&ua.indexOf("Edge")<
0&&ua.indexOf("Trident")<0&&ua.indexOf("MSIE")<0}ytcsi.setStart(w.performance?w.performance.timing.responseStart:null);var isPrerender=(d.visibilityState||d.webkitVisibilityState)=="prerender";var vName=!d.visibilityState&&d.webkitVisibilityState?"webkitvisibilitychange":"visibilitychange";if(isPrerender){var startTick=function(){ytcsi.setStart();d.removeEventListener(vName,startTick)};d.addEventListener(vName,startTick,false)}if(d.addEventListener)d.addEventListener(vName,function(){ytcsi.tick("vc")},
false);if(isGecko()){var isHidden=(d.visibilityState||d.webkitVisibilityState)=="hidden";if(isHidden)ytcsi.tick("vc")}var slt=function(el,t){setTimeout(function(){var n=ytcsi.now();el.loadTime=n;if(el.slt)el.slt()},t)};w.__ytRIL=function(el){if(!el.getAttribute("data-thumb"))if(w.requestAnimationFrame)w.requestAnimationFrame(function(){slt(el,0)});else slt(el,16)}})(window,document);
</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function ytPrewarmYtimg() {var img = new Image().src = "https://i.ytimg.com/generate_204";})();//# sourceURL=yt-prewarm-ytimg.js</script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/webcomponents-all-noPatch.vflset/webcomponents-all-noPatch.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/fetch-polyfill.vflset/fetch-polyfill.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/intersection-observer.min.vflset/intersection-observer.min.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('lpcs', null, '');}</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function ytBootstrapConfig() {window.ytplayer={};
ytcfg.set({"CLIENT_CANARY_STATE":"none","DEVICE":"cbrand\u003drobot\u0026ceng\u003dUSER_DEFINED\u0026cmodel\u003dbot+or+crawler\u0026cplatform\u003dDESKTOP","DISABLE_YT_IMG_DELAY_LOADING":false,"ELEMENT_POOL_DEFAULT_CAP":75,"EVENT_ID":"1lnfatXLE96Wl9EP5NO2-Qk","EXPERIMENT_FLAGS":{"PremiumClientSharedConfig__enable_att_context_processor":true,"ab_det_apm":true,"ab_det_el_h":true,"action_companion_center_align_description":true,"align_ask_youtube_input_on_focus":true,"all_web_enable_network_machine":true,"all_web_network_machine_raw_request":true,"allow_skip_networkless":true,"att_web_record_metrics":true,"attmusi":true,"attmusiw":true,"bg_st_hr":true,"browse_next_continuations_migration_playlist":true,"browse_reload_continuations_migration_home":true,"c3_enable_button_impression_logging":true,"c3_watch_page_component":true,"cancel_pending_navs":true,"channel_details_shelf_resize_observer":true,"check_user_lact_at_prompt_shown_time_on_web":true,"client_respect_autoplay_switch_button_renderer":true,"client_ui_enable_multi_track_audio_on_web_embedded_player":true,"cold_missing_history":true,"compress_gel":true,"config_age_report_killswitch":true,"course_hide_playlist_panel_shuffle_and_loop_buttons":true,"cow_optimize_idom_compat":true,"csi_on_gel":true,"dedupping_server_ve":true,"defer_menus":true,"defer_overlays":true,"delay_sheet_open_killswitch":true,"delhi_modern_web_player_compact_video_actions_controls":true,"delhi_modern_web_player_disable_frosted_glass":true,"delhi_modern_web_player_icons":true,"delhi_mweb_colorful_sd":true,"delhi_mweb_colorful_sd_v2":true,"delhi_web_player_use_external_playlist_panel":true,"deprecate_legacy_qna":true,"deprecate_pair_servlet_enabled":true,"desktop_add_to_playlist_renderer_dialog_popup":true,"desktop_delay_player_resizing":true,"desktop_enable_dmpanel_click_drag_scroll":true,"desktop_enable_dmpanel_scroll":true,"desktop_enable_dmpanel_wheel_scroll":true,"desktop_enable_entity_suggest":true,"desktop_enable_new_video_metadata":true,"desktop_enable_scrollable_suggestions_panel":true,"desktop_enable_single_suggestion_highlight":true,"desktop_enable_suggestions_panel_padding":true,"desktop_enable_visual_suggest":true,"desktop_keyboard_capture_keydown_killswitch":true,"desktop_mix_use_sampled_color_for_bottom_bar":true,"desktop_mix_use_sampled_color_for_bottom_bar_search":true,"desktop_mix_use_sampled_color_for_bottom_bar_watch_next":true,"desktop_show_ios_smart_banner":true,"desktop_sparkles_light_cta_button":true,"desktop_use_new_history_manager":true,"disable_child_node_auto_formatted_strings":true,"disable_features_for_supex":true,"disable_home_redundant_search_request":true,"disable_legacy_desktop_remote_queue":true,"disable_mention_encoded_channel_handle_in_post":true,"disable_mini_app_container_web_view_insets":true,"disable_pacf_logging_for_memory_limited_tv":true,"disable_super_chat_buy_button":true,"download_invalid_policy_error_handling":true,"embeds_desktop_enable_volume_slider":true,"enable_active_view_display_ad_renderer_web_home":true,"enable_ads_web_ep_buenos_aires_and_padding_fix":true,"enable_ai_disclosure_for_compact_landscape_image_web":true,"enable_ai_disclosure_for_compact_landscape_image_web_innertube":true,"enable_ai_disclosure_for_compact_landscape_no_button_web":true,"enable_ai_disclosure_for_compact_landscape_no_button_web_innertube":true,"enable_ai_disclosure_for_text_image_no_button_web":true,"enable_ai_disclosure_for_text_image_no_button_web_innertube":true,"enable_ai_disclosure_for_top_landscape_image_web":true,"enable_ai_disclosure_for_top_landscape_image_web_innertube":true,"enable_ai_disclosure_for_video_display_billboard_buttoned_web":true,"enable_ai_disclosure_for_video_display_billboard_buttoned_web_innertube":true,"enable_ai_disclosure_for_video_display_button_group_web":true,"enable_ai_disclosure_for_video_display_button_group_web_innertube":true,"enable_ai_disclosure_for_video_display_compact_button_group_web":true,"enable_ai_disclosure_for_video_display_compact_button_group_web_innertube":true,"enable_ai_disclosure_for_video_display_compact_buttoned_web":true,"enable_ai_disclosure_for_video_display_compact_buttoned_web_innertube":true,"enable_ai_disclosure_for_video_display_compact_carousel_button_group_web":true,"enable_ai_disclosure_for_video_display_compact_carousel_button_group_web_innertube":true,"enable_ai_disclosure_for_video_display_compact_web":true,"enable_ai_disclosure_for_video_display_compact_web_innertube":true,"enable_ai_disclosure_for_video_display_full_web":true,"enable_ai_disclosure_for_video_display_full_web_innertube":true,"enable_ai_search_innertube_m0_fixes":true,"enable_android_web_view_top_insets_bugfix":true,"enable_att_for_transcript_request_on_web_client":true,"enable_attention_logging_measure_on_shown":true,"enable_automotive_form_factor_check":true,"enable_button_behavior_reuse":true,"enable_client_only_wiz_tooltips":true,"enable_client_sli_logging":true,"enable_client_streamz_web":true,"enable_client_ve_spLine truncated
setMessage({"ABOUT_CATEGORY_TITLE":"О приложении","ADDED_TO_QUEUE":"Добавлено в очередь","ADD_TO_DROPDOWN_LABEL":"Выберите плейлист","AD_BADGE_TEXT":"Реклама","AD_TITLE":"Реклама: $title","AI_SEARCHBOX_PLACEHOLDER":"Выполните поиск или задайте вопрос","AI_SEARCH_COMPARISON_TABLE_NEXT_COLUMN":"Следующий столбец","AI_SEARCH_COMPARISON_TABLE_PREVIOUS_COLUMN":"Предыдущий столбец","AI_SUGGEST_EXPLORE_HEADER":"Попробуйте в режиме ИИ","AI_SUGGEST_EXPLORE_SUBHEADER":"Узнайте больше по любой теме","AI_SUGGEST_TEXT":"Режим ИИ","AI_SUGGEST_TRY_AI_HEADER":"Попробуйте режим ИИ","ASK_BUTTON_LABEL":"Спросить","ASK_YOUTUBE_SUGGEST_EXPLORE_HEADER":"Попробуйте \"Спросить у YouTube\"","ASK_YOUTUBE_SUGGEST_TEXT":"Спросить YouTube","ASK_YOUTUBE_SUGGEST_TRY_HEADER":"Спросить YouTube","AUDIO_TRACK":"Звуковая дорожка","AUTO_TRANSLATE":"Автоперевод","BACK_ALT_LABEL":"Назад","BACK_ONLINE":"Подключение восстановлено","CANCEL":"Отмена","CAPTION_OFF_TOAST":"Субтитры отключены.","CAPTION_ON_TOAST":"Субтитры включены.","CHARACTER_LIMIT":"Максимальное количество символов – $number.","CHECK_CONNECTION_OR_DOWNLOADS":"Настройте подключение или посмотрите скачанные видео.","CHIP_BAR_ALT_LABEL":"Ещё видео","CLEAR":"Удалить все","CLOSE":"Закрыть","CLOSED_CAPTIONS_DISABLED":"В видео нет субтитров.","CLOSED_CAPTIONS_OFF":"Субтитры отключены.","CLOSED_CAPTIONS_ON":"Субтитры включены.","COMMENTS":"Комментарии","COMMENTS_OFF":"Комментарии отключены","COMMENT_LABEL":"Комментарии","CONNECT_TO_THE_INTERNET":"Нет подключения к Интернету","CONTINUE_WATCHING":"Продолжите просмотр","COPY_LINK_SUCCESS_TOAST":"Ссылка скопирована в буфер обмена.","DELETE":"Удалить","DELETED_PLAYLIST":"Плейлист удален с устройства.","DELETED_VIDEO":"Видео удалено из сохраненных.","DELETE_ALL_DOWNLOADS_PROMPT":"Удалить сохраненные видео?","DELETE_ALL_SECTION_BUTTON":"Удалить все","DELETE_FROM_DOWNLOADS":"Удалить с устройства","DELETE_SECTION_CONFIRMATION_CONFIRM_BUTTON":"Да","DELETE_SECTION_CONFIRMATION_TITLE":{"case1":"Удалить 1 видео?","few":"Удалить # видео?","many":"Удалить # видео?","one":"Удалить # видео?","other":"Удалить # видео?"},"DELETE_VIDEOS_HEADER_BUTTON":"Удалить видео","DELETING_ALL":"Удаляем сохраненные видео…","DISLIKE_LABEL":"Не нравится","DISMISS":"Закрыть","DMA_CONSENT_CONFIRMATION":"Выбранные настройки начнут действовать 6 марта 2024 года. Их можно изменить в любое время в аккаунте Google.","DMA_CONSENT_CONFIRMATION2":"Настройки сохранены. Их всегда можно изменить в аккаунте Google.","DMA_CONSENT_GENERAL_ERROR":"Во время загрузки произошла ошибка.","DMA_CONSENT_RECORD_ERROR":"Не удалось сохранить настройки.","DONE_HEADER_BUTTON":"Готово","DOWNLOAD":"Скачать","DOWNLOADED":"Скачано","DOWNLOADING":"Скачивание…","DOWNLOADING_PERCENT":"Скачано $percent %","DOWNLOADS":"Скачанные","DOWNLOADS_AVAILABILITY":"Чтобы сохранять доступ к скачанным видео, нужно подключаться к интернету не реже, чем раз в 30 дней.","DOWNLOADS_SETTINGS":"Настройки скачивания","DOWNLOAD_AGAIN":"Скачать ещё раз","DOWNLOAD_AGAIN_WHEN_ONLINE":"Скачайте видео снова, когда подключитесь к интернету.","DOWNLOAD_EXPIRED":"Срок хранения видео истек","DOWNLOAD_PAUSED":"Скачивание приостановлено","DOWNLOAD_QUALITY":"Качество скачиваемых видео","DOWNLOAD_UNAVAILABLE":"Это видео недоступно. Попробуйте другое.","DOWNLOAD_UNPLAYABLE":"Видео недоступно офлайн","EDIT_AVATAR_LABEL":"Изменить значок","EDU_GOT_IT":"ОК","END_OF_PLAYLIST":"Последнее видео в плейлисте","ENTER_DATE_OR_EARLIER":"Укажите $allowed_date или более раннюю дату.","ENTER_DATE_OR_LATER":"Укажите $allowed_date или более позднюю дату.","EPHEMERALLine truncated
//# sourceURL=yt-desktop-config.js</script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('lpcf', null, '');}</script><script nonce="7gkCJG7smKJg6D__kv1ttw">window.ytAtP = new Promise(res => window.ytAtN = res); window.addEventListener('DOMContentLoaded', () => {window.ytAtN(); delete window.ytAtN;});</script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/scheduler.vflset/scheduler.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/www-i18n-constants-ru_RU.vflset/www-i18n-constants.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('csl', null, '');}</script><link rel="stylesheet" href="//fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&amp;family=YouTube+Sans:wght@300..900&amp;display=swap" nonce="ZCWAPd2fiJ9XT19T38YX4A"><script name="www-roboto" nonce="7gkCJG7smKJg6D__kv1ttw">if (document.fonts && document.fonts.load) {document.fonts.load("400 10pt Roboto", ""); document.fonts.load("500 10pt Roboto", "");}</script><link rel="stylesheet" href="/s/player/cbcfbf2f/www-player.css" nonce="ZCWAPd2fiJ9XT19T38YX4A"><link rel="stylesheet" href="https://www.youtube.com/s/desktop/dc0b62b0/cssbin/www-main-desktop-watch-page-skeleton.css" nonce="ZCWAPd2fiJ9XT19T38YX4A"><link rel="stylesheet" href="https://www.youtube.com/s/desktop/dc0b62b0/cssbin/www-main-desktop-player-skeleton.css" nonce="ZCWAPd2fiJ9XT19T38YX4A"><link rel="stylesheet" href="https://www.youtube.com/s/desktop/dc0b62b0/cssbin/www-onepick.css" nonce="ZCWAPd2fiJ9XT19T38YX4A"><link rel="stylesheet" href="https://www.youtube.com/s/_/ytmainappweb/_/ss/k=ytmainappweb.base_module_set.nKLHBzEaH2s.L.X.O/am=AAAAQADAEMCe/d=0/rs=AGKMywEcXUR4vHXVIOXY6Wzwoe-Hs003Jg" nonce="ZCWAPd2fiJ9XT19T38YX4A"><style class="global_styles" nonce="ZCWAPd2fiJ9XT19T38YX4A">body{padding:0;margin:0;overflow-y:scroll}body.autoscroll{overflow-y:auto}body.no-scroll{overflow:hidden}body.no-y-scroll{overflow-y:hidden}.hidden{display:none}textarea{--paper-input-container-input_-_white-space:pre-wrap}.grecaptcha-badge{visibility:hidden}</style><style class="masthead_shell" nonce="ZCWAPd2fiJ9XT19T38YX4A">ytd-masthead.shell{background-color:#fff!important;position:fixed;top:0;right:0;left:0;display:-ms-flex;display:-webkit-flex;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:flex;height:56px;-ms-flex-align:center;-webkit-align-items:center;-webkit-box-align:center;-moz-box-align:center;align-items:center}ytd-masthead.shell #menu-icon{margin-left:16px}ytd-app>ytd-masthead.chunked{position:fixed;top:0;width:100%}ytd-masthead.shell.dark,ytd-masthead.shell.theater{background-color:#0f0f0f!important}ytd-masthead.shell.full-window-mode{background-color:#0f0f0f!important;opacity:0;-webkit-transform:translateY(calc(-100% - 5px));transform:translateY(calc(-100% - 5px))}ytd-masthead.shell>:first-child{padding-left:16px}ytd-masthead.shell>:last-child{padding-right:16px}ytd-masthead #masthead-logo{display:-ms-flex;display:-webkit-flex;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:flex}ytd-masthead #masthead-logo #country-code{margin-right:2px}ytd-masthead.shell #yt-logo-red-svg,ytd-masthead.shell #yt-logo-red-updated-svg,ytd-masthead.shell #yt-logo-svg,ytd-masthead.shell #yt-logo-updated-svg{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;margin-left:8px;padding:0;color:#000}ytd-masthead.shell #a11y-skip-nav{display:none}ytd-masthead.shell svg{width:40px;height:40px;padding:8px;margin-right:8px;-moz-box-sizing:border-box;box-sizing:border-box;color:#606060;fill:currentColor}ytd-masthead .external-icon{width:24px;height:24px}ytd-masthead .yt-icons-ext{fill:currentColor;color:#606060}ytd-masthead.shell.dark .yt-icons-ext ytd-masthead.shell.theater .yt-icons-ext{fill:#fff}ytd-masthead svg#yt-logo-svg{width:80px}ytd-masthead svg#yt-logo-red-svg{width:106.4px}ytd-masthead svg#yt-logo-updated-svg{width:90px}ytd-masthead svg#yt-logo-red-updated-svg{width:97px}@media (max-width:656px){ytd-masthead.shell>:first-child{padding-left:8px}ytd-masthead.shell>:last-child{padding-right:8px}ytd-masthead.shell svg{margin-right:0}ytd-masthead #masthead-logo{-ms-flex:1 1 0.000000001px;-webkit-flex:1;-webkit-box-flex:1;-moz-box-flex:1;flex:1;-webkit-flex-basis:0.000000001px;-ms-flex-preferred-size:0.000000001px;flex-basis:0.000000001px}ytd-masthead.shell #yt-logo-red-svg,ytd-masthead.shell #yt-logo-svg{margin-left:4px}}@media (min-width:876px){ytd-masthead #masthead-logo{width:129px}}#masthead-skeleton-icons{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-webkit-justify-content:flex-eLine truncated
ytimg.preload('https:\/\/rr2---sn-hxb54vo-238s.googlevideo.com\/generate_204');ytimg.preload('https:\/\/rr1---sn-ixh7yn7e.c.youtube.com\/generate_204');</script><link rel="canonical" href="undefined"><link rel="alternate" media="handheld" href="https://m.youtube.com/watch?v=5eUL8Z9AFW0"><link rel="alternate" media="only screen and (max-width: 640px)" href="https://m.youtube.com/watch?v=5eUL8Z9AFW0"><title> - YouTube</title><meta name="title" content=""><meta name="description" content="Смотрите любимые видео, слушайте любимые песни, загружайте собственные ролики и делитесь ими с друзьями, близкими и целым миром."><meta name="keywords" content="видео, поделиться, телефон с камерой, телефон с видео, бесплатно, загрузить"><link rel="alternate" href="android-app://com.google.android.youtube/http/www.youtube.com/watch?v=5eUL8Z9AFW0"><link rel="alternate" href="ios-app://544007664/vnd.youtube/www.youtube.com/watch?v=5eUL8Z9AFW0"></head><body dir="ltr" no-y-overflow><script nonce="7gkCJG7smKJg6D__kv1ttw">var ytInitialPlayerResponse = {"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"is_viewed_live","value":"False"},{"key":"logged_in","value":"0"},{"key":"visitor_data","value":"Cgs3aER0a0g0RmI2ayjWs_3WBjIKCgJSVRIEGgAgImKyAgqvAkN1QUJDQVVTa2dFQjhRWnVaaDdiVkg0SE81RlZWMTNuRy10Q3VMNnctWmxzYUNkbUF4NHFadjhsWERTOXNsSGZOdWdMU2lIRmZHbmdlZVhHaXM5cUNfc0xLdGlLZjVoSmVfV2hPZFVrTXg3Vm9Mc2N2eDJJTndpcFdTd0Q1MmtMTnNZNm5EbnhJenpNMHgyNW14Yl9JVjlPZW9jUFNDdnBHN0dudFRTU3JtT2IzckhHeWNjZVZaY2dDZ0Z1ZW5NLXJKcE9MQ3hteHZXNVN5Z0ZNa1VCM3FtZFQ2UXlIMUo1QVF2Qk5JaTZYT1RTX3JRYmpRM3VoWC1WYk5zVzNETzYtRHJfUWVQRGhlcERVZjFQMEVFNEpjaVV4XzhoSE02aGt5SE41MEJfU1hTYzRnNA%3D%3D"}]},{"service":"CSI","params":[{"key":"c","value":"WEB"},{"key":"cver","value":"2.20261023.01.00"},{"key":"yt_li","value":"0"},{"key":"GetPlayer_rid","value":"0x1248daf5bdd30e48"}]},{"service":"GUIDED_HELP","params":[{"key":"logged_in","value":"0"}]},{"service":"ECATCHER","params":[{"key":"client.version","value":"2.20261023"},{"key":"client.name","value":"WEB"}]}],"maxAgeSeconds":0,"mainAppWebResponseContext":{"loggedOut":true,"trackingParam":"k5_fmPxhoXZRzGpkoJmTWRio4P5_nLFPEZS0SkZzk8cEs0hYsV-gsG7kbzRMkuMYNLBwOcCw59TLtslLKPQGSS"},"responseId":"IhMIpZS9hOnXlwMV69DKAB2w-ADt","webResponseContextExtensionData":{"webResponseContextPreloadData":{"preloadMessageNames":["playerInterstitialRenderer","interstitialViewModel"]},"hasDecorated":true}},"playabilityStatus":{"status":"ERROR","reason":"Видео недоступно","errorScreen":{"playerInterstitialRenderer":{"content":{"interstitialViewModel":{"title":{"content":"Видео недоступно"},"description":{"content":"Видео недоступно"},"loggingDirectives":{"trackingParams":"CAEQ4NYUIhMIpZS9hOnXlwMV69DKAB2w-ADt","visibility":{"types":"12"}}}},"stateEntityStoreKey":""}},"contextParams":"Q0FBU0FnZ0E="},"trackingParams":"CAAQu2kiEwillL2E6deXAxXr0MoAHbD4AO3KAQSCWkt0","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"Eg0KCzVlVUw4WjlBRlcwIPYBKAE%3D","type":"ENTITY_MUTATION_TYPE_REPLACE","payload":{"offlineabilityEntity":{"key":"Eg0KCzVlVUw4WjlBRlcwIPYBKAE%3D","addToOfflineButtonState":"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}}}],"timestamp":{"seconds":"1793022422","nanos":396212014}}}};</script><div id="player" class="skeleton flexy"><div id="player-wrap"><div id=player&#45;placeholder style="background-image: url('https://i.ytimg.com/vi/5eUL8Z9AFW0/hqdefault.jpg');" class=""></div><div id=player&#45;api class="round "></div></div></div><script nonce="7gkCJG7smKJg6D__kv1ttw">(function(){'use strict';/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var f=this||self;function g(a,c){a=a.split(".");for(var b=f,d;a.length&&(d=a.shift());)a.length||c===void 0?b[d]&&b[d]!==Object.prototype[d]?b=b[d]:b=b[d]={}:b[d]=c}
;function k(a,c){this.width=a;this.height=c}
k.prototype.aspectRatio=function(){return this.width/this.height};
k.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
k.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
k.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function l(a){typeof a=="number"&&(a=Math.round(a)+"px");return a}
;var m=f.window,p,q,r=(m==null?void 0:(p=m.yt)==null?void 0:p.config_)||(m==null?void 0:(q=m.ytcfg)==null?void 0:q.data_)||{};g("yt.config_",r);function t(a){a=u(a);return typeof a==="string"&&a==="false"?!1:!!a}
function u(a,c){var b={};a=("EXPERIMENT_FLAGS"in r?r.EXPERIMENT_FLAGS:b)[a];return a!==void 0?a:c}
;var v=Number(u("kevlar_watch_page_horizontal_margin",24)||0),w=Number(u("kevlar_watch_page_columns_top_padding",24)||0),x=426+v*2,y=Number(u("kevlar_watch_two_column_width_threshold",1E3)||0),z=v*2,A=Number(u("kevlar_watch_secondary_width",402)||0),B=Number(u("kevlar_watch_max_player_width",1280)||0),C=t("web_side_rail_with_border")?77:64,D=Number(u("kevlar_watch_flexy_metadata_height",136)||0);
function E(a,c,b){b=b===void 0?!1:b;var d=d===void 0?!1:d;var e=Math.max(a.width,x);e=a.width>=y?e-(z+A+v+((d===void 0?0:d)?C:0)):e-z;e=Math.min(e,B);var n=Math.min(e*c,a.height-(56+w+D)),h=240;(b===void 0?0:b)&&(h=380);c<.5624||(!t("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=y&&a.width<1327)?h=360:!t("kevlar_watch_flexy_disable_large_window_sizing")&&a.height>=630&&a.width>=1327&&(h=480));(d===void 0?0:d)&&a.width>=y&&(h-=C/2*c);n=Math.max(n,
h);c<1?e=n/c:a.width>=y&&(e=E(a,.5625,b).width);return new k(Math.round(e),Math.round(n))}
function F(a){if(a){var c=.5625,b=a.querySelector(".html5-video-player");b&&typeof b.getVideoAspectRatio==="function"&&(c=1/b.getVideoAspectRatio());b=window.document;b=b.compatMode=="CSS1Compat"?b.documentElement:b.body;c=E(new k(b.clientWidth,b.clientHeight),c);if(c instanceof k)b=c.height,c=c.width;else throw Error("missing height argument");a.style.width=l(c);a.style.height=l(b)}}
;g("yt.flexy.setPlayerlikeElementSize",F);t("desktop_delay_player_resizing")||F(document.querySelector("#player.skeleton #player-api"));}).call(this);
</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function ytSetPlayerSize() {var element = document.querySelector('#player-placeholder'); if (yt && yt.flexy && yt.flexy.setPlayerlikeElementSize && typeof yt.flexy.setPlayerlikeElementSize === 'function') {yt.flexy.setPlayerlikeElementSize(element);}})();//# sourceURL=yt-desktop-set-player-size.js</script><div id="watch-page-skeleton" class="watch-skeleton "><div id="container"><div id="related"><div class="autoplay skeleton-light-border-bottom"><div id="upnext" class="skeleton-bg-color"></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div><div class="video-skeleton"><div class="video-details"><div class="thumbnail skeleton-bg-color"></div><div class="details flex-1"><div class="video-title text-shell skeleton-bg-color"></div><div class="video-meta text-shell skeleton-bg-color"></div></div></div></div></div><div id="info-container"><div id="primary-info" class="skeleton-light-border-bottom"><div id="title" class="text-shell skeleton-bg-color"></div><div id="info"><div id="count" class="text-shell skeleton-bg-color"></div><div class="flex-1"></div><div id="menu"><div class="menu-button skeleton-bg-color"></div><div class="menu-button skeleton-bg-color"></div><div class="menu-button skeleton-bg-color"></div><div class="menu-button skeleton-bg-color"></div><div class="menu-button skeleton-bg-color"></div></div></div></div><div id="secondary-info" class="skeleton-light-border-bottom"><div id="top-row"><div id="video-owner" class="flex-1"><div id="channel-icon" class="skeleton-bg-color"></div><div id="upload-info" class="flex-1"><div id="owner-name" class="text-shell skeleton-bg-color"></div><div id="published-date" class="text-shell skeleton-bg-color"></div></div></div><div id="subscribe-button" class="skeleton-bg-color"></div></div></div></div></div></div><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('gcc', null, '');}</script><script src="/s/player/cbcfbf2f/player_ias.vflset/ru_RU/base.js" name="player/base" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function ytRemovePlayerPlaceholder() {var element = document.querySelector('#player-placeholder'); if (element && element.remove && typeof element.remove === 'function') {element.remove();}})();//# sourceURL=yt-desktop-remove-placeholder.js</script><script nonce="7gkCJG7smKJg6D__kv1ttw">window.ytplayer = window.ytplayer || {}; window.ytplayer.bootstrapPlayerContainer = document.getElementById('player-api'); window.ytplayer.bootstrapWebPlayerContextConfig = window.yt && window.yt.config_ && window.yt.config_.WEB_PLAYER_CONTEXT_CONFIGLine truncated
window.ytplayer.config,window.ytplayer.bootstrapWebPlayerContextConfig);window.pis="initialized"}}})();ytplayer.load=function(){throw new Error("Unexpected call to ytplayer.load.");};
</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function ytSetPlayerSize() {var element = document.querySelector('#player-api'); if (yt && yt.flexy && yt.flexy.setPlayerlikeElementSize && typeof yt.flexy.setPlayerlikeElementSize === 'function') {yt.flexy.setPlayerlikeElementSize(element);}})();//# sourceURL=yt-desktop-set-player-size.js</script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/spf.vflset/spf.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script nonce="7gkCJG7smKJg6D__kv1ttw">if(window["_spf_state"])window["_spf_state"].config={"assume-all-json-requests-chunked":true};
//# sourceURL=yt-desktop-spf-config.js</script><script src="https://www.youtube.com/s/desktop/dc0b62b0/jsbin/network.vflset/network.js" nonce="7gkCJG7smKJg6D__kv1ttw"></script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('bs', null, '');}</script><script nonce="7gkCJG7smKJg6D__kv1ttw">ytcfg.set('initialBodyClientWidth', document.body.clientWidth);//# sourceURL=yt-desktop-body-width.js</script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('ai', null, '');}</script><iframe name="passive_signin" src="https://accounts.google.com/ServiceLogin?service=youtube&amp;uilel=3&amp;passive=true&amp;continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Dru%26next%3D%252Fsignin_passive%26feature%3Dpassive&amp;hl=ru" style="display: none"></iframe><ytd-app disable-upgrade="true"><ytd-masthead id="masthead" logo-type="YOUTUBE_LOGO" slot="masthead" class="shell chunked" disable-upgrade="true"><div id="search-container" class="ytd-searchbox-spt" slot="search-container"></div><div id="search-input" class="ytd-searchbox-spt" slot="search-input"><input id="search" autocapitalize="none" autocomplete="off" autocorrect="off" hidden name="search_query" tabindex="0" type="text" spellcheck="false"></div><svg id="menu-icon" class="external-icon" preserveAspectRatio="xMidYMid meet"><g id="menu" class="yt-icons-ext" viewBox="0 0 24 24"><path d="M21,6H3V5h18V6z M21,11H3v1h18V11z M21,17H3v1h18V17z"/></g></svg><div id="masthead-logo" slot="masthead-logo"><a style="display: none;" href="/" title="YouTube"><svg xmlns="http://www.w3.org/2000/svg" id="yt-ringo2-svg" width="93" height="20" viewBox="0 0 93 20"><g><path d="M14.4848 20C14.4848 20 23.5695 20 25.8229 19.4C27.0917 19.06 28.0459 18.08 28.3808 16.87C29 14.65 29 9.98 29 9.98C29 9.98 29 5.34 28.3808 3.14C28.0459 1.9 27.0917 0.94 25.8229 0.61C23.5695 0 14.4848 0 14.4848 0C14.4848 0 5.42037 0 3.17711 0.61C1.9286 0.94 0.954148 1.9 0.59888 3.14C0 5.34 0 9.98 0 9.98C0 9.98 0 14.65 0.59888 16.87C0.954148 18.08 1.9286 19.06 3.17711 19.4C5.42037 20 14.4848 20 14.4848 20Z" fill="#FF0033"/><path d="M19 10L11.5 5.75V14.25L19 10Z" fill="white"/></g><g id="youtube-paths"><path d="M37.1384 18.8999V13.4399L40.6084 2.09994H38.0184L36.6984 7.24994C36.3984 8.42994 36.1284 9.65994 35.9284 10.7999H35.7684C35.6584 9.79994 35.3384 8.48994 35.0184 7.22994L33.7384 2.09994H31.1484L34.5684 13.4399V18.8999H37.1384Z"/><path d="M44.1003 6.29994C41.0703 6.29994 40.0303 8.04994 40.0303 11.8199V13.6099C40.0303 16.9899 40.6803 19.1099 44.0403 19.1099C47.3503 19.1099 48.0603 17.0899 48.0603 13.6099V11.8199C48.0603 8.44994 47.3803 6.29994 44.1003 6.29994ZM45.3903 14.7199C45.3903 16.3599 45.1003 17.3899 44.0503 17.3899C43.0203 17.3899 42.7303 16.3499 42.7303 14.7199V10.6799C42.7303 9.27994 42.9303 8.02994 44.0503 8.02994C45.2303 8.02994 45.3903 9.34994 45.3903 10.6799V14.7199Z"/><path d="M52.2713 19.0899C53.7313 19.0899 54.6413 18.4799 55.3913 17.3799H55.5013L55.6113 18.8999H57.6012V6.53994H54.9613V16.4699C54.6812 16.9599 54.0312 17.3199 53.4212 17.3199C52.6512 17.3199 52.4113 16.7099 52.4113 15.6899V6.53994H49.7812V15.8099C49.7812 17.8199 50.3613 19.0899 52.2713 19.0899Z"/><path d="M62.8261 18.8999V4.14994H65.8661V2.09994H57.1761V4.14994H60.2161V18.8999H62.8261Z"/><path d="M67.8728 19.0899C69.3328 19.0899 70.2428 18.4799 70.9928 17.3799H71.1028L71.2128 18.8999H73.2028V6.53994H70.5628V16.4699C70.2828 16.9599 69.6328 17.3199 69.0228 17.3199C68.2528 17.3199 68.0128 16.7099 68.0128 15.6899V6.53994H65.3828V15.8099C65.3828 17.8199 65.9628 19.0899 67.8728 19.0899Z"/><path d="M80.6744 6.26994C79.3944 6.26994 78.4744 6.82994 77.8644 7.73994H77.7344C77.8144 6.53994 77.8744 5.51994 77.8744 4.70994V1.43994H75.3244L75.3144 12.1799L75.3244 18.8999H77.5444L77.7344 17.6999H77.8044C78.3944 18.5099 79.3044 19.0199 80.5144 19.0199C82.5244 19.0199 83.3844 17.2899 83.3844 13.6099V11.6999C83.3844 8.25994 82.9944 6.26994 80.6744 6.26994ZM80.7644 13.6099C80.7644 15.9099 80.4244 17.2799 79.3544 17.2799C78.8544 17.2799 78.1644 17.0399 77.8544 16.5899V9.23994C78.1244 8.53994 78.7244 8.02994 79.3944 8.02994C80.4744 8.02994 80.7644 9.33994 80.7644 11.7299V13.6099Z"/><path d="M92.6517 11.4999C92.6517 8.51994 92.3517 6.30994 88.9217 6.30994C85.6917 6.30994 84.9717 8.45994 84.9717 11.6199V13.7899C84.9717 16.8699 85.6317 19.1099 88.8417 19.1099C91.3817 19.1099 92.6917 17.8399 92.5417 15.3799L90.2917 15.2599C90.2617 16.7799 89.9117 17.3999 88.9017 17.3999C87.6317 17.3999 87.5717 16.1899 87.5717 14.3899V13.5499H92.6517V11.4999ZM88.8617 7.96994C90.0817 7.96994 90.1717 9.11994 90.1717 11.0699V12.0799H87.5717V11.0699C87.5717 9.13994 87.6517 7.96994 88.8617 7.96994Z"/></g></svg></a><a style="display: none;" href="/" title="YouTube"><svg xmlns="http://www.w3.org/2000/svg" id="yt-ringo2-red-svg" class="external-icon" width="101" height="20" viewBox="0 0 101 20"><g><path d="M14.4848 20C14.4848 20 23.5695 20 25.8229 19.4C27.0917 19.06 28.0459 18.08 28.3808 1Line truncated
"async_attach_app_loader.js",0,0,new Error("ytsignals missing"))}};var appLoad=function(){var ytcsi=window.ytcsi;if(ytcsi)ytcsi.tick("apa_b");var appEl=document.querySelector("ytd-app");var mastheadEl=appEl&&appEl.querySelector("ytd-masthead");if(mastheadEl)mastheadEl.removeAttribute("disable-upgrade");if(appEl)appEl.removeAttribute("disable-upgrade");if(ytcsi)ytcsi.tick("apa_a")};var ytSignals=window["ytsignals"];if(ytSignals)scheduleAppLoad();else window.addEventListener("script-load-dpj",scheduleAppLoad);
</script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {window.ytcsi.tick('ac', null, '');}</script><script nonce="7gkCJG7smKJg6D__kv1ttw">var onPolymerReady = function(e) {window.removeEventListener('script-load-dpj', onPolymerReady);if (window.ytcsi) {window.ytcsi.tick('apr', null, '');}}; if (window.Polymer && Polymer.RenderStatus) {onPolymerReady();} else {window.addEventListener('script-load-dpj', onPolymerReady);}//# sourceURL=yt-desktop-ready.js</script><script nonce="7gkCJG7smKJg6D__kv1ttw">(function() {if (window.ytAtN) {window.ytAtN({'R': '\x7b\x22responseContext\x22:\x7b\x22serviceTrackingParams\x22:\x5b\x7b\x22service\x22:\x22CSI\x22,\x22params\x22:\x5b\x7b\x22key\x22:\x22c\x22,\x22value\x22:\x22WEB\x22\x7d,\x7b\x22key\x22:\x22cver\x22,\x22value\x22:\x222.20261023.01.00\x22\x7d,\x7b\x22key\x22:\x22yt_li\x22,\x22value\x22:\x220\x22\x7d,\x7b\x22key\x22:\x22GetAttestationChallenge_rid\x22,\x22value\x22:\x220x1248daf5bdd30e48\x22\x7d\x5d\x7d,\x7b\x22service\x22:\x22GFEEDBACK\x22,\x22params\x22:\x5b\x7b\x22key\x22:\x22logged_in\x22,\x22value\x22:\x220\x22\x7d,\x7b\x22key\x22:\x22visitor_data\x22,\x22value\x22:\x22Cgs3aER0a0g0RmI2ayjWs_3WBjIKCgJSVRIEGgAgImKyAgqvAkN1QUJDQVVTa2dFQjhRWnVaaDdiVkg0SE81RlZWMTNuRy10Q3VMNnctWmxzYUNkbUF4NHFadjhsWERTOXNsSGZOdWdMU2lIRmZHbmdlZVhHaXM5cUNfc0xLdGlLZjVoSmVfV2hPZFVrTXg3Vm9Mc2N2eDJJTndpcFdTd0Q1MmtMTnNZNm5EbnhJenpNMHgyNW14Yl9JVjlPZW9jUFNDdnBHN0dudFRTU3JtT2IzckhHeWNjZVZaY2dDZ0Z1ZW5NLXJKcE9MQ3hteHZXNVN5Z0ZNa1VCM3FtZFQ2UXlIMUo1QVF2Qk5JaTZYT1RTX3JRYmpRM3VoWC1WYk5zVzNETzYtRHJfUWVQRGhlcERVZjFQMEVFNEpjaVV4XzhoSE02aGt5SE41MEJfU1hTYzRnNA%3D%3D\x22\x7d\x5d\x7d,\x7b\x22service\x22:\x22GUIDED_HELP\x22,\x22params\x22:\x5b\x7b\x22key\x22:\x22logged_in\x22,\x22value\x22:\x220\x22\x7d\x5d\x7d,\x7b\x22service\x22:\x22ECATCHER\x22,\x22params\x22:\x5b\x7b\x22key\x22:\x22client.version\x22,\x22value\x22:\x222.20261023\x22\x7d,\x7b\x22key\x22:\x22client.name\x22,\x22value\x22:\x22WEB\x22\x7d\x5d\x7d\x5d,\x22mainAppWebResponseContext\x22:\x7b\x22loggedOut\x22:true\x7d,\x22responseId\x22:\x22IhMIz6G-hOnXlwMVNdNPCB1OFR6R\x22,\x22webResponseContextExtensionData\x22:\x7b\x22hasDecorated\x22:true\x7d\x7d,\x22challenge\x22:\x22a\x3d6\\u0026a2\x3d10\\u0026b\x3dQMyz6EhXIPWMRWuqcRedFW57E3c\\u0026c\x3d1793022422\\u0026d\x3d1\\u0026t\x3d21600\\u0026c1a\x3d1\\u0026c6a\x3d1\\u0026c6b\x3d1\\u0026mv\x3d8\\u0026mt\x3d0.11\\u0026hh\x3dBR0V6qOvWLgBOo1bTw_2yZDwRD61eOFOFSo1NcubcG4\x22,\x22bgChallenge\x22:\x7b\x22interpreterUrl\x22:\x7b\x22privateDoNotAccessOrElseTrustedResourceUrlWrappedValue\x22:\x22\/\/www.google.com\/js\/th\/av_fZ4Ixfse5Dxw05AlxKON_MkgppZCsjbF7vWbgnRU.js\x22\x7d,\x22interpreterHash\x22:\x22av_fZ4Ixfse5Dxw05AlxKON_MkgppZCsjbF7vWbgnRU\x22,\x22program\x22:\x22RolxzEBGCi1sdaEL2e3r7T0M4l\/HzoFhLcJCiTPB4vnGl5B3BaNMvcF7yvCnRlqUEn8Y7p76UMukRiWR84Rxh8sDCzHwjomT51njuOE4OLW+QK2D3qBqR\/skDPnH36DKav\/U9Ou\/HhDnwy697k8NeLNqe8KgbijbfgjHLQKhQApR7R+BLsIVxmQ6G8iO4B5Fe1awPTjo\/iArZX68s5wJtqgmtTJLWDO0+BfisVLy2zWsAZIM21jdBAUNaG+qgxtGSqtWlWj27Tntqjsagt7IU92U7Ua3eRX503B7sIFYtiuKjyl6hBdsUtsbxrTdS\/OpZ6FJviIm0gQLKxr\/ivxIP0GYrQKEM9MrxOtJwIfWx7zAPIRAv0IZToEJfksm+AKHAuiuefRGIFW1as++NMOsdY9ogEnT+RErQgxmXDgtww\/J546qh1G8b2YSY5Ubvygm+sAeDySNvaXYV\/LxEDHaKNlqNrPXTfd8xGIhD+jyX9wktWTHVmG\/9P6Dysd5c2ZP2qvmDT3HXqPT2e0zxgJ+2Iz0RYqFU3NulmnKpg1a5W6fB++Ay0Xy6NNN4fGEkJNvzekZeHvNab\/yeiQL4euYPtAZnRHEm0mZYEl3LagsPJaIjm+WOk\/lq1KsryQQiENmsMPkstd3a1CVltvWBeI0jR9SLr3mVGgwTWKCqyVVG7eHFd800D4n5yaUzYnlldFozUTOka+hWRWWLSEEHOMG+WF8coxk0MDVxG5ddo1OmK+dpSsOsoFSm6hRxxEDLDm8A9UaMuxygimJ39lGkXJxA14wDyE526ek5Xdj5gcP7GGFxiKlIC04f04Q\/pRQ3\/64R7DZfWo+lv9vuUOZo8UHqctr+dYrfCMkCSVxc5UJtHbl92su3pI5R2ZtocxP2EiALy47WzJG9cEeOnM3iPjW1t+OBv8XrYWUy+VllUaN7cqOAPWRS5OuiauNxhP09VGuUCoro1bWS8DigLIe9oqDmnaG0vvfDds82yibqsTC4yalsFlAhaf3v0esZ1PsmleSkHf+FROEibWKHfL9RrJSTmTAvSZKuo6V3j0G5unB0VPCnubDYxK2ucP0sk+UWz+3AZqqeEk9UsX4nPQVQSGE0lBJS8qOXYdnC50ZkBI4VgSAAzuObJLMXL5PNfUpK+chGyZv4l0DGADblx0XTsWOWC2IWaEYAkXA6JxkH6LhaCsL6hjIa\/G5XtBFKCGMzOZ4FveTfoVmTz9EguG6J5kgVxZGW047NQyeY+2MkurPG4guKo8Xe9NO4BtUMQ9KB9sBfWNlZrHkWH2ExlWcLdaC8arBh9ZLveXt7AyBYogMUGJmkmt6tzdPXSjt9Rrf6UJTgDFXFQBaRfj8yVsnqHm92Atsy2OioynFtNuWU4seygjYz2bP1wa7sljAOJyqxrGOe2vvaUlr8cOVJvr5SSyJ7KwbNuQsTz+thtYWLfXSztKuwkJrAgMmMCBsrSNY094wncIzmGPhQEMK7Mfq5lOLqLMFrPZKlmj3bV3B\/aOy\/srKwUejIAVqzDgPybhRRbx0N7RH5L4Kr9gqC5IRpzN4XZ6IxhL1JsnPZ3QJONjkE2BzrN5vnuy+w0ExheIY0eQVJ14Gs9sGC28hFv8Jojk4dvBz9MV81YlX9GvDe3O8XXTDLDdYtwzHOZYmCZBzaGd5foOmMRffZQX0ncw1EsC+xtgTpmCrdqCWwmaeUQziyJTp99kQ\/xkhrHOvN1X0l+YhVY4pG+Nc93\/QOm8QM8v8QdPRB+s4wwX0oudJk9wBT5E0m52vfRlnlfjI0b3bPdSRGCvHbWFOE6CcyGo+7BYKwiqIOLsKtjD0yhRSPTcqyZgKpIrLwlYDnsMDhflzrfOUvkNO1vwI+hBxDu7FUoGB\/QZuftaujID2MjFthFRoSLNWpWY+NQryGscmU8NphCJiRY4D9bRXNO40nqPbmXLTFOebBG\/z5Ev+4qmc4+tZ9Ab2Mppzq5nl\/177wy2B6fVAe881Zb3yFcWAgxjin33cd86v9+xTzfw7kkDKpkTymikZfTuHnjXRL10e3G9V7ToTkqbqvdY0bst5+0kIcJlQh1sEtdoJ140qdjq7y\/ZqHspyJXpoNx7Upn8q7IHBYvNTdVTWf4nM\/g7Fq1jle07dNoTKmPpQwLulDkh8Xg+VPBE4kyCYTmZ6lsSYhsewfoBWRTLsbPfvFXWfavng7+zkEu9uxY+pLBsb2WpuayTKqLgtqsl4mcB04qSk0rEbTnarusCLine truncated
(function(e,c,l,f,g,h,k){var d=window;d.getInitialData=function(){var b=window;b.ytcsi&&b.ytcsi.tick("pr",null,"");b={page:e,endpoint:c,response:l};f&&(b.playerResponse=f);g&&(b.reelWatchSequenceResponse=g);k&&(b.url=k);h&&(b.previousCsn=h);return b};d.loadInitialData&&d.loadInitialData(d.getInitialData())})(a.ytPageType,a.ytCommand,a.ytInitialData,a.ytInitialPlayerResponse,a.ytInitialReelWatchSequenceResponse,a.ytPreviousCsn,a.ytUrl);
})();</script><script nonce="7gkCJG7smKJg6D__kv1ttw">ytcfg.set({"CSI_SERVICE_NAME": 'youtube', "TIMING_INFO": {"GetPlayer_rid": '0x1248daf5bdd30e48',}})</script><script nonce="7gkCJG7smKJg6D__kv1ttw">if (window.ytcsi) {ytcsi.infoGel({serverTimeMs: 114.0 }, '');}</script></body></html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,737 @@
<!DOCTYPE html>
<html
lang="en"
data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"
data-a11y-animated-images="system" data-a11y-link-underlines="true"
data-css-features="site_disable_smooth_scrolling"
>
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
<link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
<link rel="preconnect" href="https://github.githubassets.com" crossorigin>
<link rel="preconnect" href="https://avatars.githubusercontent.com">
<script type="importmap">{"imports":{"react":"https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js","react-dom":"https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js","react-dom/client":"https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js","react-is":"https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js","react-reconciler":"https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js","react/compiler-runtime":"https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js","react/jsx-dev-runtime":"https://github.githubassets.com/assets/react-jsx-dev-runtime-ea55d68667d559e5.js","react/jsx-runtime":"https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js","scheduler":"https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js"}}</script>
<meta name="react-profiling" content="0" data-turbo-transient="true" />
<meta name="react-import-map" content="react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf" data-turbo-track="reload" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-fa5e2e82e6e0ecc0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-c7f52540bb6b77ed.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-client-35b308126995de85.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="light" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light-3a3d2c708970e4e8.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-9c7b506bdc5ea73f.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-3862d92e8cad06f0.css" /><link data-color-theme="light_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind_high_contrast-554f83c57e146400.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-8a8312bd5594c79a.css" /><link data-color-theme="light_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia_high_contrast-26b9d9807a0334fb.css" /><link data-color-theme="dark" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark-c9dacb4ec19616db.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-5ef38214a3eabc7d.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-bea0b289618fbfb6.css" /><link data-color-theme="dark_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind_high_contrast-fe483dca5ad67edd.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-7d4b8c531c77a24a.css" /><link data-color-theme="dark_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia_high_contrast-edfb3968733aaf25.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-1f24e8126354e7aa.css" /><link data-color-theme="dark_dimmed_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed_high_contrast-bb55737dcb13dc9b.css" />
<style type="text/css">
:root {
--tab-size-preference: 4;
}
pre, code {
tab-size: var(--tab-size-preference);
}
</style>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-02e066689466a8cd.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-38ae573fa780d76a.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-b577b4b65d1381c3.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-11ab453cdcc1b7c1.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-542ca59b4b92999d.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-b25a4886e30e3e5f.css" />
<script type="application/json" id="client-env">{"locale":"en","featureFlags":["actions_enable_background_steps","actions_new_hosted_runner_image_select_sizes_and_versions","actions_runners_react_view","actions_workflows_react_toggle","agent_author_search_expansion","agent_author_search_expansion_ui_pulls","ahp_v1_wire_protocol","alternate_user_config_repo","billing_billable_licenses_cost_center_bucket_fix","billing_budget_expiration","billing_cost_center_list_assigned_resources","billing_discount_threshold_notification","code_quality_enablement_banner_targeting","code_quality_remove_preview","code_scanning_ai_scan_button_v2","code_view_raf_sticky_lines","code_view_skip_unchanged_wrap_preference","codespaces_prebuild_region_target_update","coding_agent_third_party_model_ui","collab_docs_authorization","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_automation_continuous_history","copilot_automation_repo_mcp_servers","copilot_automations_pagination","copilot_background_shell_workbench","copilot_base_model_policy_row","copilot_chat_auto_mode_v2","copilot_chat_clear_model_selection_for_default_change","copilot_chat_persist_session_drafts","copilot_chat_vision_dotcom_chat_ga_gate","copilot_css_textarea_autosize","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_removal_on_marketplace","copilot_fix_failed_workflows_all_skus","copilot_hide_hovercard","copilot_immersive_task_hyperlinking","copilot_managed_settings_validation_file_links","copilot_mc_cli_resume_any_users_task","copilot_mission_control_agent_merge_feedback","copilot_mission_control_agent_merge_fix_ci","copilot_mission_control_agent_merge_resolve_conflicts","copilot_mission_control_agents_repository_task_detail","copilot_mission_control_agents_task_detail","copilot_mission_control_ahp_diff","copilot_mission_control_ahp_diff_workbench","copilot_mission_control_ahp_local_images","copilot_mission_control_awps_batching","copilot_mission_control_create_pull_request_client_tool","copilot_mission_control_early_stop","copilot_mission_control_environment_task_destination_startup","copilot_mission_control_environments_web_kickoff","copilot_mission_control_independent_mode_controls","copilot_mission_control_needs_attention","copilot_mission_control_pinned_tasks","copilot_mission_control_reasoning_effort","copilot_mission_control_reserved_sandbox_tasks","copilot_mission_control_reuse_project_workspace","copilot_mission_control_session_client_attribution","copilot_mission_control_session_metadata","copilot_mission_control_setup_steps_timing","copilot_mission_control_sticky_header","copilot_mission_control_task_alive_updates","copilot_mission_control_task_sharing","copilot_mission_control_use_api_gateway","copilot_org_policy_page_focus_mode","copilot_policy_ui_refresh","copilot_pr_chat_thread_persistence","copilot_quick_chat_default_chat_scope","copilot_quick_chat_project_sessions","copilot_quick_chat_recent_artifact_sessions","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_swe_agent_authorization_status_ui","copilot_swe_agent_automation_resource_scoped_writes","copilot_swe_agent_code_scanning_alert_trigger","copilot_swe_agent_dependabot_alert_trigger","copilot_swe_agent_discussion_comment_trigger","copilot_swe_agent_discussion_opened_trigger","copilot_swe_agent_discussion_updated_trigger","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_issue_assigned_trigger","copilot_swe_agent_issue_closed_trigger","copilot_swe_agent_issue_comment_trigger","copilot_swe_agent_issue_labeled_trigger","copilot_swe_agent_issue_reopened_trigger","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_pull_request_assigned_trigger","copilot_swe_agent_pull_request_closed_trigger","copilot_swe_agent_pull_request_comment_trigger","copilot_swe_agent_pull_request_converted_to_draft_trigger","copilot_swe_agent_pull_request_labeled_trigger","copilot_swe_agent_pull_request_merged_trigger","copilot_swe_agent_pull_request_opened_trigger","copilot_swe_agent_pull_request_ready_for_review_trigger","copilot_swe_agent_pull_request_reopened_trigger","copilot_swe_agent_pull_request_review_dismissed_trigger","copilot_swe_agent_pull_request_review_requested_trigger","copilot_swe_agent_pull_request_review_submitted_trigger","copilot_swe_agent_pull_request_review_thread_resolved_trigger","copilot_swe_agent_pull_request_review_thread_unresolved_trigger","copilot_swe_agent_pull_request_synchronize_trigger","copilot_swe_agent_secret_scanning_alert_trigger","copilot_swe_agent_sub_issue_added_trigger","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_task_scoped_alive_channel","copilot_token_based_billing","copilot_unconfigured_is_inherited","copilot_user_can_upgrade_plan_field","copilot_workbench_sunset_redirect","dashboard_agents_module_auth_token_check","fgpat_permissions_selector_redesign","glc_code_qualitLine truncated
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/high-contrast-cookie-141c17800ca6ba23.js"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wp-runtime-9bb558fd60393eac.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-foundation-799625033ee8341e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-runtime-24d1e3019d231636.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fetch-utilities-27ed50f7568a5f72.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ser-2defe2918d9c9884.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/environment-1cd4523d735f12f8.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-runtime.47c2032941ed0c3c.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/catalyst-5bc36fa5a846f5a0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/selector-observer-7ae05416e4a383ae.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/relative-time-element-a7b7e0f1360ca8f9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/by4-04f0d28829dc4df0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ja9-b94de714266ba389.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3h2-5f8899065b81d778.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t2-19741658de225445.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z8j-d8f6fa7339115370.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hjg-55b6d77c48226433.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wc-9718c61e184d7417.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/github-elements-300dc3b16544fdde.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/element-registry-53c2c2b92a4c8753.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/runtime-helpers-26f2970b9e869a17.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aria-live-e0f60f15396869e3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hotkey-a82e6cb07443fd1c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-core-64258d9ba65c8c5a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cc-99eedace671eb2b6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/urv-453c749eec9d7d37.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4t-f1181f796eb9ea15.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pb0-3a1794e99794195c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6n-e6e586acca87c769.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z-b2cf9f86cb4bed3b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9k-9938b9e1b5d2f0d0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0r-4a2b771052825f69.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ow-98d10140e8228c74.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mv-2c0d46e691479ec1.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eou-b91079b9ea7074de.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eon-36af335a1906af16.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/yga-dd50cf95593467fe.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/behaviors-e454b1001b1685dd.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/react-core.c2407ba3ce2b1978.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/n9-369bc13c0e8c5584.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/codespaces-4b099cf46c8ef081.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/liv-7ba64ac238bca0a9.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/repositories-24a38d4d8ca9d84c.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-menu-07478b06306b30b8.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/primer-react-911369ee234690ef.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/nc-28ebfc8e58bca42f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qmp-308230626a2aedb0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/to-b501df3e06c1799a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t7l-423469c05c948a8b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4u-bf6e08201764cb0a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/s07-527b0afa5c76403e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fe-f8365f29462c346a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zd-61606dd1c14634aa.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/7v5-d77d961bce5db1f3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/15-627ae2a5640b1bab.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5w-452c3a937483ff49.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/la-27ea91f01fa7ffcf.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/y0-02339f2a1b7b69ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t9-28dc4f6af25a5400.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/20-c4fa69654eec9c7a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a68-c67bfbb035a5cd79.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3s-ebbc335534e40b2a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cnq-00f06287d057a2b3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gw-4bf343b417f9ec19.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0-8683d136d595e7ee.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jn-9c45b198d99a47c8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/q6j-256bc816dd682a0f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fn-a24b6dda102e437d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/i2-5e26ac37ee961d06.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/b2-35e229a50d0f3d05.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pg-10c94bf4f9e9df2f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/lrk-ea49e115e48ba34b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/mlz-fce49bd96df2c99f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/dx-17fc1b71910ed6ad.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sm-22346830d5e5a763.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ur-4cd875e44a87e9f6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/pr-7e5e6964ac1c13a7.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/up-2550cb0824072126.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gd-c0d7e6321e1379df.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/51-b582a312086b7975.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/c28-f2c3e9d4cd1ed8f5.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ti-dc598d1734870bb6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/stw-61e8fd83c623657f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/w77-0527a66a073ed15c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6g-b16e60ccff69b263.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-view-3c1596a084a203f4.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/w77.25ab7aedc8e0cfc5.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-view.f8b0233ee1ce76e4.module.css" />
<title>GitHub - tmux/tmux: tmux source code · GitHub</title>
<meta name="route-pattern" content="/:user_id/:repository" data-turbo-transient>
<meta name="route-controller" content="files" data-turbo-transient>
<meta name="route-action" content="disambiguate" data-turbo-transient>
<meta name="fetch-nonce" content="v2:dc09a75d-7824-2dcf-df94-4df6de4f745e">
<meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb">
<meta name="request-id" content="FD15:221C2A:1574E9E0:1CB53A4E:6ADF59AB" data-pjax-transient="true"/><meta name="html-safe-nonce" content="a8b3b749814930fe4b0c72ef6c03a4dd96834c2d7defdb641e736fc22c95add1" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJGRDE1OjIyMUMyQToxNTc0RTlFMDoxQ0I1M0E0RTo2QURGNTlBQiIsInZpc2l0b3JfaWQiOiIzOTMwMDgyMzMzOTEyMTYwNjg0IiwicmVnaW9uX2VkZ2UiOiJmcmEiLCJyZWdpb25fcmVuZGVyIjoiZnJhIn0=" data-pjax-transient="true"/><meta name="visitor-hmac" content="b23b5a0fbce661425a6ae75c8ae04de093682544137e07793b6896d79063981a" data-pjax-transient="true"/>
<meta name="hovercard-subject-tag" content="repository:36836475" data-turbo-transient>
<meta name="github-keyboard-shortcuts" content="repository,copilot" data-turbo-transient="true" />
<meta name="selected-link" value="repo_source" data-turbo-transient>
<link rel="assets" href="https://github.githubassets.com/">
<meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I">
<meta name="octolytics-url" content="https://collector.github.com/github/collect" />
<meta name="analytics-location" content="/&lt;user-name&gt;/&lt;repo-name&gt;" data-turbo-transient="true" />
<meta name="user-login" content="">
<meta name="viewport" content="width=device-width">
<meta name="description" content="tmux source code. Contribute to tmux/tmux development by creating an account on GitHub.">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
<meta property="fb:app_id" content="1401488693436528">
<meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/tmux/tmux" />
<meta name="twitter:image" content="https://opengraph.githubassets.com/2abbfb22e350aa5684e6753a3aee13e84c44a229e1f5d5bfd68bf4f3d576d213/tmux/tmux" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="GitHub - tmux/tmux: tmux source code" /><meta name="twitter:description" content="tmux source code. Contribute to tmux/tmux development by creating an account on GitHub." />
<meta property="og:image" content="https://opengraph.githubassets.com/2abbfb22e350aa5684e6753a3aee13e84c44a229e1f5d5bfd68bf4f3d576d213/tmux/tmux" /><meta property="og:image:alt" content="tmux source code. Contribute to tmux/tmux development by creating an account on GitHub." /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="600" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="GitHub - tmux/tmux: tmux source code" /><meta property="og:url" content="https://github.com/tmux/tmux" /><meta property="og:description" content="tmux source code. Contribute to tmux/tmux development by creating an account on GitHub." />
<meta name="hostname" content="github.com">
<meta name="expected-hostname" content="github.com">
<meta http-equiv="x-pjax-version" content="b81857601f3cfc6217401e7227b2e97f6a17b7c285bac4cfafc01fbf54f97788" data-turbo-track="reload">
<meta http-equiv="x-pjax-csp-version" content="d546acd15426e62dc1faed109148b7d627958da25dee9fa681acfb875a2d8728" data-turbo-track="reload">
<meta http-equiv="x-pjax-css-version" content="9d9b01efda4d19542ab9c3e0a21f5b6dd074bb6b27faa77e51b4fe457a091220" data-turbo-track="reload">
<meta http-equiv="x-pjax-js-version" content="6160d3560837ba88bf2f4743d0d20d8f1a64d5cb904c43c1ab6c83b95a5bc97a" data-turbo-track="reload">
<meta name="turbo-cache-control" content="no-preview" data-turbo-transient="">
<meta name="turbo-cache-control" content="no-cache" data-turbo-transient>
<meta data-hydrostats="publish">
<meta name="go-import" content="github.com/tmux/tmux git https://github.com/tmux/tmux.git">
<meta name="octolytics-dimension-user_id" content="12054114" /><meta name="octolytics-dimension-user_login" content="tmux" /><meta name="octolytics-dimension-repository_id" content="36836475" /><meta name="octolytics-dimension-repository_nwo" content="tmux/tmux" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="36836475" /><meta name="octolytics-dimension-repository_network_root_nwo" content="tmux/tmux" />
<meta name="turbo-body-classes" content="logged-out env-production page-responsive">
<meta name="disable-turbo" content="false">
<meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
<meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
<meta name="release" content="1d6bab509c63982484732fef48ac891446a7ca46" data-turbo-track="reload">
<meta name="ui-target" content="full">
<link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000">
<link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
<link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon">
<meta name="theme-color" content="#1e2327">
<meta name="color-scheme" content="light dark" />
<link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
</head>
<body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
<div id="__primerPortalRoot__" style="z-index: 1000; position: absolute; width: 100%;" data-turbo-permanent></div>
<div class="position-relative header-wrapper js-header-wrapper ">
<a href="#start-of-content" data-skip-target-assigned="false" class="px-2 tmp-py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a>
<span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">
<span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span>
</span>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-b9143e9b577ebc64.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.6e2227f5a0b1c784.module.css" />
<react-partial
partial-name="keyboard-shortcuts-dialog"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/g6m-c6c2e85d4cbe6e0f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-install-banner-partial-7428daf7a3910b95.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-install-banner-partial.54a1ce4a8b5395b5.module.css" />
<react-partial
partial-name="app-install-banner-partial"
data-ssr="false"
data-attempted-ssr="false"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{}}</script>
<div data-target="react-partial.reactRoot"></div>
</react-partial>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h3j-f1362403421e6888.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/qz-cb0a40e50f2a2288.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fz-cb55e83c29d0a351.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/skl-90fea02d318d647f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h4-5f55e06e297293d6.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z7-54a4e2eade1aa26b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/a6j-32ec4660665b36c1.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/marketing-header-f37244122aa8a66f.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-brand-css.bf4feb030857a64b.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/a6j.40fbb8aed1553149.module.css" />
<react-partial
partial-name="marketing-header"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux%2Ftmux","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=tmux%2Ftmux","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://github.com/tmux/tmux\",\"user_id\":null}}","auth_hydro_click_hmac":"630617e162b1b8244c4b69939f20e205b87e54aa57681d6080586cfe48f3a372","overlay":false,"fixed":false}}</script>
<div data-target="react-partial.reactRoot"><div data-color-mode="dark" data-light-theme="light" data-dark-theme="dark"><header class="root__q6pgdo HeaderMktg header-logged-out" role="banner" data-marketing-header="true" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark" data-is-top="true"><h2 class="visuallyHidden__TIbnmb">Navigation Menu</h2><button type="button" class="backdrop__rMNFxs" aria-label="Close navigation menu"></button><div class="bar__cF4m1O"><div class="topRow__-dqkhM"><div class="toggleSlot__-ODxSX"><button type="button" class="toggle__kPg75-" aria-label="Toggle navigation" aria-expanded="false"><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span><span class="toggleBar__8J10Uq"></span></button></div><a href="/" aria-label="Homepage" class="logo__bX9RKh" data-analytics-event="{&quot;action&quot;:&quot;homepage&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;logo&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;homepage_link_logo_header&quot;}"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github" viewBox="0 0 24 24" width="32" height="32" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path></svg></a><div class="mobileActions__8F9jkX"><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw cta__xkenoh" href="/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux%2Ftmux" data-analytics-event="{&quot;action&quot;:&quot;sign_in&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_in_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/tmux/tmux&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="630617e162b1b8244c4b69939f20e205b87e54aa57681d6080586cfe48f3a372"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH">Sign in</span></span></a><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw trigger__VWDtQ2" type="button" aria-haspopup="dialog" aria-labelledby="_R_3dd_"><span class="Primer_Brand__Button-module__Button__leading-visual___jjtTe" data-testid="Button-leading-visual"><svg data-component="Octicon" focusable="false" aria-hidden="true" class="octicon octicon-sliders Primer_Brand__Button-module__Button__icon-visual____qybb" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path></svg></span></button><div class="Primer_Brand__Tooltip-module__Tooltip___0Eipx" data-direction="s" aria-hidden="true" id="_R_3dd_">Appearance settings</div></div></div><div class="menu__2EHTkB"><div class="menuWrapper__Vmk5KX"><nav class="nav__mHQXuz" aria-label="Global"><ul class="list__2Gh7vS"><li><div class="container__KHyzq4"><button type="button" class="button__qiLine truncated
</react-partial>
<div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
<button id="icon-button-ca8811a0-b6c4-436f-b8a8-41f409940148" aria-labelledby="tooltip-1f18ce27-1620-4671-9126-a041b3f9c2e9" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button><tool-tip id="tooltip-1f18ce27-1620-4671-9126-a041b3f9c2e9" for="icon-button-ca8811a0-b6c4-436f-b8a8-41f409940148" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip>
</div>
</div>
<div id="start-of-content" class="show-on-focus"></div>
<div id="js-flash-container" class="flash-container" data-turbo-replace>
<template class="js-flash-template">
<div class="flash flash-full {{ className }}">
<div >
<button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div aria-atomic="true" role="alert" class="js-flash-alert">
<div>{{ message }}</div>
</div>
</div>
</div>
</template>
</div>
<div
class="application-main "
data-commit-hovercards-enabled
data-discussion-hovercards-enabled
data-issue-and-pr-hovercards-enabled
data-project-hovercards-enabled
>
<div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
<main id="js-repo-pjax-container" >
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/cn-7a4f85e8a901f4f7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0b-a7be65069037ffea.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t5-2c5d26edae56bda2.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5l-60d6b21dcbe3c5b7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1a-76a60fd58c2fa34b.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/rk7-418a4f74edbc9f0d.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/zxp-3eb99f149f91a754.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9ty-47c453f28886426e.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/r3j-2177885dae8b60eb.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/1t-bdeb715d0c007303.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3j-c46f566649f3b4dc.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aj-7444763a0a51ca63.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sgn-de0af0b55144d4f4.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/li6-9946ed6b82f92046.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jvc-172b2b204ed5e8d3.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/global-nav-bar-67002cbbf88db339.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.dc074e1b2708fdd8.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-nav-bar.912b64fbbec4ee98.module.css" />
<react-partial
partial-name="global-nav-bar"
data-ssr="true"
data-attempted-ssr="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-partial.embeddedData">{"props":{"contextRegion":{"crumbs":[{"crumb_type":"organization","label":"tmux","is_root":false,"href":"/tmux"},{"crumb_type":"repository","label":"tmux","is_root":false,"href":"/tmux/tmux"}],"localNavigation":[{"id":"code","icon":"code","label":"Code","href":"/tmux/tmux","selectedLinks":["repo_source","repo_downloads","repo_commits","repo_releases","repo_tags","repo_branches","repo_packages","repo_deployments","repo_attestations"],"popoverTarget":false,"commandId":"repositories:go-to-code","reactNav":{"appTarget":"code-view","anchor":"code-view-repo-link"},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"issues","icon":"issue-opened","label":"Issues","href":"/tmux/tmux/issues","selectedLinks":["repo_issues","repo_labels","repo_milestones"],"count":15,"popoverTarget":false,"commandId":"repositories:go-to-issues","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"pull-requests","icon":"git-pull-request","label":"Pull requests","href":"/tmux/tmux/pulls","selectedLinks":["repo_pulls","checks"],"count":21,"popoverTarget":false,"commandId":"repositories:go-to-pull-requests","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"discussions","icon":"comment-discussion","label":"Discussions","href":"/tmux/tmux/discussions","selectedLinks":["repo_discussions"],"popoverTarget":false,"commandId":"repositories:go-to-discussions","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"actions","icon":"play","label":"Actions","href":"/tmux/tmux/actions","selectedLinks":["repo_actions"],"popoverTarget":false,"commandId":"repositories:go-to-actions","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"wiki","icon":"book","label":"Wiki","href":"/tmux/tmux/wiki","selectedLinks":["repo_wiki"],"popoverTarget":false,"commandId":"repositories:go-to-wiki","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"security-and-quality","icon":"shield","label":"Security and quality","href":"/tmux/tmux/security","selectedLinks":["security","overview","alerts","policy","token_scanning","code_scanning"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-security","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"insights","icon":"graph","label":"Insights","href":"/tmux/tmux/pulse","selectedLinks":["repo_graphs","repo_contributors","dependency_graph","dependabot_updates","pulse","people","community"],"popoverTarget":false,"commandId":"repositories:go-to-insights","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}}],"localNavigationUpdateChannel":null,"selectedLink":null,"currentPath":"/tmux/tmux"},"owner":null,"headerLogo":{"href":"/","aria-label":"Homepage "},"notifications":{"indicatorMode":"disabled","websocketChannel":null,"fetchIndicatorSrc":"/notifications/indicator","fetchIndicatorEnabled":false},"issues":{"href":"/issues"},"pulls":{"href":"/pulls"},"contributedRepos":{"href":"/repos"},"copilot":{"show":false,"showAgentsButton":false,"showRelaunchAnnouncement":false,"copilotChatUrl":null,"copilotApiUrl":"https://api.githubcopilot.com"},"search":{"show":true,"showCommandPalette":false,"isSearchPage":false,"isJumpToSearch":false,"searchContext":{"scope":"repo:tmux/tmux","current_repo_name":"tmux","current_repo_nwo":"tmux/tmux","current_repo_org":"tmux","user_id":"tmux"}},"commandPalette":null,"enterpriseBar":{"show":false},"globalTransactionalMessage":[],"payloadsUrl":"/_global-navigation/payloads.json?can_toggle_site_admin_and_employee_status=0\u0026is_admin_mode_on=0\u0026is_ui_opted_out=0\u0026show_ui_opt_out=0\u0026v=8","contextRegionUrl":"/_global-navigation/context-region.json"}}</script>
<div data-target="react-partial.reactRoot"><header aria-label="Global navigation menu" data-component="Stack" class="GlobalNav appHeader__6OmbvL prc-Stack-Stack-UQ9k6" data-gap="none" data-direction="vertical" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="none"><div data-component="Stack" class="prc-Stack-Stack-UQ9k6" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="center" data-padding="none"><div data-testid="top-nav-center" data-component="Stack" class="center__f1ujjY withLocalNavigation__FzpnU6 loggedOut__--dPuC prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="stretch" data-wrap="nowrap" data-justify="start" data-padding="normal"><nav class="contextRegion__Wb1-GR prc-Breadcrumbs-BreadcrumbsBase-3Gb-B" aria-label="Breadcrumbs" data-overflow="menu" data-variant="normal" data-component="Breadcrumbs"><ol class="prc-Breadcrumbs-BreadcrumbsList-BKjpe"><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/tmux" data-discover="true"><span class="">tmux</span></a></li><li class="prc-Breadcrumbs-ItemWrapper-k0NLn"><a class="contextCrumb__Q8nET8 prc-Breadcrumbs-Item-jcraJ" data-component="Breadcrumbs.Item" href="/tmux/tmux" data-discover="true"><span class="contextCrumbLast__l2P28s">tmux</span></a></li></ol></nav></div><div data-testid="top-nav-right" data-component="Stack" class="right__5m36ST withLocalNavigation__FzpnU6 rightWithResponsiveCreateButton__JePGAt prc-Stack-Stack-UQ9k6" data-gap="condensed" data-direction="horizontal" data-align="center" data-wrap="nowrap" data-justify="start" data-padding="normal"></div></div><h2 class="prc-src-InternalVisuallyHidden-2YaI6">Repository navigation</h2><nav class="prc-components-UnderlineWrapper-eT-Yj prc-UnderlineNav-UnderlineWrapper-GWONT LocalNavigation__QHRW7C" aria-label="Repository" data-variant="inset" data-overflow-mode="wrap" data-hide-icons-breakpoint="medium"><ul class="prc-UnderlineNav-ItemsList-oj8gN prc-components-UnderlineItemList-xKlKC" role="list"><li role="presentation" aria-hidden="true" class="prc-UnderlineNav-WrapSpacer--aLgz"></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a aria-current="page" data-tab-item="code" data-react-nav="code-view" data-react-nav-anchor="code-view-repo-link" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/tmux/tmux" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-code" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path></svg></span><span data-component="text" data-content="Code">Code</span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="issues" data-react-nav="repo" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/tmux/tmux/issues" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-issue-opened" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path></svg></span><span data-component="text" data-content="Issues">Issues</span><span data-component="counter"><span aria-hidden="true" data-variant="secondary" data-component="CounterLabel" class="prc-CounterLabel-CounterLabel-X-kRU">15</span><span class="prc-VisuallyHidden-VisuallyHidden-Q0qSB"> (<!-- -->15<!-- -->)</span></span></a></li><li class="prc-UnderlineNav-UnderlineNavItem-syRjR"><a data-tab-item="pull-requests" data-turbo-frame="repo-content-turbo-frame" class="prc-components-UnderlineItem-7fP-n" href="/tmux/tmux/pulls" data-discover="true"><span data-component="icon"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-pull-request" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 Line truncated
</react-partial>
<turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class="">
<div id="repo-content-pjax-container" class="repository-content " >
<react-app
app-name="code-view"
initial-path="/tmux/tmux"
style="display: block; min-height: calc(100vh - 64px);"
data-attempted-ssr="true"
data-ssr="true"
data-lazy="false"
data-alternate="false"
data-data-router-enabled="true"
data-react-profiling="false"
>
<script type="application/json" data-target="react-app.embeddedData">{"payload":{"codeViewRepoRoute":{"path":"/","refInfo":{"name":"master","listCacheKey":"v0:1792766033.0","canEdit":false,"refType":"branch","currentOid":"dd020b171750edefd115c7aed71dfb0569a04aab"},"tree":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"compat","path":"compat","contentType":"directory"},{"name":"fuzz","path":"fuzz","contentType":"directory"},{"name":"logo","path":"logo","contentType":"directory"},{"name":"presentations","path":"presentations","contentType":"directory"},{"name":"regress","path":"regress","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CHANGES","path":"CHANGES","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"Makefile.am","path":"Makefile.am","contentType":"file"},{"name":"README","path":"README","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"SYNCING.md","path":"SYNCING.md","contentType":"file"},{"name":"alerts.c","path":"alerts.c","contentType":"file"},{"name":"arguments.c","path":"arguments.c","contentType":"file"},{"name":"attributes.c","path":"attributes.c","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cfg.c","path":"cfg.c","contentType":"file"},{"name":"client.c","path":"client.c","contentType":"file"},{"name":"cmd-attach-session.c","path":"cmd-attach-session.c","contentType":"file"},{"name":"cmd-bind-key.c","path":"cmd-bind-key.c","contentType":"file"},{"name":"cmd-break-pane.c","path":"cmd-break-pane.c","contentType":"file"},{"name":"cmd-capture-pane.c","path":"cmd-capture-pane.c","contentType":"file"},{"name":"cmd-choose-tree.c","path":"cmd-choose-tree.c","contentType":"file"},{"name":"cmd-command-prompt.c","path":"cmd-command-prompt.c","contentType":"file"},{"name":"cmd-confirm-before.c","path":"cmd-confirm-before.c","contentType":"file"},{"name":"cmd-copy-mode.c","path":"cmd-copy-mode.c","contentType":"file"},{"name":"cmd-detach-client.c","path":"cmd-detach-client.c","contentType":"file"},{"name":"cmd-display-menu.c","path":"cmd-display-menu.c","contentType":"file"},{"name":"cmd-display-message.c","path":"cmd-display-message.c","contentType":"file"},{"name":"cmd-find-window.c","path":"cmd-find-window.c","contentType":"file"},{"name":"cmd-find.c","path":"cmd-find.c","contentType":"file"},{"name":"cmd-if-shell.c","path":"cmd-if-shell.c","contentType":"file"},{"name":"cmd-join-pane.c","path":"cmd-join-pane.c","contentType":"file"},{"name":"cmd-kill-pane.c","path":"cmd-kill-pane.c","contentType":"file"},{"name":"cmd-kill-server.c","path":"cmd-kill-server.c","contentType":"file"},{"name":"cmd-kill-session.c","path":"cmd-kill-session.c","contentType":"file"},{"name":"cmd-kill-window.c","path":"cmd-kill-window.c","contentType":"file"},{"name":"cmd-list-buffers.c","path":"cmd-list-buffers.c","contentType":"file"},{"name":"cmd-list-clients.c","path":"cmd-list-clients.c","contentType":"file"},{"name":"cmd-list-commands.c","path":"cmd-list-commands.c","contentType":"file"},{"name":"cmd-list-keys.c","path":"cmd-list-keys.c","contentType":"file"},{"name":"cmd-list-panes.c","path":"cmd-list-panes.c","contentType":"file"},{"name":"cmd-list-sessions.c","path":"cmd-list-sessions.c","contentType":"file"},{"name":"cmd-list-windows.c","path":"cmd-list-windows.c","contentType":"file"},{"name":"cmd-load-buffer.c","path":"cmd-load-buffer.c","contentType":"file"},{"name":"cmd-lock-server.c","path":"cmd-lock-server.c","contentType":"file"},{"name":"cmd-move-window.c","path":"cmd-move-window.c","contentType":"file"},{"name":"cmd-new-session.c","path":"cmd-new-session.c","contentType":"file"},{"name":"cmd-new-window.c","path":"cmd-new-window.c","contentType":"file"},{"name":"cmd-parse.y","path":"cmd-parse.y","contentType":"file"},{"name":"cmd-paste-buffer.c","path":"cmd-paste-buffer.c","contentType":"file"},{"name":"cmd-pipe-pane.c","path":"cmd-pipe-pane.c","contentType":"file"},{"name":"cmd-queue.c","path":"cmd-queue.c","contentType":"file"},{"name":"cmd-refresh-client.c","path":"cmd-refresh-client.c","contentType":"file"},{"name":"cmd-rename-session.c","path":"cmd-rename-session.c","contentType":"file"},{"name":"cmd-rename-window.c","path":"cmd-rename-window.c","contentType":"file"},{"name":"cmd-resize-pane.c","path":"cmd-resize-pane.c","contentType":"file"},{"name":"cmd-resize-window.c","path":"cmd-resize-window.c","contentType":"file"},{"name":"cmd-respawn-pane.c","path":"cmd-respawn-pane.c","contentType":"file"},{"name":"cmd-respawn-window.c","path":"cmd-respawn-window.c","contentType":"file"},{"name":"cmd-rotate-window.c","path":"cmd-rotate-window.c","contentType":"file"},{"name":"cmd-run-shell.c","path":"cmd-run-shell.c","cLine truncated
<div data-target="react-app.reactRoot"><link rel="preload" as="image" href="https://avatars.githubusercontent.com/u/12054114?s=60&amp;v=4"/><meta name="github-code-view-meta-stats" id="github-code-view-meta-stats" data-hydrostats="publish"/> <!-- --> <a hidden="" id="code-view-repo-link" href="/tmux/tmux" data-discover="true"></a> <div class="d-none"></div><div><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><div class="prc-PageLayout-PageLayoutContent-BneH9"><div data-component="SplitPageLayout.Content" class="prc-PageLayout-ContentWrapper-gR9eG" data-is-hidden-narrow="false"><div class="prc-PageLayout-Content-xWL-A" data-width="full" style="--spacing:var(--spacing-none)"><div class="content__cw9d2I" data-selector="repos-split-pane-content" id="repos-split-pane-content" tabindex="0"><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d container-xl" data-component="SplitPageLayout"><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><header data-component="SplitPageLayout.Header" data-hidden="false" class="prc-PageLayout-Header-0of-R tmp-px-3 tmp-px-lg-5" style="--spacing:var(--spacing-none)"><div class="prc-PageLayout-HeaderContent-gdFfN" style="--spacing:var(--spacing-none)"><!--&--><div class="tmp-pt-3 tmp-pb-3 border-bottom color-border-muted"><div class="d-flex flex-wrap flex-items-center gapx-3 gapy-1"><div class="TitleWrapper__4f5JPQ"><div id="repo-title-component"><div class="d-flex flex-items-center f3 text-normal min-width-0"><img data-component="Avatar" class="mr-2 flex-shrink-0 prc-Avatar-Avatar-0xaUi" alt="tmux" data-square="" width="24" height="24" style="--avatarSize-regular:24px" src="https://avatars.githubusercontent.com/u/12054114?s=60&amp;v=4" data-testid="github-avatar"/><div itemProp="name" data-testid="repo-name-wrapper" class="mr-2 prc-Truncate-Truncate-2G1eo" data-inline="true" title="tmux" style="--truncate-max-width:100%"><strong><a class="color-fg-default prc-Link-Link-9ZwDx" data-component="Link" data-testid="repo-name-link" href="/tmux/tmux" data-discover="true">tmux</a></strong></div><span class="mr-1 v-align-middle prc-Label-Label-qG-Zu" data-size="small" data-variant="secondary" data-testid="repo-visibility-label" data-component="Label">Public</span></div></div></div><div><ul class="list-style-none d-flex flex-shrink-0 flex-wrap flex-items-center gap-2 py-1 Actions__zFJ2t2" data-testid="repo-header-actions"><li><button aria-disabled="true" data-component="Button" type="button" data-testid="sponsor-button" aria-label="Sponsor tmux/tmux" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-heart color-fg-sponsors sponsorIcon__j5Jc88 anim-pulse-in" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3">Sponsor</span></span></button></li><li><a data-component="Button" type="button" href="/login?return_to=%2Ftmux%2Ftmux" rel="nofollow" aria-label="You must be signed in to change notification settings" data-testid="notifications-sign-in-button" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-size="small" data-variant="default" aria-describedby="_R_7abahlik5_"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-bell" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 Line truncated
<p dir="auto">tmux is a terminal multiplexer: it enables a number of terminals to be created,
accessed, and controlled from a single screen. tmux may be detached from a
screen and continue running in the background, then later reattached.</p>
<p dir="auto">This release runs on OpenBSD, FreeBSD, NetBSD, Linux, macOS and Solaris.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Dependencies</h2><a id="user-content-dependencies" class="anchor" aria-label="Permalink: Dependencies" href="#dependencies"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">tmux depends on <a href="https://libevent.org" rel="nofollow">libevent</a> 2.x, available from <a href="https://github.com/libevent/libevent/releases/latest">this
page</a>.</p>
<p dir="auto">It also depends on <a href="https://www.gnu.org/software/ncurses/" rel="nofollow">ncurses</a>, available
from <a href="https://invisible-mirror.net/archives/ncurses/" rel="nofollow">this page</a>.</p>
<p dir="auto">To build tmux, a C compiler (for example gcc or clang), make, pkg-config and a
suitable yacc (yacc or bison) are needed.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Installation</h2><a id="user-content-installation" class="anchor" aria-label="Permalink: Installation" href="#installation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Binary packages</h3><a id="user-content-binary-packages" class="anchor" aria-label="Permalink: Binary packages" href="#binary-packages"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Some platforms provide binary packages for tmux, although these are sometimes
out of date. Examples are listed on
<a href="https://github.com/tmux/tmux/wiki/Installing">this page</a>.</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">From release tarball</h3><a id="user-content-from-release-tarball" class="anchor" aria-label="Permalink: From release tarball" href="#from-release-tarball"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">To build and install tmux from a release tarball, use:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="./configure &amp;&amp; make
sudo make install"><pre>./configure <span class="pl-k">&amp;&amp;</span> make
sudo make install</pre></div>
<p dir="auto">tmux can use the utempter library to update utmp(5), if it is installed - run
configure with <code>--enable-utempter</code> to enable this.</p>
<p dir="auto">For more detailed instructions on building and installing tmux, see
<a href="https://github.com/tmux/tmux/wiki/Installing">this page</a>.</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">From version control</h3><a id="user-content-from-version-control" class="anchor" aria-label="Permalink: From version control" href="#from-version-control"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">To get and build the latest from version control - note that this requires
<code>autoconf</code>, <code>automake</code> and <code>pkg-config</code>:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure &amp;&amp; make"><pre>git clone https://github.com/tmux/tmux.git
<span class="pl-c1">cd</span> tmux
sh autogen.sh
./configure <span class="pl-k">&amp;&amp;</span> make</pre></div>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Contributing</h2><a id="user-content-contributing" class="anchor" aria-label="Permalink: Contributing" href="#contributing"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Bug reports, feature suggestions and especially code contributions are most
welcome. Please send by email to:</p>
<p dir="auto"><a href="mailto:tmux-users@googlegroups.com">tmux-users@googlegroups.com</a></p>
<p dir="auto">Or open a GitHub issue or pull request. <strong>Please read <a href="/tmux/tmux/blob/master/.github/CONTRIBUTING.md">this
document</a> before opening an issue.</strong></p>
<p dir="auto">There is <a href="https://github.com/tmux/tmux/wiki/Contributing">a list of suggestions for contributions</a>.
Please feel free to ask on the mailing list if you're thinking of working on something or need
further information.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Documentation</h2><a id="user-content-documentation" class="anchor" aria-label="Permalink: Documentation" href="#documentation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">For documentation on using tmux, see the tmux.1 manpage. View it from the
source tree with:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="nroff -mdoc tmux.1|less"><pre>nroff -mdoc tmux.1<span class="pl-k">|</span>less</pre></div>
<p dir="auto">A small example configuration is in <code>example_tmux.conf</code>.</p>
<p dir="auto">And a bash(1) completion file at:</p>
<p dir="auto"><a href="https://github.com/scop/bash-completion/blob/main/completions-core/tmux.bash">https://github.com/scop/bash-completion/blob/main/completions-core/tmux.bash</a></p>
<p dir="auto">For debugging, run tmux with <code>-v</code> or <code>-vv</code> to generate server and client log
files in the current directory.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Support</h2><a id="user-content-support" class="anchor" aria-label="Permalink: Support" href="#support"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The tmux mailing list for general discussion and bug reports is:</p>
<p dir="auto"><a href="https://groups.google.com/forum/#!forum/tmux-users" rel="nofollow">https://groups.google.com/forum/#!forum/tmux-users</a></p>
<p dir="auto">Subscribe by sending an email to:</p>
<p dir="auto"><a href="mailto:tmux-users+subscribe@googlegroups.com">tmux-users+subscribe@googlegroups.com</a></p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Merchandise</h2><a id="user-content-merchandise" class="anchor" aria-label="Permalink: Merchandise" href="#merchandise"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">tmux merchandise is available from
<a href="https://commitgoods.com/collections/tmux?utm_source=github&amp;utm_medium=referral" rel="nofollow">Commit Goods</a> -
purchases help support the tmux project.</p>
</article></div></div></div></div></div></div></div><div class="prc-PageLayout-PaneWrapper-pHPop pr-2" style="--offset-header:0px;--spacing-row:var(--spacing-none);--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="end"><div class="prc-PageLayout-HorizontalDivider-JLVqp prc-PageLayout-PaneHorizontalDivider-9tbnE" data-component="PageLayout.HorizontalDivider" data-variant-narrow="none" data-variant-regular="none" data-position="end" style="--spacing-divider:var(--spacing-none);--spacing:var(--spacing-none)"></div><div class="prc-PageLayout-Pane-AyzHK" data-component="SplitPageLayout.Pane" style="--spacing:var(--spacing-normal);--pane-min-width:256px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));--pane-width-size:var(--pane-width-large);--pane-width:320px"><!--&--><div class="borderGrid__VCnF9i"><div class="sidebarSection__oqw6Y8 HideWhenNarrow__nfGOuR border-0"><h2 class="sectionHeading__4n11uG prc-Heading-Heading-MtWFE" data-variant="small" data-component="Heading"><span>About</span></h2><p class="description__ej4leF prc-Text-Text-9mHv3" data-component="Text">tmux source code</p><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Resources</span></h3><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#readme-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-book mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path></svg><span>Readme</span></a></div><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#ISC-1-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-law mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path></svg><span>ISC license</span></a></div><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Contributing</span></h3><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#contributing-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-people mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"></path></svg><span>Contributing</span></a></div><h3 class="sr-only prc-Heading-Heading-MtWFE" data-component="Heading"><span>Security policy</span></h3><div class="mt-2"><a class="prc-Link-Link-9ZwDx" data-component="Link" data-muted="true" href="#security-ov-file"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-shield-lock mr-2" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" dispLine truncated
</react-app>
</div>
</turbo-frame>
</main>
</div>
</div>
<footer class="footer f6 color-fg-muted color-border-subtle tmp-pt-7 tmp-pb-6 p-responsive" role="contentinfo" >
<h2 class='sr-only'>Footer</h2>
<div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap">
<div class="d-flex flex-items-center flex-shrink-0 mx-2">
<a aria-label="GitHub Homepage" class="footer-octicon mr-2" href="https://github.com">
<svg aria-hidden="true" data-component="Octicon" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
<path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path>
</svg>
</a>
<span>
&copy; 2026 GitHub,&nbsp;Inc.
</span>
</div>
<nav aria-label="Footer">
<h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3>
<ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading">
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to Terms&quot;,&quot;label&quot;:&quot;text:terms&quot;}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to privacy&quot;,&quot;label&quot;:&quot;text:privacy&quot;}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to security&quot;,&quot;label&quot;:&quot;text:security&quot;}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to status&quot;,&quot;label&quot;:&quot;text:status&quot;}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to community&quot;,&quot;label&quot;:&quot;text:community&quot;}" href="https://github.community/" data-view-component="true" class="Link--secondary Link">Community</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to docs&quot;,&quot;label&quot;:&quot;text:docs&quot;}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a>
</li>
<li class="mx-2">
<a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to contact&quot;,&quot;label&quot;:&quot;text:contact&quot;}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a>
</li>
<li class="mx-2" >
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;cookies&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;cookies_link_subfooter_footer&quot;}"
>
Manage cookies
</button>
</cookie-consent-link>
</li>
<li class="mx-2">
<cookie-consent-link>
<button
type="button"
class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent text-left"
data-action="click:cookie-consent-link#showConsentManagement"
data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;dont_share_info&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;dont_share_info_link_subfooter_footer&quot;}"
>
Do not share my personal information
</button>
</cookie-consent-link>
</li>
</ul>
</nav>
</div>
</footer>
<ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999"
data-locale="en"
data-initial-cookie-consent-allowed=""
data-cookie-consent-required="false"
></ghcc-consent>
<div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
<path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
<button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
You can’t perform that action at this time.
</div>
<template id="site-details-dialog">
<details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open>
<summary role="button" aria-label="Close dialog"></summary>
<details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">
<button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
<div class="octocat-spinner tmp-my-6 js-details-dialog-spinner"></div>
</details-dialog>
</details>
</template>
<div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;">
<div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;">
</div>
</div>
<template id="snippet-clipboard-copy-button">
<div class="zeroclipboard-container position-absolute right-0 top-0">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2 tmp-m-2">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2 tmp-m-2">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
<template id="snippet-clipboard-copy-button-unpositioned">
<div class="zeroclipboard-container">
<clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w">
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</clipboard-copy>
</div>
</template>
</div>
<div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div>
<div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div>
</body>
</html>
File diff suppressed because it is too large. Load diff