why allocators are not discussed here

Jonathan M Davis jmdavisProg at gmx.com
Fri Jun 28 11:04:42 PDT 2013


On Friday, June 28, 2013 19:56:44 Adam D. Ruppe wrote:
> struct Unique(T) {
> scope T borrow();
> }

Per the current spec, this would not be a valid use of scope, as scope is 
specifically a parameter storage class and can only be used on function 
parameters (just like in, out, ref, and lazy). scope seems to be specifically 
intended for guaranteeing that an argument passed to a function does not 
escape that function.

- Jonathan M Davis


More information about the Digitalmars-d mailing list