Here's the gist of what I'm trying to do.
https://gist.github.com/pontifechs/11169069
I'm getting an error I don't understand:
tinker.d(42): Error: mismatched function return type inference of
tinker.B and tinker.A
tinker.d(55): Error: template instance tinker.DynamicTuple!(A,
B).DynamicTuple
Matthew Dudley:
Also, as an aside, why can't tuples be indexed dynamically?
Most of my problems with this have been because you apparently
can't.
Think about how D tuples are implemented, they are essentially
structs. Every tuple element can have a different type and to be
represented in me
On Tuesday, 22 April 2014 at 07:54:34 UTC, Matthew Dudley wrote:
Here's the gist of what I'm trying to do.
https://gist.github.com/pontifechs/11169069
I'm getting an error I don't understand:
tinker.d(42): Error: mismatched function return type inference
of tinker.B and tinker.A
tinker.d(55):
On Wednesday, 23 April 2014 at 00:02:29 UTC, Jesse Phillips wrote:
On Tuesday, 22 April 2014 at 07:54:34 UTC, Matthew Dudley wrote:
Here's the gist of what I'm trying to do.
https://gist.github.com/pontifechs/11169069
I'm getting an error I don't understand:
tinker.d(42): Error: mismatched fu
On Wednesday, 23 April 2014 at 23:05:39 UTC, Matthew Dudley wrote:
tuple in this case would be the member variable of type T (from
T...) So wouldn't elem be the actual object, and not the type?
The effective lowering I was hoping for would be something like
this
if (names[0] == "one")
re