1. Allow_break

Hello everybody:

I'm trying to get my program to run.  It started once, then hung up for no
particular reason.  I couldn't restart it or do anything else without rebooting.

So I inserted a statement, 'allow_break(1)', so that I could stop the
program with a Ctrl-C.  Now I get the error message, 'Allow_break has not
been declared'.

But this seems to be a legitimate statement in Euphoria.  I don't have to
declare 'puts' or 'if...then' or 'get(0)'.  Why should I have to declare
'allow_break' and what should I declare it as?

Wally Riley
wryly at mindspring.com

new topic     » topic index » view message » categorize

2. Re: Allow_break

>I'm trying to get my program to run.  It started once, then hung up
>for no particular reason.  I couldn't restart it or do anything else
>without rebooting.

Might be an infinant loop... Look for one of those. (The exit condition
may not ever be met, or you have an exit that isn't be called, possibly.)

>So I inserted a statement, 'allow_break(1)', so that I could stop the
>program with a Ctrl-C.  Now I get the error message, 'Allow_break has
>not been declared'.

allow_break(1) is the default. If there is no input or output taking
place, then you won't be able to break out of the program.

>But this seems to be a legitimate statement in Euphoria.  I don't have
>to declare 'puts' or 'if...then' or 'get(0)'.  Why should I have to
>declare 'allow_break' and what should I declare it as?

include machine.e   -- I think.... Look in LIBRARY.DOC to see what the
                    -- include file you need is...



_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

new topic     » goto parent     » topic index » view message » categorize

3. Re: Allow_break

>include machine.e   -- I think.... Look in LIBRARY.DOC to see what the
>                    -- include file you need is...
        Make that file.e, per 2.0 manual. Bye
Arthur P. Adamson, The Engine Man, euclid at isoc.net

new topic     » goto parent     » topic index » view message » categorize

4. Allow_break

Wally,

I see 11 other mails from the list, so someone undoubtedly has told you
this.  But in case not:

allow_break is a library routine that is *NOT* built into the interpreter=
=2E =

It is one of the 72 routines that are in include files.  (61 are built in=
).
 In this case, add the following at the top of your program:

include file.e

--Alan
 =

new topic     » goto parent     » topic index » view message » categorize

5. Re: Allow_break

>I'm trying to get my program to run.
>It started once, then hung up for no
>particular reason.  I couldn't restart
>it or do anything else without rebooting.


Wally,

I think the solution to your problem,
lies in printing a few values to the
screen inside your main loop so you
can see what's going on. This will slow
it down considerably, but you can remove
them once you've got the bugs ironed out.

Graeme.


----------------------------------------------------

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu