Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'math';
|
||||
import 'console';
|
||||
|
||||
class Program {
|
||||
|
||||
@@ -19,7 +20,7 @@ class Program {
|
||||
|
||||
public void main() {
|
||||
string $str = 'Example text';
|
||||
print($this->center_text($str));
|
||||
Console::Print($this->center_text($str));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user