D as A Better C?
Kagamin
spam at here.lot
Sat Feb 15 02:00:20 PST 2014
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.
More information about the Digitalmars-d
mailing list