Skip to content

Commit

Permalink
fix Issue 2894 - abstract classes sometimes allow non-abstract bodyle…
Browse files Browse the repository at this point in the history
…ss functions
  • Loading branch information
WalterBright committed Jan 23, 2012
1 parent 15151c4 commit 341a8f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions function.dd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ $(GNAME BodyStatement):
This means they cannot be passed by reference to other functions.
)

<h3>Functions Without Bodies</h3>

$(P Functions without bodies:)

---
int foo();
---

$(P that are not declared as $(D abstract) are expected to have their implementations
elsewhere, and that implementation will be provided at the link step.
This enables an implementation of a function to be completely hidden from the user
of it, and the implementation may be in another language such as C, assembler, etc.
)

$(V2
<h3>$(LNAME2 pure-functions, Pure Functions)</h3>

Expand Down

0 comments on commit 341a8f7

Please sign in to comment.