Re: Auto return type inference issue?

2014-04-23 Thread Jesse Phillips via Digitalmars-d-learn
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: Auto return type inference issue?

2014-04-22 Thread Jesse Phillips via Digitalmars-d-learn
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

Re: arrays in DMD V2

2014-04-19 Thread Jesse Phillips via Digitalmars-d-learn
On Saturday, 19 April 2014 at 03:51:02 UTC, steven kladitis wrote: import std.stdio; void main() { inta0[]; inta1[][]; string a2[][]; string a3[][string]; string a4[][string][string]; //string a4[string][string][string]; is this the same as above int

Re: arrays in DMD V2

2014-04-19 Thread Jesse Phillips via Digitalmars-d-learn
On Saturday, 19 April 2014 at 16:14:45 UTC, steven kladitis wrote: void main() { //inta0[]; int[] a0; //inta1[][]; int[][] a1; //string a2[][]; string[][] a2; //string a3[][string]; string[string] a3; // string[][string] a3; // possibly should be above for a3 //string

Re: arrays in DMD V2

2014-04-18 Thread Jesse Phillips via Digitalmars-d-learn
On Saturday, 19 April 2014 at 00:27:32 UTC, steven kladitis wrote: import std.stdio; void main() { inta0[]; inta1[][]; string a2[][]; string a3[][string]; string a4[][string][string]; //string a4[string][string][string]; is this the same as above int

<    1   2   3