hasElaborateCopyConstructor bug?
Paul Backus
snarwin at gmail.com
Sun Jun 2 15:49:11 UTC 2019
On Sunday, 2 June 2019 at 14:44:47 UTC, H. S. Teoh wrote:
> On Sun, Jun 02, 2019 at 02:32:16PM +0000, Paul Backus via
> Digitalmars-d-learn wrote: [...]
>> If std.v2 ever materializes, we'll have an opportunity to fix
>> papercuts like this. Until then, my preferred workaround is to
>> use a renaming import:
>>
>> import std.traits: hasNontrivialCopy =
>> hasElaborateCopyConstructor;
>
> Couldn't we just rename hasElaborateCopyConstructor to
> hasNontrivialCopy and leave a deprecated alias from the former
> to the latter? (Or perhaps without the deprecation, but the
> documentation would use the new name and hopefully new code
> would, too.)
>
>
> T
My impression was that a pure name change would be unlikely to
pass review (see for example
https://github.com/dlang/phobos/pull/6227). But perhaps it's
worth submitting the PR anyway just to see what happens.
More information about the Digitalmars-d-learn
mailing list