Error Handling

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

As a library programmer, I have done quite a few unreleased,
it would be really nice to have a way of sending a special number to abort to
indicate the type
of error. Like the magic number previously suggested, but perhaps a different
number for
different types of number.
Abort would become

procedure abort( integer number )
        if number < 0 then
                display crash message
                write to crash file
                abort with 256 + number*-1
        end if
        abort with number
end procedure

each magic number would have a set standard meaning eg
        -1 other error
        -2 invalid subscript
        -3 not an atom
        -4 invalid routine id etc

That way te interpreter/library would deal with the error properly displaying te
correct
message.
-------------------------
Sincerely,
Mathew Hounsell

mat.hounsell at excite.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu