File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 525
525
)
526
526
$(SPEC_RUNNABLE_EXAMPLE_RUN
527
527
--------------
528
- import std.stdio;
529
528
char[] a = ['h', 'i'];
530
529
531
530
foreach (size_t i, char c; a)
@@ -569,7 +568,6 @@ $(H3 $(LNAME2 foreach_over_arrays_of_characters, Foreach over Arrays of Characte
569
568
570
569
$(SPEC_RUNNABLE_EXAMPLE_RUN
571
570
--------------
572
- import std.stdio;
573
571
char[] a = "\xE2\x89\xA0".dup; // \u2260 encoded as 3 UTF-8 bytes
574
572
575
573
foreach (dchar c; a)
@@ -592,8 +590,6 @@ foreach (char c; b)
592
590
593
591
$(SPEC_RUNNABLE_EXAMPLE_RUN
594
592
--------------
595
- import std.stdio;
596
-
597
593
foreach (char c; "ab")
598
594
{
599
595
writefln("'%s'", c);
@@ -969,7 +965,6 @@ $(H3 $(LNAME2 foreach_ref_parameters, Foreach Ref Parameters))
969
965
970
966
$(SPEC_RUNNABLE_EXAMPLE_RUN
971
967
--------------
972
- import std.stdio;
973
968
uint[2] a = [7, 8];
974
969
975
970
foreach (ref uint u; a)
@@ -1783,8 +1778,6 @@ $(PSCURLYSCOPE) when the scope exits due to exception unwinding.
1783
1778
1784
1779
$(SPEC_RUNNABLE_EXAMPLE_RUN
1785
1780
----
1786
- import std.stdio;
1787
-
1788
1781
write("1");
1789
1782
{
1790
1783
write("2");
@@ -1805,7 +1798,6 @@ $(CONSOLE
1805
1798
1806
1799
$(SPEC_RUNNABLE_EXAMPLE_RUN
1807
1800
----
1808
- import std.stdio;
1809
1801
{
1810
1802
scope(exit) write("1");
1811
1803
scope(success) write("2");
@@ -1824,8 +1816,6 @@ $(CONSOLE
1824
1816
1825
1817
$(SPEC_RUNNABLE_EXAMPLE_RUN
1826
1818
----
1827
- import std.stdio;
1828
-
1829
1819
struct Foo
1830
1820
{
1831
1821
this(string s) { write(s); }
You can’t perform that action at this time.
0 commit comments