Logical location of template instantiations
Tofu Ninja via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 7 04:49:28 PDT 2016
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
More information about the Digitalmars-d
mailing list