Escape analysis

Jason House jason.james.house at gmail.com
Tue Oct 28 16:52:15 PDT 2008


Jarrett Billingsley Wrote:

> On Tue, Oct 28, 2008 at 6:29 PM, Jason House
> <jason.james.house at gmail.com> wrote:
> > Sean Kelly Wrote:
> >
> >> Walter Bright wrote:
> >> > In other words (as Andrei pointed out to me) the cost of those errors,
> >> > even though rare, is very high. This makes it highly desirable to
> >> > prevent them automatically, rather than relying on the skill and
> >> > attention to detail of the programmer.
> >>
> >> I think the cost/benefit of this could probably be argued either way.
> >> I've never encountered a bug related to this, for example, so to me the
> >> benefit is entirely theoretical while the cost is immediate.
> >
> > As the author of an open source multithreaded application in D1, I've had these errors pop up.  It's easy to overlook this stuff and pass things the wrong way (it's easier to code).  Tango doesn't even have a bind library to make it easier!
> >
> 
> For what it's worth, std.bind I think depends on one Phobos-specific
> function.  It would probably take a matter of a minute or two to port
> it to work with Tango.

I ported a bind implementation and maintain it in my code base. I didn't mention that because I still maintain hope that Tango will add it. The last time I asked the Tango folks why they didn't have it, the answer was something to the effect of "we don't recognize a need for it"



More information about the Digitalmars-d mailing list