Software Assurance Reference Dataset
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 19 23:45:24 PDT 2014
On 7/19/2014 11:06 PM, bearophile wrote:
> A @tailrec annotation seems good, and will improve the functional usages of D.
> It should stop compilation with a error if the function doesn't call itself or
> if the compiler is not able to remove the recursive call. This means it has to
> be fully enforced.
If you want to guarantee replacement of a recursive call with a loop, just write
a loop.
More information about the Digitalmars-d
mailing list