On Friday, 1 July 2016 at 19:13:45 UTC, Steven Schveighoffer wrote:
Emplace needs a constructor alias parameter.

-Steve

That wouldn't work as emplace wouldn't be able to use the alias if it was private...

void main(){
     import other;
     test!foo();
}

private void foo(){}
##########
module other;
void test(alias pred)(){
        pred();
}



other.d(5): Error: function main.foo is not accessible from module other main.d(9): Error: template instance other.test!(foo) error instantiating

Reply via email to