{"action":"closed","issue":{"url":"https://api.github.com/repos/ELENA-LANG/elena-lang/issues/396","repository_url":"https://api.github.com/repos/ELENA-LANG/elena-lang","labels_url":"https://api.github.com/repos/ELENA-LANG/elena-lang/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/ELENA-LANG/elena-lang/issues/396/comments","events_url":"https://api.github.com/repos/ELENA-LANG/elena-lang/issues/396/events","html_url":"https://github.com/ELENA-LANG/elena-lang/issues/396","id":287696556,"node_id":"MDU6SXNzdWUyODc2OTY1NTY=","number":396,"title":"Inline stack allocation","user":{"login":"arakov","id":5677187,"node_id":"MDQ6VXNlcjU2NzcxODc=","avatar_url":"https://avatars3.githubusercontent.com/u/5677187?v=4","gravatar_id":"","url":"https://api.github.com/users/arakov","html_url":"https://github.com/arakov","followers_url":"https://api.github.com/users/arakov/followers","following_url":"https://api.github.com/users/arakov/following{/other_user}","gists_url":"https://api.github.com/users/arakov/gists{/gist_id}","starred_url":"https://api.github.com/users/arakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arakov/subscriptions","organizations_url":"https://api.github.com/users/arakov/orgs","repos_url":"https://api.github.com/users/arakov/repos","events_url":"https://api.github.com/users/arakov/events{/privacy}","received_events_url":"https://api.github.com/users/arakov/received_events","type":"User","site_admin":false},"labels":[{"id":232464263,"node_id":"MDU6TGFiZWwyMzI0NjQyNjM=","url":"https://api.github.com/repos/ELENA-LANG/elena-lang/labels/optimization","name":"optimization","color":"fbca04","default":false},{"id":60970248,"node_id":"MDU6TGFiZWw2MDk3MDI0OA==","url":"https://api.github.com/repos/ELENA-LANG/elena-lang/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ELENA-LANG/elena-lang/milestones/3","html_url":"https://github.com/ELENA-LANG/elena-lang/milestone/3","labels_url":"https://api.github.com/repos/ELENA-LANG/elena-lang/milestones/3/labels","id":1174994,"node_id":"MDk6TWlsZXN0b25lMTE3NDk5NA==","number":3,"title":"ELENA 3.4","description":"","creator":{"login":"arakov","id":5677187,"node_id":"MDQ6VXNlcjU2NzcxODc=","avatar_url":"https://avatars3.githubusercontent.com/u/5677187?v=4","gravatar_id":"","url":"https://api.github.com/users/arakov","html_url":"https://github.com/arakov","followers_url":"https://api.github.com/users/arakov/followers","following_url":"https://api.github.com/users/arakov/following{/other_user}","gists_url":"https://api.github.com/users/arakov/gists{/gist_id}","starred_url":"https://api.github.com/users/arakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arakov/subscriptions","organizations_url":"https://api.github.com/users/arakov/orgs","repos_url":"https://api.github.com/users/arakov/repos","events_url":"https://api.github.com/users/arakov/events{/privacy}","received_events_url":"https://api.github.com/users/arakov/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":9,"state":"open","created_at":"2015-06-22T12:07:05Z","updated_at":"2018-10-08T10:40:51Z","due_on":"2019-06-13T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-01-11T08:10:00Z","updated_at":"2018-10-08T10:40:51Z","closed_at":"2018-10-08T10:40:51Z","author_association":"MEMBER","body":"In the following code:\r\n\r\n    stacksafe connect(literal ip_address, int port)\r\n    [\r\n        type<SOCKADDR_IN> addr := SOCKADDR_IN new.\r\n        addr port := port.\r\n        addr family := system'net'AF_INET.\r\n        addr ip_address := ip_address.\r\n        \r\n        int retVal := system'external'WS2_32 connect \r\n            int:theHandle\r\n            dirty_ptr:addr\r\n            int:SOCKADDR_IN_SIZE.\r\n    ]\r\n\r\ndirty_ptr variable should be stack allocated (rather than dynamically allocated)\r\n\r\nSimilar for this code:\r\n\r\n    stacksafe connect(literal ip_address, int port)\r\n    [\r\n        type<SOCKADDR_IN> addr := SOCKADDR_IN new.\r\n        addr port := port.\r\n        addr family := system'net'AF_INET.\r\n        addr ip_address := ip_address.\r\n        \r\n        int retVal := system'external'WS2_32 connect \r\n            int:theHandle\r\n            int:dirty_ptr(addr)\r\n            int:SOCKADDR_IN_SIZE.\r\n    ]\r\n"}}
{"actor":{"display_login":"arakov"}}