Deprecated40

Deprecated Items in 4.0

Include Files

This may sound drastic, but all include/*.e are deprecated. Version 4.0 comes with a newly organized standard library, which is located in include/std. To use, you simply code:

include std/sequence.e
include std/datetime.e
include std/map.e

db_fatal_id

This was made available by database.e in order to set the fatal error handler. If well behaved, it should present user with the error message it received, clean up as much as possible, and then abort. But nothing was enforcing good behavior.

Old code:

procedure db_handler(sequence error_msg)
   puts(2, error_msg)
   flush(db_current())
   close(db_current())
   abort(1)
end procedure

db_fatal_id = routine_id("db_handler")

New code:

procedure db_handler(sequence error_msg)
   puts(2, error_msg)
   flush(db_current())
   close(db_current())
   abort(1)
end procedure

include std/error.e
crash_routine(routine_id("db_handler"))

Search



Quick Links

User menu

Not signed in.

Misc Menu