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() {
|
||||
@@ -11,10 +12,10 @@ class Program {
|
||||
if($b == 6) {
|
||||
break;
|
||||
}
|
||||
print("Hello variables: $a $b $c $d\n");
|
||||
Console::Print("Hello variables: $a $b $c $d\n");
|
||||
}
|
||||
}
|
||||
print("Variable \$c: $c\n");
|
||||
Console::Print("Variable \$c: $c\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user