[Dlang-internal] DIP1000 discussion and testing: RC pointer snippet

Dicebot via Dlang-internal dlang-internal at puremagic.com
Sun Oct 16 13:03:18 PDT 2016


On 10/16/2016 10:53 PM, Walter Bright wrote:
> On 10/16/2016 6:55 AM, Dicebot wrote:
>> This snippet currently compiles, failing to reject both "leak" lines.
> 
> It compiles because 'scope' is inferred for both leak1 and leak2.

Where does it come from? I don't see any mention of such deduction in
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md and it doesn't
look like a good idea at all.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/dlang-internal/attachments/20161016/c5eb6ddf/attachment-0001.sig>


More information about the Dlang-internal mailing list