[Dlang-internal] DIP1000 discussion and testing

Dicebot via Dlang-internal dlang-internal at puremagic.com
Thu Oct 20 12:27:11 PDT 2016


On 10/20/2016 12:03 PM, Walter Bright wrote:
> I suggest looking over the test cases that come with the PR. They are
> straightforward. Whether they are the right use cases or not is
> debatable, but they each illustrate an existing safety hole in D today
> that the PR plugs.

If I was to judge by available test cases only, I would have decided
DIP1000 is waste of time and brings nothing useful to the table. They
are terrible in showing implementation goals being low level regression
testing artifacts.

Really, do you think anyone will ever be impressed seeing code like
`int* foo1(return scope int* p) { return p; }`? DIP1000 as defined can
allow much more interesting things and tests should show that too, not
just synthetic artifacts.

-------------- 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/20161020/db2325a1/attachment.sig>


More information about the Dlang-internal mailing list