[AD] al_window_close, 2nd pass

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2002-06-25, Laurence (in private mail) wrote:
> On Tuesday 25 June 2002 02:51, Peter Wang wrote:
> > It'll have to be thought about in 4.1.  Adding the flag is easy, but
> > seems so... ad-hoc.  Really, laziness is the only reason for it.
> >  Can't you just copy-and-paste a handler?
> 
> Actually, given that (at least as I understand it) there is no way to 
> safely exit the program from within the handler, pretty much the only 
> thing you can do is set a flag and check for it later. If that is the 
> case, then why bother with the handler function? Just have a flag which 
> should be checked in the main loop. This has the advantage that the 
> program can immediately carry out some useful action (eg. quitting).

And I said something along the lines of "You're right, but let's see
after 4.0.2".  Now what?

-- 
王浩禎



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/