Implicit static->dynamic arr and modifying

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 6 15:46:56 PDT 2014


On Tuesday, 6 May 2014 at 02:17:06 UTC, Nick Sabalausky wrote:
> So all is well, and deliberately so. Pardon the noise.

IMO it's not. I once had a particularly nasty bug because of this:

struct S
{
	@safe:
	string str;
	
	this(string data)
	{
		import std.digest.md;
		str = md5Of(data).toHexString(); // Oops...
	}
}


More information about the Digitalmars-d-learn mailing list