DIP: Tail call optimization

Ola Fosheim Grøstad via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Jul 10 09:52:09 PDT 2016


On Sunday, 10 July 2016 at 05:03:46 UTC, Dietrich Daroch wrote:
> Hi everyone (=
>
> I've just added a new proposal to add a new attribute to ensure 
> TCO is applied.
>
> The proposal is really simple, but I'm clueless on how to 
> implement it and also interested on getting feedback on it.

Why should it be part of the function prototype? @nogc makes 
sense, because it is a guarantee for the caller.

@tco does not bring any guarantees to the caller, so you might as 
well annotate the call-site with some compiler specific feature.



More information about the Digitalmars-d-announce mailing list