Quick generator hack

Code



Compilation output:

/home/c761/c815.d(103): Error: template c815.skipStrings(T)(T source) if (is(ElementType!(T) : dchar)) forward reference to template skipStrings(T)(T source) if (is(ElementType!(T) : dchar)) /home/c761/c815.d(141): Error: template c815.skipStrings(T)(T source) if (is(ElementType!(T) : dchar)) cannot deduce template function from argument types !()(immutable(dchar)[]) /home/c761/c815.d(151): Error: template std.array.replace does not match any function template declaration. Candidates are: /usr/local/include/dmd2/std/array.d(1707): std.array.replace(E, R1, R2)(E[] subject, R1 from, R2 to) if (isDynamicArray!(E[]) && isForwardRange!(R1) && isForwardRange!(R2) && (hasLength!(R2) || isSomeString!(R2))) /home/c761/c815.d(151): Error: template std.array.replace(E, R1, R2)(E[] subject, R1 from, R2 to) if (isDynamicArray!(E[]) && isForwardRange!(R1) && isForwardRange!(R2) && (hasLength!(R2) || isSomeString!(R2))) cannot deduce template function from argument types !()(immutable(dchar)[],string,_error_) /home/c761/c815.d(133): called from here: rewriteCode("\x0a\x09\x09for(i=s;i<e;i++)\x0a\x09\x09\x09yield i;\x0a\x09", "return %e", false) /home/c761/c815.d(133): Error: argument to mixin must be a string, not (rewriteCode("\x0a\x09\x09for(i=s;i<e;i++)\x0a\x09\x09\x09yield i;\x0a\x09", "return %e", false)) /home/c761/c815.d(133): Error: CTFE failed because of previous errors in rewriteCode /home/c761/c815.d(133): Error: argument to mixin must be a string, not (rewriteCode("\x0a\x09\x09for(i=s;i<e;i++)\x0a\x09\x09\x09yield i;\x0a\x09", "return %e", false)) /home/c761/c815.d(133): Error: variable c815.Iota.Yield!("\x0a\x09\x09for(i=s;i<e;i++)\x0a\x09\x09\x09yield i;\x0a\x09")._yieldcurrent3132 variables cannot be of type void /home/c761/c815.d(14): Error: mixin c815.Iota.Yield!("\x0a\x09\x09for(i=s;i<e;i++)\x0a\x09\x09\x09yield i;\x0a\x09") error instantiating /home/c761/c815.d(133): Error: CTFE failed because of previous errors in rewriteCode /home/c761/c815.d(133): Error: argument to mixin must be a string, not (rewriteCode("\x0a\x09\x09for(;;) yield \"yield \\\"yield 2;\\\";\";\x0a\x09", "return %e", false)) /home/c761/c815.d(133): Error: CTFE failed because of previous errors in rewriteCode /home/c761/c815.d(133): Error: argument to mixin must be a string, not (rewriteCode("\x0a\x09\x09for(;;) yield \"yield \\\"yield 2;\\\";\";\x0a\x09", "return %e", false)) /home/c761/c815.d(133): Error: variable c815.YieldYield.Yield!("\x0a\x09\x09for(;;) yield \"yield \\\"yield 2;\\\";\";\x0a\x09")._yieldcurrent3132 variables cannot be of type void /home/c761/c815.d(30): Error: mixin c815.YieldYield.Yield!("\x0a\x09\x09for(;;) yield \"yield \\\"yield 2;\\\";\";\x0a\x09") error instantiating

Paste info


Author: Guest
Views: 1674
Private: no
Expires: Never
Uploaded: 19.01.13 3:12
Parent: #f38e00d2
Votes: 0

Compilation


Compiler: LDC 2.060
Pointer size: m64