#538: NQP list initializers
----------------------+-----------------------------------------------------
  Reporter:  bsdz     |        Type:  bug   
    Status:  closed   |    Priority:  normal
 Milestone:           |   Component:  nqp   
   Version:  trunk    |    Severity:  medium
Resolution:  invalid  |    Keywords:        
      Lang:           |       Patch:        
  Platform:  all      |  
----------------------+-----------------------------------------------------
Changes (by pmichaud):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Short answer:  Parens are not used to create lists or arrays in NQP (or
 Perl 6) -- that's the role of the comma.

 In nqp-rx (the new version of NQP), one can force array creation by using
 square brackets, as in

 {{{
 my @list := [10];
 }}}

 Closing ticket,

 Pm

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/538#comment:2>
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