{"action":"opened","issue":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1138","labels_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1138/labels{/name}","comments_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1138/comments","events_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1138/events","html_url":"https://github.com/rejectedsoftware/vibe.d/issues/1138","id":88211963,"number":1138,"title":"vibe.internal.funcattr: No handling of ref / out parameters","user":{"login":"Geod24","id":2180215,"avatar_url":"https://avatars.githubusercontent.com/u/2180215?v=3","gravatar_id":"","url":"https://api.github.com/users/Geod24","html_url":"https://github.com/Geod24","followers_url":"https://api.github.com/users/Geod24/followers","following_url":"https://api.github.com/users/Geod24/following{/other_user}","gists_url":"https://api.github.com/users/Geod24/gists{/gist_id}","starred_url":"https://api.github.com/users/Geod24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geod24/subscriptions","organizations_url":"https://api.github.com/users/Geod24/orgs","repos_url":"https://api.github.com/users/Geod24/repos","events_url":"https://api.github.com/users/Geod24/events{/privacy}","received_events_url":"https://api.github.com/users/Geod24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-14T16:38:23Z","updated_at":"2015-06-14T16:38:23Z","closed_at":null,"body":"This is currently blocking #1091 \r\n\r\n```D\r\nunittest\r\n{\r\n       string getstr() { return \"Irrelevant\"; }\r\n\r\n       @before!getstr(\"irr\")\r\n       void foo(string irr, ref string ref_, out string out_)\r\n       {\r\n               assert(ref_ == \"ref\", ref_);\r\n               irr = \"Test1\";\r\n               ref_ = \"Test2\";\r\n               out_ = \"Test3\";\r\n       }\r\n\r\n       string r_ = \"ref\", o_ = \"out\";\r\n       auto funcattr = createAttributedFunction!foo;\r\n       funcattr(r_, o_);\r\n       assert(r_ == \"Test2\", r_);\r\n       assert(o_ == \"Test3\", o_);\r\n}\r\n```\r\n\r\nBoth `assert`s are triggered."}}