Hi Joel,
IMHO most of the time there is a linenumber involved, in your
special cases:
a, c, d: there must be some sort of do/reduce somewhere, that
_is_ anchored in sourcecode
b: well, try to give the original linenumber, but remember,
you'll have real problems to find the error position, with
the where: ..., too.
Where doesn't need to be completely dropped, though.
regards,
Ingo
Those were the words of [EMAIL PROTECTED]:
> [EMAIL PROTECTED] wrote:
> >
> > Hi, would it be possible to return line-numbers when an error
> > message is given? The where: ... is not always so clear,
> > especially in huge scripts.
> >
>
> That sounds sort of useful, but quite limited. For example, what
> meaning does "line number" have for code that:
>
> a) is in a block (or string) that was constructed by another piece of
> code, with no source file involved;
> b) originally came from a source file, but has since been modified
> in memory (by itself or another piece of code);
> c) is code entered interactively from the command line
> d) is in a "do" executed block (which may "do" other blocks...)
>
> -jn-
>
-- _ . _
ingo@)|_ /| _| _ <We ARE all ONE www._|_o _ _ ._ _
www./_|_) |o(_|(/_ We ARE all FREE> ingo@| |(_|o(_)| (_|
http://www.2b1.de/Rebol/ ._| ._|