{"action":"created","issue":{"url":"https://api.github.com/repos/radiotail/eluna/issues/2","labels_url":"https://api.github.com/repos/radiotail/eluna/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/radiotail/eluna/issues/2/comments","events_url":"https://api.github.com/repos/radiotail/eluna/issues/2/events","html_url":"https://github.com/radiotail/eluna/issues/2","id":49986413,"number":2,"title":"Maybe Is there a problem that when returning by reference.","user":{"login":"imane-jym","id":9943858,"avatar_url":"https://avatars.githubusercontent.com/u/9943858?v=3","gravatar_id":"","url":"https://api.github.com/users/imane-jym","html_url":"https://github.com/imane-jym","followers_url":"https://api.github.com/users/imane-jym/followers","following_url":"https://api.github.com/users/imane-jym/following{/other_user}","gists_url":"https://api.github.com/users/imane-jym/gists{/gist_id}","starred_url":"https://api.github.com/users/imane-jym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imane-jym/subscriptions","organizations_url":"https://api.github.com/users/imane-jym/orgs","repos_url":"https://api.github.com/users/imane-jym/repos","events_url":"https://api.github.com/users/imane-jym/events{/privacy}","received_events_url":"https://api.github.com/users/imane-jym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-25T07:54:00Z","updated_at":"2015-01-30T14:27:16Z","closed_at":null,"body":"I like eluna very much. I find an issue.\r\nThe following code snippet(testInterface.cpp, testInterface.lua):\r\nC++\r\nTestObj& testObjRef(TestObj& p) {        \r\n    p.m_name = \"TestObjRef Changed\";     \r\n    return p;                            \r\n} \r\nlua\r\nlocal objRef = TestObj(\"TestObjRef\")   \r\nlocal a = cppTest:testObjRef(objRef)   \r\nprint(\"testObjRef: \", a, objRef)       \r\nobjRef:print()                         \r\na:print()                              \r\noutput:\r\ntestObjRef:     userdata: 0x120b598     userdata: 0x120b538\r\nhello world: TestObjRef Changed [0x120b4f0]\r\nhello world: TestObjRef Changed [0x120b5b0]\r\n\r\nI think \"objRef:print\" should be the same with \"a:print\".  because testObjRef return a  reference. But It is not same in fact that one's address is 0x120b4f0 and another's address is 0x120b5b0.                                        "},"comment":{"url":"https://api.github.com/repos/radiotail/eluna/issues/comments/72208636","html_url":"https://github.com/radiotail/eluna/issues/2#issuecomment-72208636","issue_url":"https://api.github.com/repos/radiotail/eluna/issues/2","id":72208636,"user":{"login":"radiotail","id":2026221,"avatar_url":"https://avatars.githubusercontent.com/u/2026221?v=3","gravatar_id":"","url":"https://api.github.com/users/radiotail","html_url":"https://github.com/radiotail","followers_url":"https://api.github.com/users/radiotail/followers","following_url":"https://api.github.com/users/radiotail/following{/other_user}","gists_url":"https://api.github.com/users/radiotail/gists{/gist_id}","starred_url":"https://api.github.com/users/radiotail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiotail/subscriptions","organizations_url":"https://api.github.com/users/radiotail/orgs","repos_url":"https://api.github.com/users/radiotail/repos","events_url":"https://api.github.com/users/radiotail/events{/privacy}","received_events_url":"https://api.github.com/users/radiotail/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T14:27:16Z","updated_at":"2015-01-30T14:27:16Z","body":"Sorry, I see this issue too late.  I have fixed this issue in new version. Thanks."}}