How does D cope with aliasing

#ponce aliloko at gmail.com
Mon Sep 7 08:49:40 PDT 2009


#ponce Wrote:

> Stewart Gordon Wrote:
> > My recollection of reading the spec is that a D compiler is allowed to 
> > optimise by assuming no pointer aliasing.  But I can't remember at the 
> > moment where I read this.
> 
> I don't know if this is neat or nasty for a compiler to do so. 
> 
> OT : Is there a DMD switch to disable bound check exceptions ? This way I wouldn't have to rely on pointers so much.



More information about the Digitalmars-d-learn mailing list