DMD 1.026 and 2.010 releases
Sean Kelly
sean at f4.ca
Wed Jan 23 12:26:59 PST 2008
Sean Kelly wrote:
> Jason House wrote:
>> Sean Kelly Wrote:
>>> Why can't an interface be deleted?
>>> We currently do this in a number of places within Tango, and I'm
>>> delaying upgrading to DMD 1.026 for now because of this.
>> This isn't specific to D 1.026. It's an area of unstable behavior that's been in dmd for quite a while. It bit me, and I submitted a bug report. I interpret what happened in D 1.026 to be a temporary patch to help prevent others from hitting this type of issue. It may help to post the functional cases from tango to the bug report to help Walter diagnose/fix the problem.
>
> I know. But it seems strange to me that the fix is to simply disallow
> the use of 'scope' with interfaces. How are interfaces different from
> classes in this regard? Why not just fix the codegen?
Oh, as for the functional cases, they're just what I described. A
function returning an interface that doesn't need to escape the calling
function. In this instance, using 'scope' seems like a natural solution.
Sean
More information about the Digitalmars-d-announce
mailing list