Tíquete #36905

faild to translate from [ to [

: 2016-12-29 03:23 Última Atualização: 2021-01-25 17:45

Relator:
(Anônimo)
Dono:
Estado:
Fechado
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

In the original sentence, the definition of variable is as follows.

# assign a reference to array of array references $ref_to_AoA = [
[ "fred", "barney", "pebbles", "bambam", "dino", ], [ "george", "jane", "elroy", "judy", ], [ "homer", "bart", "marge", "maggie", ],
]; say $ref_to_AoA->21;
bart

On the other hand, the translated version is as follows,

# 配列に配列への参照の配列を代入する @AoA = (
[ "fred", "barney" ], [ "homer", "marge", "bart" ], [ "george", "jane", "elroy" ],
); say $ref_to_AoA->21;
bart

It is clear to forget to keep [ in the definition of @AoA.

Ticket History (3/3 Histories)

2016-12-29 03:23 Updated by: None
  • New Ticket "faild to translate from [ to [" created
2017-01-17 02:22 Updated by: argrath
Comentário

Thanks for report. Commited fixes.

2021-01-25 17:45 Updated by: peanutsjamjam
  • Estado Update from Aberto to Fechado
  • Dono Update from (Nenhum) to argrath
  • Resolução Update from Nenhum to Fixed
  • Details Updated

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login