Replies: 2 comments 14 replies
-
Up to the runtime. As the specification says, the C# language makes no assumptions about it. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Ecma 335, §I.12.6.6 states:
There's probably an argument to be made that the C# spec ought to be updated to reflect these rules. I'm not aware of any real hardware in use today where these guarantees don't exist. Further, somewhat worryingly, the C# spec doesn't seem to mention the alignment requirements, which means the CLI rules are not actually a superset of the C# rules. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In section 9.6, the spec states:
I assume this part of the spec still comes from the days of 32-bit machines and runtimes.
long
,ulong
, anddouble
are all 64-bit value types. (I don't remember whatdecimal
is.)Could these be non-atomic even on a 64-bit runtime?
Beta Was this translation helpful? Give feedback.
All reactions