Re: Bug w/tuple of custom types?

2011-03-24 Thread Steven Schveighoffer
On Wed, 23 Mar 2011 16:14:55 -0400, bearophile wrote: Magnus Lie Hetland: Any way to do that without (to be deprecated) typedef? At the moment with a struct that contains an "alias this", I presume... And the alias this must point to a getter property to avoid the problem of implicitl

Re: Bug w/tuple of custom types?

2011-03-24 Thread Bekenn
On 3/23/2011 12:45 PM, Magnus Lie Hetland wrote: Any way to do that without (to be deprecated) typedef? Nothing pretty, at least not yet. bearophile's suggestion is about as close as you can get right now.

Re: Bug w/tuple of custom types?

2011-03-23 Thread bearophile
Magnus Lie Hetland: > Any way to do that without (to be deprecated) typedef? At the moment with a struct that contains an "alias this", I presume... Bye, bearophile

Re: Bug w/tuple of custom types?

2011-03-23 Thread Magnus Lie Hetland
On 2011-03-21 18:40:07 +0100, Steven Schveighoffer said: If you looked and couldn't find it, it doesn't hurt to add it. Worst case -- it gets marked as a duplicate. OK. Perhaps I should just start doing that, rather than asking here about every bug I find. (I seem to come across new ones eve

Re: Bug w/tuple of custom types?

2011-03-21 Thread Jonathan M Davis
> Sample program: > > import std.typecons; > > typedef uint oid_t; > > void main() { > Tuple!(uint,uint) key; > // Tuple!(oid_t,oid_t) key; // Doesn't work > } > > If I use the last tuple instead of the first, I get the following > compiler error with DMD 2.052 in OS X: > > /path/to/sr

Re: Bug w/tuple of custom types?

2011-03-21 Thread Steven Schveighoffer
On Mon, 21 Mar 2011 13:03:25 -0400, Magnus Lie Hetland wrote: Sample program: import std.typecons; typedef uint oid_t; void main() { Tuple!(uint,uint) key; // Tuple!(oid_t,oid_t) key; // Doesn't work } If I use the last tuple instead of the first, I get the following compiler er

Bug w/tuple of custom types?

2011-03-21 Thread Magnus Lie Hetland
Sample program: import std.typecons; typedef uint oid_t; void main() { Tuple!(uint,uint) key; // Tuple!(oid_t,oid_t) key; // Doesn't work } If I use the last tuple instead of the first, I get the following compiler error with DMD 2.052 in OS X: /path/to/src/phobos/std/format.d(1579):