Ticket #36905

faild to translate from [ to [

Eröffnet am: 2016-12-29 03:23 Letztes Update: 2021-01-25 17:45

Auswertung:
(Anonym)
Verantwortlicher:
Status:
Geschlossen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

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-Verlauf (3/3 Historien)

2016-12-29 03:23 Aktualisiert von: None
  • New Ticket "faild to translate from [ to [" created
2017-01-17 02:22 Aktualisiert von: argrath
Kommentar

Thanks for report. Commited fixes.

2021-01-25 17:45 Aktualisiert von: peanutsjamjam
  • Status Update from Offen to Geschlossen
  • Verantwortlicher Update from (Keine) to argrath
  • Lösung Update from Keine to Gefixt
  • Details Updated

Dateianhangliste

Keine Anhänge

Bearbeiten

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