Skip to content

Commit

Permalink
Merge pull request #487 from AndrejMitrovic/RemoveHiddenFunc
Browse files Browse the repository at this point in the history
Make note that HiddenFuncError is a deprecated feature.
  • Loading branch information
MartinNowak authored and 9rnsr committed Feb 23, 2014
1 parent 5296b06 commit b182e09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions function.dd
Expand Up @@ -571,6 +571,11 @@ void main() {
foo(new B);
}
---
$(P Note that the this current runtime behavior is deprecated.
The compiler will currently emit a compile-time error for the
above test-case unless the ($(B -d)) deprecation switch is enabled.
In the future this deprecated runtime-only checking feature will be removed.)

$(P If an $(CODE HiddenFuncError) exception is thrown in your program,
the use of overloads and overrides needs to be reexamined in the
relevant classes.)
Expand Down Expand Up @@ -1861,8 +1866,8 @@ $(H3 $(LNAME2 pseudo-member, Uniform Function Call Syntax (UFCS)))
// it's automatically rewritten to 'func(obj)'
---

$(P This provides a way to add functions to a class
externally as if they were public final member functions.
$(P This provides a way to add functions to a class
externally as if they were public final member functions.
)

$(P It also works with $(D @property) functions:)
Expand Down

0 comments on commit b182e09

Please sign in to comment.