clear() and UFCS
David Nadlinger
see at klickverbot.at
Sat May 26 05:37:32 PDT 2012
On Saturday, 26 May 2012 at 08:52:06 UTC, Alex Rønne Petersen
wrote:
> On 26-05-2012 10:48, Francisco Almeida wrote:
>> I vote for destroy().
>> It seems to be a popular choice, and it isn't ambiguous in any
>> way.
>> Are there any classes/structs using destroy() methods in
>> Phobos?
>>
>> Francisco
>
> It doesn't actually matter. It wouldn't be ambiguous. UFCS
> prefers the method on a class/struct over a free function.
It wouldn't break existing types, yes, but would probably cause
confusion similar to clear() right now if the name was already in
(widespread) use.
David
More information about the Digitalmars-d
mailing list