Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'console';
|
||||
class Program {
|
||||
|
||||
public void main() {
|
||||
@@ -7,14 +8,14 @@ class Program {
|
||||
if($numeric == 6) {
|
||||
continue;
|
||||
}
|
||||
print("$key is $numeric\n");
|
||||
Console::Print("$key is $numeric\n");
|
||||
if($numeric == 8) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
print("\nA week has seven days:\n");
|
||||
Console::Print("\nA week has seven days:\n");
|
||||
foreach(string $day in $days) {
|
||||
print("$day\n");
|
||||
Console::Print("$day\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user