On inlining in D libraries

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 15 12:05:26 PDT 2013


On 9/15/13, monarch_dodra <monarchdodra at gmail.com> wrote:
> By simply making them templates, I can improve the performance of
> functions such as "split on ascii white" by 2 to 3 (!).

Speaking of which, I think the following special case should be allowed:

-----
void foo()() { }

void main()
{
    auto x = &foo;  // NG
}
-----

Then maybe we won't even break anyone's code.


More information about the Digitalmars-d mailing list