[dmd-concurrency] Shutdown protocol

Andrei Alexandrescu andrei at erdani.com
Wed Jan 20 12:40:47 PST 2010


Michel Fortin wrote:
> Le 2010-01-20 à 14:31, Andrei Alexandrescu a écrit :
> 
>> Good example. Is the interim conclusion to leave things as they are at least for the time being? I don't think they make things any more complicated than models that bring their own complications, and the current API does make a great deal of cases much simpler.
> 
> For the time being we could leave things as they are, but add the capability to manually call shutdown in a simple way.

Uhm, that sounds a lot like exit() in C. It only muddies things by 
making things unclear ("why did this program suddenly end?") C++ has 
staunchly unrecommended exit(), and I think that was to its merit.

An application should end when main() ends, period.


Andrei


More information about the dmd-concurrency mailing list