Skip to content

Commit

Permalink
fix Issue 9394 - ABI for static arrays is outdated
Browse files Browse the repository at this point in the history
Almost of "Reference Types" section is outdated in D2.
  • Loading branch information
9rnsr committed Feb 7, 2013
1 parent 4faaabb commit a6324ef
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions abi.dd
Original file line number Diff line number Diff line change
Expand Up @@ -203,22 +203,6 @@ $(SECTION3 Reference Types,
referred to by reference; this means that class instances can never reside on the stack
or be passed as function parameters.
)

$(P When passing a static array to a function, the result, although declared as a static array, will
actually be a reference to a static array. For example:
)

---------
int[3] abc;
---------

$(P Passing abc to functions results in these implicit conversions:)

---------
void func(int* p); // abc is converted to a pointer
// to the first element
void func(int[] array); // abc is converted to a dynamic array
---------
)


Expand Down

0 comments on commit a6324ef

Please sign in to comment.