Permalink
Browse files

Fixes Issue 9394 - Fix static array ABI.

Static arrays are not implicitly converted to references in D2.
  • Loading branch information...
1 parent 7c316bb commit 50381d3356dfa5fea7cc186ddc1cf9c002d5180d @AndrejMitrovic AndrejMitrovic committed Feb 7, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 abi.dd
View
5 abi.dd
@@ -156,7 +156,7 @@ $(SECTION3 Interfaces,
it matches the layout of a C++ class using single inheritance
on the target machine.
)
-
+
)
$(SECTION3 Arrays,
@@ -191,7 +191,7 @@ $(SECTION3 Associative Arrays,
$(P Associative arrays consist of a pointer to an opaque, implementation
defined type.
-
+
The current implementation is contained in and defined by
$(DRUNTIMESRC rt/aaA.d).
)
@@ -215,7 +215,6 @@ int[3] abc;
$(P Passing abc to functions results in these implicit conversions:)
---------
-void func(int[3] array); // actually <reference to><array[3] of><int>
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

0 comments on commit 50381d3

Please sign in to comment.