-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Allow fixed-size array embedded in class or struct (not need unsafe code) #115
Comments
This would simplify the implementation of dotnet/corefx#1502, though currently I'm planning to create a value type which behaves like a fixed size array of length 8 and define fields of that type. |
This has quite a bit of overlap with #78 |
@sharwell @tannergooding |
@ygc369, I am aware, that's why I said it had overlap with and not that it was a duplicate :) #78 would not require Runtime modification to support, while this one (which is effectively an extension of that) would require runtime modification to support, as I believe they are not currently configured to have managed objects not on the heap (although I remember some other thread related to allowing that, I just can't seem to find it atm). |
@ygc369: Does this suggestion aim at where in the memory the array is located or is it intended to be syntactic sugar, being equal to this:
If it is intended to define where the array is actually stored, I'd rather prefer a CLR-compiler-independent optimization hint than a language feature here:
In case of readability, I don't like this suggestion, since I
|
@phi1010 |
@sharwell @tannergooding |
Copy from dotnet/roslyn#126
For example:
The text was updated successfully, but these errors were encountered: