digitalmars.D - Can i plz has some template instantiation error stack traces?
- "Bill Baxter" <wbaxter gmail.com> Dec 12 2008
- "Nick Sabalausky" <a a.a> Dec 12 2008
- Ary Borenszweig <ary esperanto.org.ar> Dec 12 2008
- "Bill Baxter" <wbaxter gmail.com> Dec 12 2008
- Robert Fraser <fraserofthenight gmail.com> Dec 12 2008
- Christian Kamm <kamm-incasoftware removethis.de> Dec 12 2008
- Christian Kamm <kamm-incasoftware removethis.de> Dec 13 2008
- "Bill Baxter" <wbaxter gmail.com> Dec 12 2008
- "Bill Baxter" <wbaxter gmail.com> Dec 13 2008
- "Bill Baxter" <wbaxter gmail.com> Dec 13 2008
"Bill Baxter" <wbaxter gmail.com> wrote in message news:mailman.162.1229113882.22690.digitalmars-d puremagic.com...kthx bye. --bb
I think we need a lolcat pic to go along with this. :)
Dec 12 2008
Bill Baxter escribió:kthx bye. --bb
You can debug DMD's frontend. Or Descent. :-P (and find bugs in the port, yay!)
Dec 12 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 a.a> wrote:
"Bill Baxter" <wbaxter gmail.com> wrote in message
news:mailman.162.1229113882.22690.digitalmars-d puremagic.com...
kthx bye.
--bb
I think we need a lolcat pic to go along with this. :)
Dec 12 2008
Bill Baxter wrote:kthx bye. --bb
LDC can haz.
Dec 12 2008
LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it?
Can haz now. Currently looking like so templerror.d(9): Error: identifier 'wrong' is not defined templerror.d(12): Error: template instance templerror.bar!(int[][][]) error instantiating instantiatied in templerror.d(12): bar!(int[][]) instantiatied in templerror.d(3): bar!(int[]) instantiatied in templerror.d(16): foo!(int) and triggered by errors and static asserts. We had a brief slide about them in our Tango Conference talk. I hope it'll be up eventually... :)
Dec 12 2008
Bill Baxter wrote:Looks great. Is there a DMD patch for that somewhere in bugzilla?
I sent it directly to Walter a few months ago, but I'll also attach it to the enhancement request you just opened.
Dec 13 2008
On Sat, Dec 13, 2008 at 12:44 PM, Robert Fraser <fraserofthenight gmail.com> wrote:Bill Baxter wrote:kthx bye. --bb
LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it? --bb
Dec 12 2008
On Sat, Dec 13, 2008 at 4:53 PM, Christian Kamm <kamm-incasoftware removethis.de> wrote:LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it?
Can haz now. Currently looking like so templerror.d(9): Error: identifier 'wrong' is not defined templerror.d(12): Error: template instance templerror.bar!(int[][][]) error instantiating instantiatied in templerror.d(12): bar!(int[][]) instantiatied in templerror.d(3): bar!(int[]) instantiatied in templerror.d(16): foo!(int) and triggered by errors and static asserts. We had a brief slide about them in our Tango Conference talk. I hope it'll be up eventually... :)
Looks great. Is there a DMD patch for that somewhere in bugzilla? --bb
Dec 13 2008
On Sat, Dec 13, 2008 at 5:07 PM, Christian Kamm <kamm-incasoftware removethis.de> wrote:Bill Baxter wrote:Looks great. Is there a DMD patch for that somewhere in bugzilla?
I sent it directly to Walter a few months ago, but I'll also attach it to the enhancement request you just opened.
Excellent! Thanks. Here's hoping Walter applies the patch. --bb
Dec 13 2008









"Nick Sabalausky" <a a.a> 