{"issue":{"created_at":"2011-11-01T11:25:19Z","state":"open","updated_at":"2011-12-10T00:22:43Z","comments":3,"user":{"gravatar_id":"cbce27a79d983bbc9f52b208b8e1715b","id":902877,"url":"https://api.github.com/users/deltaluca","avatar_url":"https://secure.gravatar.com/avatar/cbce27a79d983bbc9f52b208b8e1715b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"deltaluca"},"body":"haxe 2.09-r4011, haxe 2.09-r4061 both fail the unit tests:\r\n\r\n\r\nClass: GSwitchTest ..FE...........\r\n* GSwitchTest::testHaxeSwitch1()\r\nERR: GSwitchTest.hx:37(GSwitchTest.testHaxeSwitch1) - expected '1' but was '0'\r\n\r\nCalled from haxe/unit/TestCase.hx line 70\r\nCalled from GSwitchTest.hx line 37\r\nCalled from a C function\r\nCalled from haxe/unit/TestRunner.hx line 119\r\n\r\n* GSwitchTest::testHaxeSwitch3()\r\nERR: exception thrown : Invalid field access : index\r\n\r\nCalled from GSwitchTest.hx line 57\r\nCalled from a C function\r\nCalled from haxe/unit/TestRunner.hx line 119\r\n\r\n\r\nFAILED 15 tests, 2 failed, 13 success\r\n\r\n----------\r\n\r\nAlso that not even something simple like: Hxpat.gswitch(e, tInt(0) = 0, _ = 1); for instance fails that we can't perform a normal haxe switch on tInt(0). And also things like tAdd(tInt(x),tInt(y)) = tInt(x+y)  (in a gswitch) will complain that x,y are not defined (in both occurences) :P","assignee":null,"id":2109288,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":1,"title":"Simply does not work properly with recent haxe.","html_url":"https://github.com/robinp/hxpattern/issues/1","closed_at":null,"url":"https://api.github.com/repos/robinp/hxpattern/issues/1","milestone":null},"action":"created","comment":{"created_at":"2011-12-10T00:22:43Z","updated_at":"2011-12-10T00:22:43Z","user":{"gravatar_id":"cbce27a79d983bbc9f52b208b8e1715b","id":902877,"url":"https://api.github.com/users/deltaluca","avatar_url":"https://secure.gravatar.com/avatar/cbce27a79d983bbc9f52b208b8e1715b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"deltaluca"},"body":"I cannot do that right now (also lacking time). When I discovered this I had a look at trying to see what the problem is, but lacking experiance with haxe macros and not fully understanding the generated code from the horrible haxe AST representation :P I ended up implementing my own subset of your functionality for my project.","id":3088109,"url":"https://api.github.com/repos/robinp/hxpattern/issues/comments/3088109"}}