[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error() [was Re: wavread problems]
From: |
Robert A. Macy |
Subject: |
Re: error() [was Re: wavread problems] |
Date: |
Wed, 11 May 2005 15:35:58 -0700 |
forgot to put in the right parenthesis...
> error("wrong form, dolt\n";
error("wrong form, dolt\n");
sorry, it's in my programs, just not here!
On Wed, 11 May 2005 15:27:45 -0700
"Robert A. Macy" <address@hidden> wrote:
> NOW I see what you mean.
>
> I did a test inside a function to make certain the
> argument
> was of a proper form. All code and operations concerning
> the test were valid octave operations.
>
> I used to default print a line after such a test...
> if (argument is stupid)
> errormsg="wrong form, idiot"
> return;
> endif
> ...doing this created a single error line and then a
> prompt
>
> I now do this...
> if (argument is stupid)
> error("wrong form, dolt\n";
> endif
> ...which prints a nice line too and then a prompt.
>
> both stop the function at that test and all is well.
>
> HOWEVER, when I leave out the \n; the program keeps
> trying
> to execute and spits up later when illegal activities
> start
> to occur.
>
> - Robert -
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Re: Error message formatting (was Re: wavread problems), (continued)
- Re: wavread problems, Robert A. Macy, 2005/05/11
- Re: wavread problems, Keith Goodman, 2005/05/11
- Re: wavread problems, Bill Denney, 2005/05/12
- Re: wavread problems, John W. Eaton, 2005/05/12
- Re: wavread problems, Robert A. Macy, 2005/05/11
- Re: error() [was Re: wavread problems], Robert A. Macy, 2005/05/11
- Re: error() [was Re: wavread problems],
Robert A. Macy <=
- Re: error() [was Re: wavread problems], Keith Goodman, 2005/05/11
- Re: error() [was Re: wavread problems], Robert A. Macy, 2005/05/11
- Re: error() [was Re: wavread problems], Przemek Klosowski, 2005/05/16
- running Maxima from Octave, Doug Stewart, 2005/05/11
- Re: running Maxima from Octave, Doug Stewart, 2005/05/11
- Re: running Maxima from Octave, Doug Stewart, 2005/05/12
- Re: running Maxima from Octave, Geraint Paul Bevan, 2005/05/12
- Re: running Maxima from Octave, Doug Stewart, 2005/05/12