Re: Poor error messages

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

Bernie Ryan writes:
> How can a Euphoria programmer tell which sequence a error
> message is coming from when the error message is:
> "subscript value 1 is out of bounds, reading from a sequence of
> a length 0"
>  Why doesn't Euphoria give the subscript's name in the
> error message ?
> It seems if the compiler is looking at a sequence it should know the
> sequence's name just like it knows the variables names.

I'll look into this again. It has been on my todo list, but no one
complained until now. As I recall it's a bit tricky to
get the name reliably, but it should be possible.

(By the way, not all sequences have names. A sequence
could be an element of another sequence.)

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