digitalmars.D.bugs - [Issue 21668] New: Cannot declare ref parameter of opaque type
- d-bugmail puremagic.com (21/21) Feb 27 2021 https://issues.dlang.org/show_bug.cgi?id=21668
https://issues.dlang.org/show_bug.cgi?id=21668 Issue ID: 21668 Summary: Cannot declare ref parameter of opaque type Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: moonlightsentinel disroot.org Functions cannot accept opaque types by ref (pointer and slices work already): ---------------------------------------- struct Opaque; void byPtr(Opaque*) {} void byRef(ref Opaque) {} // Fails void bySlice(Opaque[]) {} ---------------------------------------- --
Feb 27 2021