Tongzhou Li: > Another problem. I wrote: > Tuple!(double, char)[] stack; > stack ~= tuple(10, '+'); > It won't compile:
I have already shown here how to solve that problem: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=33749 import std.typecons; void main() { alias Tuple!(double, char) Pair2; Pair2[] stack; stack ~= Pair2(10, '+'); } Bye, bearophile
