On Sun, 17 Sep 2000, Tom Christiansen wrote: > >Heh. We can change the message from: > > >"Division by zero error on line xx" > > >to > > >"Division by zero error somewhere around line XX, give or take a few" > > >:) > > >Yup. Worst case we can always point at where the line starts, if it still > >exists. > > Make it: > > Division by zero error on statement beginning at line xx The reason for the fuzz is that the optimizer could well have munched things to the point where we're really not sure at runtime what the correct line is. (Yeah, I know, these are computers and it's all deterministic, but the optimizations could be mildly lossy in some ways) > Consider multiline constants -- where do you say the warning occurred? > > print <<EOF; > blah > blah > $fred > blah > blah If $fred caused the problem and we've not thrown the info away somewere, on the exact line $fred appeared. Otherwise on the print line. Dan
- Re: RFC 214 (v1) Emit warnings and errors based on unopt... Simon Cozens
- Re: RFC 214 (v1) Emit warnings and errors based on ... Nathan Torkington
- Re: RFC 214 (v1) Emit warnings and errors based... Dan Sugalski
- Re: RFC 214 (v1) Emit warnings and errors b... Nathan Torkington
- Re: RFC 214 (v1) Emit warnings and erro... Dan Sugalski
- Re: RFC 214 (v1) Emit warnings and... Nathan Torkington
- Re: RFC 214 (v1) Emit warnings and errors b... Steve Fink
- Re: RFC 214 (v1) Emit warnings and erro... Chaim Frenkel
- Re: RFC 214 (v1) Emit warnings and... Dan Sugalski
- Re: RFC 214 (v1) Emit warnings and... Tom Christiansen
- Re: RFC 214 (v1) Emit warnings and... Dan Sugalski
- Re: RFC 214 (v1) Emit warnings and... Chaim Frenkel
- Re: RFC 214 (v1) Emit warnings and erro... Bart Lateur
- Re: RFC 214 (v1) Emit warnings and... Steve Fink
- Re: RFC 214 (v1) Emit warnings and... Dave Storrs
- Re: RFC 214 (v1) Emit warnings and... Steve Fink
- Re: RFC 214 (v1) Emit warnings and... Chaim Frenkel
- Re: RFC 214 (v1) Emit warnings and... Dan Sugalski
- Re: RFC 214 (v1) Emit warnings and erro... Nathan Torkington
- Re: RFC 214 (v1) Emit warnings and errors based... Chaim Frenkel
- Re: RFC 214 (v1) Emit warnings and errors based... Dave Storrs