Three Cool Things about D

Steven Schveighoffer via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Dec 22 11:07:55 PST 2015


On 12/22/15 1:29 PM, David Nadlinger wrote:

> ---
> ulong factorial(this n) {
>      return n <= 1 ? 1 : n * factorial(n - 1);
> }
> ---

Am I missing some new feature here? What does the 'this' mean?

-Steve


More information about the Digitalmars-d-announce mailing list