skinny delegates

Steven Schveighoffer schveiguy at gmail.com
Thu Aug 2 15:12:10 UTC 2018


On 8/2/18 11:00 AM, Kagamin wrote:
> I suppose it's mostly for mutability, so if it's const, it can be 
> optimized based on type information only:
> 
> auto foo(in int x)
> {
>     return { return x + 10; };
> }

I'm not sure what you mean here.

-Steve


More information about the Digitalmars-d mailing list