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() {
|
||||
@@ -9,13 +10,13 @@ class Program {
|
||||
if(array_key_exists('args', $backtrace[0])) {
|
||||
var_export($backtrace[0]['args']);
|
||||
} else {
|
||||
print("Cannot aquire arguments\n");
|
||||
Console::Print("Cannot aquire arguments\n");
|
||||
}
|
||||
return $p;
|
||||
}
|
||||
|
||||
void b(string $p1, string $p2, string $p3) {
|
||||
print("$p1, $p2, $p3");
|
||||
Console::Print("$p1, $p2, $p3");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user