{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5335","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5335/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5335/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5335/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5335","id":158708842,"number":5335,"title":"No way to return non-zero exit code without using Sys.exit","user":{"login":"vroad","id":396351,"avatar_url":"https://avatars.githubusercontent.com/u/396351?v=3","gravatar_id":"","url":"https://api.github.com/users/vroad","html_url":"https://github.com/vroad","followers_url":"https://api.github.com/users/vroad/followers","following_url":"https://api.github.com/users/vroad/following{/other_user}","gists_url":"https://api.github.com/users/vroad/gists{/gist_id}","starred_url":"https://api.github.com/users/vroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vroad/subscriptions","organizations_url":"https://api.github.com/users/vroad/orgs","repos_url":"https://api.github.com/users/vroad/repos","events_url":"https://api.github.com/users/vroad/events{/privacy}","received_events_url":"https://api.github.com/users/vroad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-06-06T15:40:33Z","updated_at":"2016-06-09T01:35:10Z","closed_at":null,"body":"Calling Sys.exit can be problematic, at least on C#, as it force closes the app. On C# Environment.Exit terminates the app immediately even if other threads are running. Also, doc does not clearly states that this will force close the app.\r\n\r\nhttps://msdn.microsoft.com/en-us/library/system.environment.exit(v=vs.110).aspx"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/224779422","html_url":"https://github.com/HaxeFoundation/haxe/issues/5335#issuecomment-224779422","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5335","id":224779422,"user":{"login":"vroad","id":396351,"avatar_url":"https://avatars.githubusercontent.com/u/396351?v=3","gravatar_id":"","url":"https://api.github.com/users/vroad","html_url":"https://github.com/vroad","followers_url":"https://api.github.com/users/vroad/followers","following_url":"https://api.github.com/users/vroad/following{/other_user}","gists_url":"https://api.github.com/users/vroad/gists{/gist_id}","starred_url":"https://api.github.com/users/vroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vroad/subscriptions","organizations_url":"https://api.github.com/users/vroad/orgs","repos_url":"https://api.github.com/users/vroad/repos","events_url":"https://api.github.com/users/vroad/events{/privacy}","received_events_url":"https://api.github.com/users/vroad/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T01:35:10Z","updated_at":"2016-06-09T01:35:10Z","body":"Is there any good reason not to support \"Sys.exitCode\" property? Is there target cannot implement this? I think it's easy to implement.\r\n\r\nI don't know why you force developers to program in a error-prone way. It's not completely same in Haxe since some targets depend on destructos or stack unwinding.\r\n\r\nOn C# you cannot simply use this call from less trusted apps."}}
{"actor":{"display_login":"vroad"}}