Tuples and compile-time assigned properties
Dicebot
public at dicebot.lv
Thu Sep 19 08:21:17 PDT 2013
On Thursday, 19 September 2013 at 14:56:08 UTC, Artur Skawina
wrote:
> I'm not sure i understand your problem, but you could use
> structs. ie:
>
> struct VertexProperties {
> size_t color;
> string name;
> }
>
> You can get the field names and types at CT and work with that.
+1 Why do you need to use tuples and manually force them into
struct behavior instead of simply using structs?
More information about the Digitalmars-d-learn
mailing list