aliasing private

user1234 user1234 at 12.de
Wed May 1 14:28:52 UTC 2024


On Wednesday, 1 May 2024 at 12:07:26 UTC, NotYouAgain wrote:
> I want to do a C like #define on private, but I can't
>
> ie. #define private fileprivate
>
> // ---
> module m;
>
> alias fileprivate = private; // grr!
>
> class myClass
> {
>    fileprivate int n;
> }
>
> // ---

You cant. That is simply not supported.


More information about the Digitalmars-d-learn mailing list