const(Object)ref is here!

Jason House jason.james.house at gmail.com
Wed Dec 8 04:59:38 PST 2010


Andrei Alexandrescu Wrote:
> >> What do Walter and Andrei think?
> >
> > That I'd like to know.
> 
> I think actually offering a patch is a great initiative! 

Yeah, it's great initiative. Working prototypes really make it easy to fully evaluate an option and require almost no effort to formally adopt.


> I think the 
> syntax is not all that intuitive, but it's great to experiment with. 

Really? Back when this stuff was actively being bikeshedded, it was my favorite syntax for this feature. Since then, a somewhat conflicting feature was added: auto ref. I saw some posts recently about @tail being someone else's favorite, but I personally like the ref syntax better. Basically, reference types have an implicit ref which you can manually specify to disambiguate your intention with const stuff.



More information about the Digitalmars-d mailing list