Replies: 5 comments 11 replies
-
For pointer types on records: Will they be permitted when equality, etc is explicitly implemented or will they not permitted at all? As someone who uses records primarily for their ability to work with If they're going to be forbidden in general, they should at least be permitted for non-auto properties so that you can do something like this: record R
{
private IntPtr _MyProperty;
public int* MyProperty
{
get => (int*)_MyProperty;
init => _MyProperty = (IntPtr)value;
}
} |
Beta Was this translation helpful? Give feedback.
-
Are there any issues about this besides dotnet/runtime#13627, or is this just internal murmurings? This is something I find myself wanting more and more lately to the point where I've been tinkering on a formal proposal to add it without runtime support (under the presumption that it's too niche to ever receive runtime support.) |
Beta Was this translation helpful? Give feedback.
-
Im a huge fan of the Visual Basic style base call for constructors. Glad to see it is being considered! |
Beta Was this translation helpful? Give feedback.
-
Does CLR allow choosing which base constructor to call? I think this is very dangerous for verification. VB requires base constructor call to be the exactly first statement of constructor. Allowing statements before base constructor call will cause more problems about member initialization. Generally I don't expect this. |
Beta Was this translation helpful? Give feedback.
-
Yes please. I'd wanted to have "anonymous inheritance" in C# ever since I first found out about them in Java. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-10-26.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions