Rvalue references - The resolution

Rainer Schuetze r.sagitario at gmx.de
Thu May 9 12:30:00 PDT 2013



On 04.05.2013 20:33, Walter Bright wrote:
> Static Compiler Detection (in @safe mode):
>
> 1. Do not allow taking the address of a local variable, unless doing a
> safe type 'paint' operation.

I'm not exactly sure what a "safe type paint operation" does, and 
whether the following has already been considered, but I just like to be 
assured it has:

Taking a slice of a stack allocated fixed-size array also includes 
taking its address, so it is also forbidden? This might disallow any 
range based algorithms on the static array.



More information about the Digitalmars-d mailing list