Skip to content

Commit

Permalink
Merge pull request #109 from AndrejMitrovic/master
Browse files Browse the repository at this point in the history
Fix issue 4556
  • Loading branch information
andralex committed Apr 15, 2012
2 parents 915a431 + 40b2512 commit 53476f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions class.dd
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ void test() {
and forwarded lookups, all $(I AliasThis) declarations are attempted;
if more than one $(I AliasThis) is eligible, the ambiguity is
disallowed by raising an error.
Note: Multiple $(I AliasThis) is currently unimplemented.
)
)

Expand Down
4 changes: 2 additions & 2 deletions function.dd
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ struct Foo {
}
}
------

$(V1
$(P Member functions of nested classes and structs do not have
access to the stack variables of the enclosing function, but
do have access to the other symbols:
Expand Down Expand Up @@ -1369,7 +1369,7 @@ void test() {
}
}
------

)
$(P Nested functions always have the D function linkage type.
)

Expand Down
4 changes: 2 additions & 2 deletions struct.dd
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ void foo() {
s.bar(); // returns 11
}
---

$(V1
$(P Nested structs cannot be used as fields or as the
element type of an array:
)
Expand All @@ -788,7 +788,7 @@ void foo() {
SS[] a; // error, cannot be array element
}
---

)
$(P A struct can be prevented from being nested by
using the static attribute, but then of course it
will not be able to access variables from its enclosing
Expand Down

0 comments on commit 53476f0

Please sign in to comment.