Rvalue references - The resolution
Walter Bright
newshound2 at digitalmars.com
Sat May 4 14:03:02 PDT 2013
On 5/4/2013 1:20 PM, Andrei Alexandrescu wrote:
> 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!
Araq for the win!
More information about the Digitalmars-d
mailing list