You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Support the use of inref/outref/byref types in declarations for extern functions #12613
but this feels bad (and is harder to verify at the compiler-level!) because it doesn't allow us to specify the direction of the reference like we'd expect via inref (for read references), outref (for write references), and byref (for read/write references). I think this should be supported for correctness reasons.
Describe the solution you'd like
I'd like the parser to be able to accept inref/outref/byref generic types in the signature of an extern declaration (it seems that right now only simple type declarations are supported), and I'd like the typechecker to verify those access rules at callsites the way we already can with inref/outref/byref in other declarations.
For example, I'd like to write the above declaration as:
@baronfel I adjusted your permissions on fslang-suggestions and fslang-design to allow you to write to both those repositories in order to be able to add both approved suggestions and RFCs for things like this
Activity
dsyme commentedon Jan 21, 2022
Seems fine to me. I guess it should be tracked as a language suggestion but I consider it pre-approved
dsyme commentedon Jan 21, 2022
@baronfel I adjusted your permissions on fslang-suggestions and fslang-design to allow you to write to both those repositories in order to be able to add both approved suggestions and RFCs for things like this
dsyme commentedon Apr 20, 2022
Closing as this needs to be tracked by language suggestion