Binding rvalues to ref [WAS: I close BIP27. I won't be pursuing BIPs anymore]

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 20 22:32:33 PDT 2016


On 10/21/2016 01:18 AM, Nicholas Wilson wrote:
> Is it legal to `.save` a const range, and then use it (provided it does
> not mutate any object reachable from bar)?

Sure, if it doesn't involve a cast, i.e. if save is const.


More information about the Digitalmars-d mailing list