forward references... again?

Mehrdad wfunction at hotmail.com
Tue Sep 27 03:05:12 PDT 2011


On 9/27/2011 2:37 AM, Regan Heath wrote:
> On Mon, 26 Sep 2011 19:07:59 +0100, Mehrdad <wfunction at hotmail.com> 
> wrote:
>
>> Nah, that's not the issue. Originally it was a different name, it 
>> just so happened that I didn't notice this in the simplification.
>>
>> However, I DID find the problem -- it's because the function is 
>> recursive. :(
>> What I _meant_ to say was a.get(args) + b.get(args), but I said (a + 
>> b).get(args).  So it was pretty much calling itself.
>
> So.. bug report for the bad error message then?
>
I... guess? But I'm not sure how to improve it. Something along the 
lines of "foo is currently being defined" might be clearer, but then 
again it's not like I didn't figure that out myself -- it's just that I 
thought it's for a different instantiation of the template.


More information about the Digitalmars-d mailing list