Rvalue references - The resolution

Araq rumpf_a at gmx.de
Sat May 4 13:15:43 PDT 2013


> 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



More information about the Digitalmars-d mailing list