Assume private visibility for all class members by default.
ステータスチェックはすべて成功しました
The build was successful.

In most (all?) modern OOP languages class members visibility is assumed to be private and programmer has to consciously set it to public or protected. PHP has the different approach what can cause a security flaws in written scripts. AerScript will not follow this way, as it seems to be conceptually broken.
このコミットが含まれているのは:
2019-05-17 08:40:41 +02:00
コミット 55acf8111f
41個のファイルの変更72行の追加84行の削除

ファイルの表示

@@ -1,16 +1,16 @@
class Test {
void __construct(string $a) {
public void __construct(string $a) {
print("$a\n");
}
void __construct(int $a, int $b) {
public void __construct(int $a, int $b) {
print("$a + $b = ", $a + $b, "\n");
}
}
class Program {
void main() {
public void main() {
object $a, $b;
$a = new Test('Hello world!');
$b = new Test(4, 7);