Re: crash_message() problem

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

Tommy Carlier wrote:

> Juergen Luethje wrote:

<snip>

>> ... 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?
>
> I don't think so: crash_message is used for runtime errors.
> This is a compile error.

If crash_message() is used only for runtime errors, then there is an
error in the documentation (Eu 2.5 alpha, lib_c_d.htm#crash_message):

<quote>
Description: Specify a string, s, to be printed on the screen in the
event that Euphoria must stop your program due to a compile-time or
run-time error.
</quote>

Regards,
   Juergen

-- 
Have you read a good program lately?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu