Re: Simple Euphoria Suggestion

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

Bernie Ryan wrote:
> Why could'nt Euphoria have a magic builtin function that
> would take a parameter which would be the name of a file.
> 
> Then the user could create or open a file and use it for
> cleanup, error dumps, crash information, etc... Whatever
> the user wants to use it for.
> 
> Then when a user writes a program, the user at the beginning
> of his program calls the magic built-in function to tell Euphoria
> the name of his file or its file number.
> 
> All the Euphoria code has to do is save the name of the
> file and when Euphoria shuts down or terminates,
> it simply closes this file. 
> 
> This would be very easy to implement.
> It could be used even when program don't crash.
> It would have more uses than a crash message.

I don't understand what you are saying here.
Isn't it easy enough to open a debug file and
write whatever you like into it? If your program
dies prematurely, Euphoria will close the file for you
and write out any buffered data. Also, there's already
a way to change "ex.err" to the path of another
file in another directory (see crash_file()).

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu