{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4249","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4249/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4249/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4249/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4249","id":79929614,"number":4249,"title":"Skip class if empty","user":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-05-23T19:13:42Z","updated_at":"2015-11-23T12:21:17Z","closed_at":null,"body":"Sometimes in the class path you can have some std class that you want to override depending on the flags/platform. ATM this is not possible. I propose that if the parsed class is empty (no type definition) we resume to the next class path instead of accepting this module.\r\n\r\nPractical case : nodejs library override haxe.io.Bytes by using NodeBuffer data. I would like to be able to disable this override when I compile with a define since it breaks some other code using bytes+native typed arrays when doing NodeJSWebkit which has both HTML and NodeJS backend."},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/158918061","html_url":"https://github.com/HaxeFoundation/haxe/issues/4249#issuecomment-158918061","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4249","id":158918061,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:21:17Z","updated_at":"2015-11-23T12:21:17Z","body":"This is quite awkward to implement. I got it working by having an additional `empty_files` Hashtbl in the context which `find_file` checks. This is not very elegant and requires \"restarting\" the lookup on empty modules. Maybe I'm missing a more obvious approach here."}}