We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fa0f90 + 0b9559b commit b1c4d7eCopy full SHA for b1c4d7e
index.dd
@@ -529,7 +529,7 @@ void main()
529
// Code is executed in any case upon scope exit.
530
scope(exit) { writeln("Exiting main."); }
531
// File is closed deterministically at scope's end.
532
- foreach (line; File("text.txt").byLine())
+ foreach (line; File(__FILE_FULL_PATH__).byLine())
533
{
534
writeln(line);
535
}
@@ -584,15 +584,15 @@ class Widget : Printable
584
585
void print(uint level)
586
in{ }
587
- body{ }
+ do{ }
588
589
590
// Single inheritance of state
591
class ExtendedWidget : Widget
592
593
override void print(uint level)
594
in { /* weakening precondition is okay */ }
595
- body
+ do
596
597
//... level may be 0 here ...
598
0 commit comments