{"action":"created","issue":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/47","repository_url":"https://api.github.com/repos/kaleidicassociates/autowrap","labels_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/47/comments","events_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/47/events","html_url":"https://github.com/kaleidicassociates/autowrap/issues/47","id":392100797,"node_id":"MDU6SXNzdWUzOTIxMDA3OTc=","number":47,"title":"Can't wrap functions that return pointers to structs that can't be wrapped","user":{"login":"atilaneves","id":4956425,"node_id":"MDQ6VXNlcjQ5NTY0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/4956425?v=4","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"labels":[{"id":985822156,"node_id":"MDU6TGFiZWw5ODU4MjIxNTY=","url":"https://api.github.com/repos/kaleidicassociates/autowrap/labels/Python","name":"Python","color":"abfcc1","default":false},{"id":905873756,"node_id":"MDU6TGFiZWw5MDU4NzM3NTY=","url":"https://api.github.com/repos/kaleidicassociates/autowrap/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1165483255,"node_id":"MDU6TGFiZWwxMTY1NDgzMjU1","url":"https://api.github.com/repos/kaleidicassociates/autowrap/labels/pyd","name":"pyd","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"atilaneves","id":4956425,"node_id":"MDQ6VXNlcjQ5NTY0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/4956425?v=4","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"assignees":[{"login":"atilaneves","id":4956425,"node_id":"MDQ6VXNlcjQ5NTY0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/4956425?v=4","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-18T10:55:03Z","updated_at":"2018-12-19T00:44:55Z","closed_at":null,"author_association":"COLLABORATOR","body":"```d\r\nstruct Uncopiable {\r\n    @disable this(this);\r\n    double x;\r\n}\r\n\r\nexport auto uncopiablePtr(double d = 33.3) {\r\n    return new Uncopiable(d);\r\n}\r\n```\r\n\r\nCalling this from python: \r\n\r\n```python\r\nassert uncopiable_ptr(33.3).d == 33.3\r\n```\r\n\r\nYields:\r\n\r\n```\r\nRuntimeError: D conversion function d_to_python failed with type issues.Uncopiable*\r\n```\r\n\r\n`Uncopiable` isn't wrappable due to not being copiable, and as such it's not registered."},"comment":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/comments/448427064","html_url":"https://github.com/kaleidicassociates/autowrap/issues/47#issuecomment-448427064","issue_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/47","id":448427064,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODQyNzA2NA==","user":{"login":"Laeeth","id":6643582,"node_id":"MDQ6VXNlcjY2NDM1ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/6643582?v=4","gravatar_id":"","url":"https://api.github.com/users/Laeeth","html_url":"https://github.com/Laeeth","followers_url":"https://api.github.com/users/Laeeth/followers","following_url":"https://api.github.com/users/Laeeth/following{/other_user}","gists_url":"https://api.github.com/users/Laeeth/gists{/gist_id}","starred_url":"https://api.github.com/users/Laeeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laeeth/subscriptions","organizations_url":"https://api.github.com/users/Laeeth/orgs","repos_url":"https://api.github.com/users/Laeeth/repos","events_url":"https://api.github.com/users/Laeeth/events{/privacy}","received_events_url":"https://api.github.com/users/Laeeth/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T00:44:55Z","updated_at":"2018-12-19T00:44:55Z","author_association":"CONTRIBUTOR","body":"A pointer to a noncopyable struct should be fine - in fact if you can't copy it deal with a refcounted pointer to it.  Pyd does ref counting automatically.  Y\n"}}
{"actor":{"display_login":"Laeeth"}}