July 30, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8463



--- Comment #10 from Don <clugdbug@yahoo.com.au> 2012-07-30 10:50:21 PDT ---
> (In reply to comment #7)
> > But nested struct (declared in function body) cannot receive such treatment.
> 
> Why can't it? The nested struct simply gets as many context pointers as it needs, this can be zero if it accesses neither the local or the pred context, one, or two. In the latter case, the context pointer is really a pointer to a struct reps. an array containing the two context pointers, so that it has still the same ABI.

Are we certain that you can never get more than two context pointers?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 30, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8463



--- Comment #11 from klickverbot <code@klickverbot.at> 2012-07-30 11:12:35 PDT ---
(In reply to comment #10)
> > (In reply to comment #7)
> > > But nested struct (declared in function body) cannot receive such treatment.
> > 
> > Why can't it? The nested struct simply gets as many context pointers as it needs, this can be zero if it accesses neither the local or the pred context, one, or two. In the latter case, the context pointer is really a pointer to a struct reps. an array containing the two context pointers, so that it has still the same ABI.
> 
> Are we certain that you can never get more than two context pointers?

I was referring to the specific example mentioned by Kenji. The array could hold arbitrarily many pointers.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »