Immutability and other attributes, please review

Roman D. Boiko rb at d-coding.com
Thu Jun 14 11:00:51 PDT 2012


On Thursday, 14 June 2012 at 17:58:25 UTC, Dmitry Olshansky wrote:
> On 14.06.2012 21:57, Roman D. Boiko wrote:
>> Am I right that [2.0].ptr (instead of 2.0 could be a struct 
>> literal)
>> doesn't involve copying, while such function would?
>
> Copying what?  One word is surely cheap ;)
That was just curiosity, not objection. Also, struct literal 
could correspond to a larger instance.



More information about the Digitalmars-d-learn mailing list