{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/12836","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/12836/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/12836/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/12836/events","html_url":"https://github.com/dotnet/roslyn/issues/12836","id":168474653,"number":12836,"title":"Operators should be exposed for `System.IntPtr` and `System.UIntPtr`","user":{"login":"tannergooding","id":10487869,"avatar_url":"https://avatars.githubusercontent.com/u/10487869?v=3","gravatar_id":"","url":"https://api.github.com/users/tannergooding","html_url":"https://github.com/tannergooding","followers_url":"https://api.github.com/users/tannergooding/followers","following_url":"https://api.github.com/users/tannergooding/following{/other_user}","gists_url":"https://api.github.com/users/tannergooding/gists{/gist_id}","starred_url":"https://api.github.com/users/tannergooding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannergooding/subscriptions","organizations_url":"https://api.github.com/users/tannergooding/orgs","repos_url":"https://api.github.com/users/tannergooding/repos","events_url":"https://api.github.com/users/tannergooding/events{/privacy}","received_events_url":"https://api.github.com/users/tannergooding/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-30T16:14:04Z","updated_at":"2016-08-01T21:05:35Z","closed_at":null,"body":"**Issue:**\r\nThe CLR supports a set of operators for the `System.IntPtr` and `System.UIntPtr` types (`native int`). These operators can be seen in `III.1.5` of the Command Language Infrastructure specification. However, these operators are not supported by the C#.\r\n\r\n**Workaround:**\r\nEither directly emit IL or write non-optimal code that does not directly translate to the appropriate IL instructions.\r\n\r\n**Request::**\r\nLanguage support should be provided for the full set of operators supported by `System.IntPtr` and `System.UIntPtr`. These operators are: `Add`, `Divide`, `Multiply`, `Remainder, `Subtract`, `Negate`, `Equals`, `Compare`, `And`, `Not`, `Or`, `XOr`, `ShiftLeft`, `ShiftRight`."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/236707567","html_url":"https://github.com/dotnet/roslyn/issues/12836#issuecomment-236707567","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/12836","id":236707567,"user":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T21:05:35Z","updated_at":"2016-08-01T21:05:35Z","body":"This sounds like a C# language request, not a compiler request. The compiler doesn't usually expose operators that are not mandated by the language specification."}}
{"actor":{"display_login":"gafter"}}