Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 12, 2008 Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
kthx bye. --bb |
December 12, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | "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. :) |
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | Bill Baxter escribió:
> kthx bye.
> --bb
You can debug DMD's frontend. Or Descent. :-P
(and find bugs in the port, yay!)
|
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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. :) > > > |
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | Bill Baxter wrote:
> kthx bye.
> --bb
LDC can haz.
|
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Fraser | 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
|
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | >> 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... :)
|
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | 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 |
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | 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.
|
December 13, 2008 Re: Can i plz has some template instantiation error stack traces? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | 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 |
Copyright © 1999-2021 by the D Language Foundation