strange with alias this and import
Steven Schveighoffer
schveiguy at gmail.com
Fri Jan 31 21:16:07 UTC 2020
On 1/31/20 3:55 PM, aquaratixc wrote:
> How to fix this ?
>
_image is protected, so you can only use the alias-this inside the type
itself, or its derivatives.
If you want to expose access, but not allow rebinding, create a public
accessor:
final AnyMapImage image() { return _image; }
alias image this;
Now, your other module can see the symbol.
-Steve
More information about the Digitalmars-d
mailing list