import std.stdio; template a(char[]name, T...){ char[] a(T t){ char[] localchar; foreach(a;t) { localchar=typeof(a).mangleof; } return localchar; } } void main() { a!("Adf"[],"afd",1234).a("Adf"[],"adf",1234); } dmd output: global.errors = 0, gag = 0 003CF3F4 .. type=char[] e1=003C80A0 003C80A0 string type=char[3] Assertion failure: '0' on line 775 in file 'expression.c' abnormal program termination dmd throw me:
Fixed DMD 0.178
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル