Escape analysis

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Oct 28 15:32:39 PDT 2008


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.



More information about the Digitalmars-d mailing list