> struct / class Element(T) { > T name; > T[T] attributes; > // ... > string toString() { > return ...; > } > }
Why did you chose the same type for keys and values? And shouldn't 'name' always be a string?
Philippe Sigaud via Digitalmars-d Mon, 09 Jun 2014 03:02:28 -0700
> struct / class Element(T) { > T name; > T[T] attributes; > // ... > string toString() { > return ...; > } > }
Why did you chose the same type for keys and values? And shouldn't 'name' always be a string?