{"action":"created","issue":{"url":"https://api.github.com/repos/libmir/mir/issues/232","repository_url":"https://api.github.com/repos/libmir/mir","labels_url":"https://api.github.com/repos/libmir/mir/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/libmir/mir/issues/232/comments","events_url":"https://api.github.com/repos/libmir/mir/issues/232/events","html_url":"https://github.com/libmir/mir/issues/232","id":160430641,"number":232,"title":"convenience method to get the original array","user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars.githubusercontent.com/u/4370550?v=3","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libmir/mir/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-06-15T14:05:18Z","updated_at":"2016-08-17T12:45:59Z","closed_at":null,"body":"@9il I saw that people are fighting with the conversion from slices to ndslice and often result to `byElement.array`. How about making this more convenient and _faster_ by giving them easy access to original dynamic array?\r\n\r\nCould be something simple like:\r\n\r\n```d\r\nstatic if (isDynamicArray!Range && replaceArrayWithPointer)\r\n{\r\n    ElementType!(Range)[] array() const\r\n    {\r\n        return slice.ptr[0.. slice.elementsCount];\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/libmir/mir/issues/comments/240399956","html_url":"https://github.com/libmir/mir/issues/232#issuecomment-240399956","issue_url":"https://api.github.com/repos/libmir/mir/issues/232","id":240399956,"user":{"login":"ZombineDev","id":3475150,"avatar_url":"https://avatars.githubusercontent.com/u/3475150?v=3","gravatar_id":"","url":"https://api.github.com/users/ZombineDev","html_url":"https://github.com/ZombineDev","followers_url":"https://api.github.com/users/ZombineDev/followers","following_url":"https://api.github.com/users/ZombineDev/following{/other_user}","gists_url":"https://api.github.com/users/ZombineDev/gists{/gist_id}","starred_url":"https://api.github.com/users/ZombineDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZombineDev/subscriptions","organizations_url":"https://api.github.com/users/ZombineDev/orgs","repos_url":"https://api.github.com/users/ZombineDev/repos","events_url":"https://api.github.com/users/ZombineDev/events{/privacy}","received_events_url":"https://api.github.com/users/ZombineDev/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T12:45:59Z","updated_at":"2016-08-17T12:45:59Z","body":"Hi @9il! I didn't have much time lately, but think I've managed to implement `isContiguousInMemory`. I'm not sure if it's right approach, because I think it may have some overlap with the work you've been doing on `ndslice.algorithm`. Can you take a look at my solution and let me know if it's the right approach. If that's the case, I'll submit a Phobos PR. Here's my WIP commit: https://github.com/dlang/phobos/compare/master...ZombineDev:ndslice-contiguous-layout\r\nI still need to write proper documentation, but I think you should get the idea from the unittest."}}
{"actor":{"display_login":"ZombineDev"}}