Sorting structs?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Jan 29 20:33:41 PST 2014


On Thursday, 30 January 2014 at 03:00:43 UTC, Paul-Andre wrote:
> On Wednesday, 29 January 2014 at 11:24:54 UTC, Stanislav Blinov 
> wrote:
>> On Wednesday, 29 January 2014 at 10:30:06 UTC, Boomerang wrote:
>>    // also it's worth using ref const to avoid
>>    // unnecessary copies
>
> I am new to D.
> Why should someone use "ref const" instead of "in"?

in is the same as 'scope const' (scope checks aren't implemented) 
So you be relying on the optimizer to not copy.


More information about the Digitalmars-d-learn mailing list