refInt = ref int: how to achieve this? or is this a bug?

MoonlightSentinel moonlightsentinel at disroot.org
Wed Jun 17 22:17:18 UTC 2020


On Wednesday, 17 June 2020 at 22:15:08 UTC, MoonlightSentinel 
wrote:
> On Wednesday, 17 June 2020 at 22:09:35 UTC, mw wrote:

On Wednesday, 17 June 2020 at 22:15:08 UTC, MoonlightSentinel 
wrote:
Wrong code, this was the intended code:
int main()
{
     typedef int* ptrInt;
     ptrInt arr[5];

     typedef int& refInt;
     refInt arr2[5];
}


More information about the Digitalmars-d mailing list