<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
It is sad we still have official pages with something like this :(<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<h4 style="font-weight: normal; line-height: normal; text-align:
left; margin: 2em 0px 1em; font-size: 1.15em; color: rgb(51, 51,
51); font-family: 'Roboto Slab', sans-serif; font-style: normal;
font-variant: normal; letter-spacing: normal; orphans: auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">The D Way</h4>
<span style="color: rgb(51, 51, 51); font-family: 'Roboto Slab',
sans-serif; font-size: 15px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
21px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">The
length of an array is accessible through the property "length".</span>
<pre class="d_code notranslate" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Andale Mono', Monaco, 'DejaVu Sans Mono', 'Lucida Console', monospace; font-size: small; border-radius: 4px; padding: 1ex; margin: 1em 0px; line-height: normal; border: 1px solid rgb(204, 204, 204); width: auto; white-space: pre-wrap; word-wrap: break-word; overflow: auto; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: rgb(252, 252, 252);"><span class="d_keyword" style="color: rgb(64, 64, 220);">int</span> array[17];
<span class="d_keyword" style="color: rgb(64, 64, 220);">foreach</span> (i; 0 .. array.length)
func(array[i]);
</pre>
<span style="color: rgb(51, 51, 51); font-family: 'Roboto Slab',
sans-serif; font-size: 15px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
21px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">or
even better:</span>
<pre class="d_code notranslate" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Andale Mono', Monaco, 'DejaVu Sans Mono', 'Lucida Console', monospace; font-size: small; border-radius: 4px; padding: 1ex; margin: 1em 0px; line-height: normal; border: 1px solid rgb(204, 204, 204); width: auto; white-space: pre-wrap; word-wrap: break-word; overflow: auto; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: rgb(252, 252, 252);"><span class="d_keyword" style="color: rgb(64, 64, 220);">int</span> array[17];
<span class="d_keyword" style="color: rgb(64, 64, 220);">foreach</span> (<span class="d_keyword" style="color: rgb(64, 64, 220);">int</span> value; array)
func(value);</pre>
<br>
<br>
<div class="moz-cite-prefix">Dne 10.2.2016 v 21:12 Andre Polykanine
via Digitalmars-d-announce napsal(a):<br>
</div>
<blockquote cite="mid:156322427.20160210221218@oire.org" type="cite">
<pre wrap="">JvDda> <a class="moz-txt-link-freetext" href="https://habrahabr.ru/post/276227/">https://habrahabr.ru/post/276227/</a>
It states that it actually is the translation of this one:
<a class="moz-txt-link-freetext" href="http://dlang.org/ctod.html">http://dlang.org/ctod.html</a>
:)
But thanks anyway!
A
ndre.
</pre>
</blockquote>
<br>
</body>
</html>