Deterministic resource freeing - delete deprecation (again)

Francisco Almeida francisco.m.almeida at gmail.com
Fri Apr 29 12:18:23 PDT 2011


On 28-04-2011 17:09, Steven Schveighoffer wrote:
> On Wed, 27 Apr 2011 17:30:54 -0400, Alexander <aldem+dmars at nk7.net> wrote:
>
>> On 27.04.2011 19:13, Steven Schveighoffer wrote:
>>
>>> clear is not a keyword, it is possible to name a member clear, and
>>> also have a clear global function.
>>
>> Sure it is, though it is counter-intuitive - to use same name with
>> quite different meaning. As for me, if this will really be in final
>> spec, I'll always alias it to destroy().
>
> That has been pointed out before. Yes, it is considered a bad idea to do
> that, but we have no choice now, clear is the name.

We have no choice? Since when is a function "part of the language"? It 
could still be renamed with minimal to no impact on Phobos. If it 
*really* cannot be renamed (which I doubt), then ok, I guess we'll have 
to live with it.


More information about the Digitalmars-d mailing list