Uri class and parser

Jonathan M Davis jmdavisProg at gmx.com
Thu Oct 25 14:43:27 PDT 2012


On Thursday, October 25, 2012 23:05:14 Jens Mueller wrote:
> Jonathan M Davis wrote:
> > On Thursday, October 25, 2012 15:59:39 Jens Mueller wrote:
> > > * Should URIs be only movable? Then you should add
> > > @disable this(this);
> > 
> > I'd be shocked if that were appropriate. Disabling the init property like
> > that should be done extremely rarely and only if you need to. It's
> > problematic that that feature exists at all.
> 
> That does not disable the init property. It does disable copying.

Ah true. I read it too quickly. Regardless, disabling much of _anything_ is 
something that you shouldn't be doing normally (though disabling init is 
definitely the worst). It's far, far better to implement the postblit when a 
shallow copy doesn't do what you want. 

- Jonathan M Davis


More information about the Digitalmars-d mailing list