Re: crash_message() problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

rudy toews wrote:
> 
> Juergen Luethje wrote:
> > 
> > Hi all,
> > 
> > when I run this program ...
> > 
> > }}}
<eucode>
> > include machine.e
> > 
> > crash_message("An unexpected error has occurred!"
> >             & "\nPlease send the file \"ex.err\" to <john_doe at
> >             whoops.com>.")
> > 
> > function add (atom a, atom b)
> >    return a + b
> > end function
> > 
> > ? ad(1,2)
> > </eucode>
{{{

> > 
> > ... Euphoria prints the following error message on the screen:
> > -=-=-=-=-=-=-=-=-=-=-=-=-
> > C:\Desktop\test.exw:10
> > ad has not been declared
> > ? ad(1,2)
> >     ^
> > -=-=-=-=-=-=-=-=-=-=-=-=-
> > (tested with exw.exe 2.4 and 2.5 alpha).
> > 
> > But it should print my message instead, shouldn't it?
> > 
> > Regards,
> >    Juergen
> > 
> > -- 
> > Have you read a good program lately?
> > 
> > 
> i ran it with 2.4, dos and windows file types. it printed your crash message
> as you
> wanted. i simply cut and pasted your program.
> 
> what happens when you turn off syntax checking?
> 

Maybe in 2.5 it only works with run-time errors, where this is a
parser/compile-time error.  That would seem to be more correct behavior anyway
(the 2.5 way)...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu