May 01 aliasing private | ||||
---|---|---|---|---|
| ||||
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; } // --- |
May 01 Re: aliasing private | ||||
---|---|---|---|---|
| ||||
Posted in reply to NotYouAgain | 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.
|
Copyright © 1999-2021 by the D Language Foundation