Re: Callback question
Bernie Ryan wrote:
>
> Vincent wrote:
> >
> > Couldn't you just do something like this?:
> >
> > }}}
<eucode>
> > procedure closeApp(integer ecode)
> > abort(ecode)
> > end procedure
> >
> > function quit()
> > closeApp(0)
> > return 0
> > end function
> >
> > machine_proc(52, routine_id("quit")) -- call_back
> > machine_proc(26, 0) -- wait_key
> > </eucode>
{{{
>
> Vincent:
>
> Thanks, I can.
>
> Once again we have to work around a
> a euphoria feature problem that could be done easily
> within any other langaguge.
>
> Bernie
>
> My files in archive:
> w32engin.ew mixedlib.e eu_engin.e win32eru.exw
>
> Can be downloaded here:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>
Hi Bernie and Vincent,
That's a good idea, and another idea is to 'hide' the abort call
in a conditional statement maybe:
if 1=1 then
abort(0)
end if
return 0
That might shut Euphoria up for a little bit :)
Yeah, it's a workaround too, sorry :)
Take care,
Al
And, good luck with your Euphoria programming!
My bumper sticker: "I brake for LED's"
|
Not Categorized, Please Help
|
|