Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import 'console';
|
||||
class Program {
|
||||
|
||||
public void count(int $a, int $b) {
|
||||
print("Counting 2 integers: $a + $b = ", $a + $b, "\n");
|
||||
Console::Print("Counting 2 integers: $a + $b = " + ($a + $b) + "\n");
|
||||
}
|
||||
|
||||
public void count(float $a, float $b) {
|
||||
print("Counting 2 floats: $a + $b = ", $a + $b, "\n");
|
||||
Console::Print("Counting 2 floats: $a + $b = " + ($a + $b) + "\n");
|
||||
}
|
||||
|
||||
public void main() {
|
||||
|
||||
Reference in New Issue
Block a user