{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d1588981e0248aaa0174906c99df180e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d1588981e0248aaa0174906c99df180e","url":"https://api.github.com/users/petdance","login":"petdance","id":41100},"assignee":null,"updated_at":"2011-11-01T05:39:30Z","labels":[{"name":"bug","color":"AF3AC4","url":"https://api.github.com/repos/petdance/scratch/labels/bug"},{"name":"Pri-normal","color":"5B4E39","url":"https://api.github.com/repos/petdance/scratch/labels/Pri-normal"},{"name":"Sev-medium","color":"F9ECA1","url":"https://api.github.com/repos/petdance/scratch/labels/Sev-medium"}],"closed_at":null,"comments":0,"url":"https://api.github.com/repos/petdance/scratch/issues/1175","body":"Calling a sub with duplicate named args:\n{{{\r\n.sub main :main\r\n\tfoo( 1 :named('a'), 2 :named('a') )\r\n.end\r\n}}}\r\ntriggers an error:\r\n{{{\r\nduplicate named argument in call\r\ncurrent instr.: 'main' pc 0 (test.pir:4)\r\n}}}\r\n\r\nUnfortunately, this means that setting defaults in a hash, then flattening the hash together with any explicit named args, is no longer a valid way to handle argument defaulting.\r\n \r\nGiven that, either (1) this is a bug, and duplicate named args should be permitted; or (2) this is the official new way, in which case what is the model for arg-defaulting?\r\n\r\n\r\nOriginally http://trac.parrot.org/parrot/ticket/1515","html_url":"https://github.com/petdance/scratch/issues/1175","title":"Duplicate named args cause fatal error in subs","number":1175,"id":2106879,"created_at":"2011-11-01T05:39:30Z"},"action":"opened"}