Rvalue references - The resolution

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat May 4 13:20:49 PDT 2013


On 5/4/13 4:15 PM, Araq wrote:
>> Runtime Detection and opt-out with "-noboundscheck" is a stroke of
>> genius!
>>
>
> Thanks. ;-)
>
> Araq wrote in January:
>
> You can also look at how Algol solved this over 40 years ago:
> Insert a runtime check that the escaping reference does not point
> to the current stack frame which is about to be destroyed. The
> check should be very cheap at runtime but it can be deactivated
> in a release build for efficiency just like it is done for array
> indexing.
>
> http://forum.dlang.org/thread/mailman.3107.1356856707.5162.digitalmars-d@puremagic.com?page=6

Whoa. Kudos!

Andrei



More information about the Digitalmars-d mailing list