Casting between tuples
Jesse Phillips
jessekphillips+D at gmail.com
Wed Jan 12 14:42:24 PST 2011
Wow, missed the part where TypeTuples can hold values. I suggest looking into using Tuple from std.typecons.
What you need to remember is that you are not casting the tuple, you are casting the data in the tuple which creates a completely different tuple.
It seems you are trying to use the type system to be sure of the class type at compile time so that you don't have null values when you cast to the derived type. If this is the case then note that it can't be done.
More information about the Digitalmars-d-learn
mailing list