-
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 a non-fixed size array embedded in a class #210
Comments
You could use 3 grave accent to make code block
|
@ygc369 There's no gain in terms of memory locality as CLR allocates objects sequentially (this is simplified version, I know:) ). There's no point to use embedded arrays for collection types as it's impossible to resize the embedded array without reallocating entire collection object. And finally, there's no way to enable dynamic-sized embedded arrays for structs. So, what's the point? 😕 The same relates to #212. There's What's missing? : ) |
@Thaina you can also use more than three backticks if what you're trying to show contains three backticks: You can use 3 backticks to make a code block:
````markdown
```c#
code
```
```` Becomes: You can use 3 backticks to make a code block: ```c#
code
``` |
Related to #115 and dotnet/roslyn#6055
For example:
A class can only have at most one array with dynamic length, but can have more than one inline arrays with fixed length.
for example:
The text was updated successfully, but these errors were encountered: