"with" should be deprecated with extreme prejudice

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun May 17 20:18:52 PDT 2009


BCS wrote:
> Hello Andrei,
> 
>> BCS wrote:
>>
>>> Hello Andrei,
>>>
>>>> Robert Fraser wrote:
>>>>
>>>>> This. Just issue an error/warning if something in the with shadows
>>>>> something outside. That way, if the struct/class/template/whatever
>>>>> changes, affected code will be notified.
>>>>>
>>>> No warning, error!
>>>>
>>> warning if it exist, error if used?
>>>
>> I go with Walter's stance: either compiles or not. Warnings suck.
>>
>> Andrei
>>
> 
> warningd are optional and off by default.

And that doesn't help either!

Andrei



More information about the Digitalmars-d mailing list