On 05/25/2010 08:31 PM, Walter Bright wrote:
Andrei Alexandrescu wrote:
2. What's the affect of clear() on the capacity?
There is no guaranteed effect.
Should say so in the spec.
I guess if it's missing then it's implied.
3. Shouldn't KeyTypes be a type tuple?
Yes. At the end of the day you must be able to say KeyTypes!3 to get
the fourth type there. You say it should be KeyTypes[3]. I see tuple
trouble, sigh. With a template I feel I have more control.
The reason I prefer a tuple for this is then I can ask KeyTypes.length,
whereas with the template that's not specified by the spec.
OK.
Andrei