Allow Explicit Pointer for Auto Declaration
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 29 22:01:52 PDT 2016
On 9/29/16 9:48 PM, Jacob wrote:
> It still requires the &, what it prevents is this situation:
>
> auto pValue = expr; // wanted pointer, expr evaluates to non-ptr value
> through change of code or simply forgetting "&"
Wait, what happens when you do that? If that's now an error, this is a
non-starter.
-Steve
More information about the Digitalmars-d
mailing list