Compile-time optimization

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Tue Jul 23 13:05:55 PDT 2013


On Tuesday, 23 July 2013 at 18:10:54 UTC, H. S. Teoh wrote:
> 	void main() {
> 		string x = "runtime1";
> 		string y = "runtime2";
> 		auto arr = [ tupleReduce!("a", "b", x, "c", "d", y, "e", "f") 
> ];
> 		writeln(arr);
> 	}

Heh, missed this. Forgot about recursive aliasing too.

My suggestion also is bogus since literals can't be aliased.


More information about the Digitalmars-d mailing list