1. Poor error messages
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jan 07, 2000
- 655 views
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.
2. Re: Poor error messages
- Posted by "Lucius L. Hilley III" <lhilley at CDC.NET> Jan 07, 2000
- 589 views
Good grief, It gives you a line number. How many sequences do you have on that one line? do you want euphoria to talk out the trash and do your homework for you to? Oops.. It already does take out the trash.. :) Besides.. The ex.err should point to exactly where the problem is. Actually take a moment to look at the error file that is created. Lucius L. Hilley III lhilley at cdc.net +----------+--------------+--------------+ | Hollow | ICQ: 9638898 | AIM: LLHIII | | Horse +--------------+--------------+ | Software | http://www.cdc.net/~lhilley | +----------+-----------------------------+ ----- Original Message ----- From: Bernie Ryan <bwryan at PCOM.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Friday, January 07, 2000 10:55 AM Subject: Poor error messages > ---------------------- Information from the mail header ----------------------- > Sender: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> > Poster: Bernie Ryan <bwryan at PCOM.NET> > Subject: Poor error messages > -------------------------------------------------------------------------- ----- > > 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. >
3. Re: Poor error messages
- Posted by Robert Craig <rds at ATTCANADA.NET> Jan 07, 2000
- 606 views
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
4. Re: Poor error messages
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jan 07, 2000
- 591 views
- Last edited Jan 08, 2000
Thanks Rob: Bernie