Can i plz has some template instantiation error stack traces?
Bill Baxter
wbaxter at gmail.com
Fri Dec 12 18:50:07 PST 2008
Seriously though, I think this is a big hole in the DMD support of templates.
It's very annoying to get a compiler message that consists of nothing but:
" error: ATemplateFunction: int does not have a .length property"
Where ATemplateFunction is something like
void ATemplateFunction(ArrayT)(ArrayT x) {
auto n = x.length;
....
}
Great so I know somewhere in my source code I called ATemplateFunction
with the wrong kind of argument. The compiler knows where it was that
I made the call, but it just doesn't care to enlighten me. Very
frustrating.
--bb
On Sat, Dec 13, 2008 at 7:07 AM, Nick Sabalausky <a at a.a> wrote:
> "Bill Baxter" <wbaxter at gmail.com> wrote in message
> news:mailman.162.1229113882.22690.digitalmars-d at puremagic.com...
>> kthx bye.
>> --bb
>
> I think we need a lolcat pic to go along with this. :)
>
>
>
More information about the Digitalmars-d
mailing list