> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 13, 2000 8:37 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] line-numbers & error messages Re:

> That sounds sort of useful, but quite limited.  For example, what
> meaning does "line number" have for code that:

Hi, first I suggest to start with a plain vanilla approach. A near by line
number is much better than nothing at all. But let's see:

> a)  is in a block (or string) that was constructed by another piece of
>     code, with no source file involved;

Line number of block creation position.

> b)  originally came from a source file, but has since been modified
>     in memory (by itself or another piece of code);

Original file-name and line-number there in.

> c)  is code entered interactively from the command line

;-) How many thousand lines do you enter interactively?

> d)  is in a "do" executed block (which may "do" other blocks...)

line-number of do but dumping the wrong block (perhaps with line-number of
block definition).

Self modifying/dynamic code creation is always a problem but that's the
same in other languages too... ever tried to get a line-number from your
c++ compiler on this ;-)) Robert

Reply via email to