Mercurial > projects > ddmd
comparison dmd/TypeTuple.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 60bb0fe4563e |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
26 this(Parameters arguments) | 26 this(Parameters arguments) |
27 { | 27 { |
28 super(TY.Ttuple); | 28 super(TY.Ttuple); |
29 //printf("TypeTuple(this = %p)\n", this); | 29 //printf("TypeTuple(this = %p)\n", this); |
30 this.arguments = arguments; | 30 this.arguments = arguments; |
31 //printf("TypeTuple() %s\n", toChars()); | 31 //printf("TypeTuple() %p, %s\n", this, toChars()); |
32 debug { | 32 debug { |
33 if (arguments) | 33 if (arguments) |
34 { | 34 { |
35 foreach (arg; arguments) | 35 foreach (arg; arguments) |
36 { | 36 { |
66 auto arg = new Parameter(STCundefined, e.type, null, null); | 66 auto arg = new Parameter(STCundefined, e.type, null, null); |
67 arguments[i] = arg; | 67 arguments[i] = arg; |
68 } | 68 } |
69 } | 69 } |
70 this.arguments = arguments; | 70 this.arguments = arguments; |
71 //printf("TypeTuple() %p, %s\n", this, toChars()); | |
71 } | 72 } |
72 | 73 |
73 override Type syntaxCopy() | 74 override Type syntaxCopy() |
74 { | 75 { |
75 auto args = Parameter.arraySyntaxCopy(arguments); | 76 auto args = Parameter.arraySyntaxCopy(arguments); |