Re: crash_message()

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

Jiri Babor writes:

> What I really meant in my previous message was, that I
> would prefer to use the interpreter location routine with a
> simple abort(), instead of artificially inducing silly errors
> to get the location through the standard error mechanism.

I'll consider it.
I guess it would let you implement a kind of C assert() statement.
e.g.
          assert(x < 100)
where you print a message with the offending file and line number
when the assert fails. Of course,

procedure assert(integer x)
    if not x then
        ? 1/0
    end if
end procedure

would be almost as good.

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