Thoughts on versioning
rikki cattermole
rikki at cattermole.co.nz
Tue Oct 26 02:21:24 UTC 2021
On 26/10/2021 3:10 PM, Andrei Alexandrescu wrote:
> Found a con:
>
> - Cannot use local imports at all; the mixin must do all of its lookup
> in the top namespace.
This works:
void main() {
FooBar foobar;
foobar.zar();
}
struct FooBar {
import std;
mixin Zar;
void mar() {
writeln("ugh");
}
}
mixin template Zar() {
void zar() {
writeln("hi");
mar();
}
}
What is not working for you?
More information about the Digitalmars-d
mailing list