"with" should be deprecated with extreme prejudice

BCS none at anon.com
Sun May 17 20:00:42 PDT 2009


Hello Andrei,

> dsimcha wrote:
> 
>> Absolutely not.  It's far too useful as syntactic sugar when working
>> heavily with plain old data structs, and saves a lot of tedious
>> repetition of the struct instance name.
>> 
> Make it a member function! If you don't have access to the struct, use
> "s." as the prefix! I can't believe that's stopping you from getting
> work done!
> 

I don't follow.





More information about the Digitalmars-d mailing list