On Friday, 14 February 2014 at 17:37:20 UTC, Adam D. Ruppe wrote:
On Friday, 14 February 2014 at 17:21:09 UTC, Kagamin wrote:
_d_array_bounds must report the location of error, so it
should take ModuleInfo and line number to report, where it
happened.
It could simply take a string. That's all druntime does anyway:
fetch m.name from moduleinfo then proceed normally.
With single pointer the calling code is more minimal. Also it's
more conceptual: D is module-oriented and with module name you
don't need file name. What's problem with moduleinfo? It's only 8
bytes + module name.