Remove sizeof() as a special-case default argument value.

This commit is contained in:
David Anderson
2015-02-02 21:10:20 -08:00
parent cf9dd08c45
commit c116a731f1
7 changed files with 15 additions and 148 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
(2) : error 141: natives, forwards, and public functions cannot return arrays
(3) : error 143: new-style declarations should not have "new"
(5) : error 121: cannot specify array dimensions on both type and name
(9) : error 025: function heading differs from prototype
(11) : error 025: function heading differs from prototype
@@ -0,0 +1,9 @@
stock void crab(int[] eggs, int numEggs = sizeof(eggs))
{
}
public main()
{
int eggs[12];
crab(eggs);
}
@@ -0,0 +1 @@
(1) : error 163: indeterminate array size in "sizeof" expression (symbol "eggs")