Why is &array[0] @safer than array.ptr?
    Jerry via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Jan 25 16:10:38 PST 2017
    
    
  
On Tuesday, 24 January 2017 at 12:01:35 UTC, Jonathan M Davis 
wrote:
> So, while it makes sense to say that .ptr can't be used in 
> @safe code, it really doesn't make sense to suggest &arr[0] as 
> an alternative.
>
> - Jonathan M Davis
Sure I see your point. But I feel like deprecations should also 
list what one can do instead. So in that regard the suggestion 
makes sense.
    
    
More information about the Digitalmars-d-learn
mailing list