Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Implement System.Runtime.InteropServices.CLong/CULong/NFloat #46401
Implement System.Runtime.InteropServices.CLong/CULong/NFloat #46401
Changes from 22 commits
e8872a4
3b7693b
e598892
c9d8d13
0aeaaf7
2baa10d
57ba638
d2da1d8
f141023
e587cfc
5b9d7a3
62acb9e
a365f26
b114e7e
265a914
5404cec
cac95b4
59785f5
65eddf7
3e2ded1
314e03a
b285a8a
19e0063
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, it looks like this call is expensive, should we measure TP on x64 windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be expensive since its initially filtered on
isIntrinsicType
, which should just be a simple cached flag check?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was it just moved or do I miss an actual change for these 3 functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just moved out of the FEATURE_SIMD block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means this type isn't compliant in VB.NET. Which means APIs that decide to use it will not be consumable by VB.NET. Unsure if that is okay or not. I am fine with it but let's make sure we do our due diligence and confirm that shared understanding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
CLong
can beCLSCompliant
since it is signed and internally anint
ornint
, which both areCLSCompliant
. However, I don't thinkCLSCompliant
means it isn't consumable by VB.NET, using other types likeUIntPtr
orSByte
seem to work just fine: https://sharplab.io/#v2:DYLgbgRgNALiCWwA+BJAtgBwPYCcYGcACAZQE98YBTNAWACgAFAVwmHgGNCBhYAQ3yJd6hEYWasOhAGJMAduxjwsswgFkAjAAoAlIQCCRAKopZMBjBzDR1gEqUYTHCuOnzOAHQAtSjixWRAKKyACbScgpKsv6E0eJsnDLyispqAEw6+kTEAEKkVNG29o4qALTq0UGhiRHK9JXcfAJAA=I'm no expert in VB though, so it's definitely plausible that I'm unaware of some detail 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLSCompilant(false)
just means that some or all of the members use types that are not guaranteed to be usable from all languages. The types themselves are still usable, but some members (like theuint
constructor onCULong
) aren't supported. It doesn't block the types from being used in VB.NET.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything actually preventing the use of this from other languages given it is just a struct wrapping a
CLSCompliant
type?