On Tue, Jul 10, 2012 at 09:28:51AM -0400, Andrei Alexandrescu wrote: > On 7/10/12 2:50 AM, Jacob Carlborg wrote: > >On 2012-07-09 22:16, Andrei Alexandrescu wrote: > > > >>So foo is a range of strings, because each element of it is a > >>string. Then you want to chain a range of strings with a string, > >>which is a range of dchar. That doesn't work, and I agree the error > >>message should be more informative. > > > >Is that by design or something that can be fixed? > > We can arrange things in the library that a custom message is issued, > or in the compiler to do it once for all.
Please don't do it in the compiler. Custom messages should be in the library. Tying the compiler to phobos is a bad idea; druntime should be the only dependency. > At any rate whenever there's an error pointing somewhere in the > library's code that's an insufficient template constraint that should > be fixed. [...] Yes. T -- Having a smoking section in a restaurant is like having a peeing section in a swimming pool. -- Edward Burr