#1515: Duplicate named args cause fatal error in subs
-----------------------------+----------------------------------------------
 Reporter:  Austin_Hastings  |       Owner:  whiteknight
     Type:  bug              |      Status:  new        
 Priority:  normal           |   Milestone:             
Component:  none             |     Version:  2.2.0      
 Severity:  medium           |    Keywords:             
     Lang:                   |       Patch:             
 Platform:                   |  
-----------------------------+----------------------------------------------

Comment(by coke):

 Seems like  a hash is a potential solution to this:

 {{{
 .sub main :main
     .param pmc opts
     opts = new 'Hash'
     opts['a'] = 1
     opts['a'] = 2
     foo( opts :flat )
 .end

 .sub foo
   .param int a :named
   say a
 .end
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1515#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to