FAQ
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #127789]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127789 >


<masak> m: enum Stone «:None<.> :Vertical<V> :Horizontal<H>
:Neutral<n>»; my %h = Stone.enums.invert; say %h.perl
<camelia> rakudo-moar 1d1256: OUTPUT«{"." => "None", :H("Horizontal"),
:V("Vertical"), :n("Neutral")}␤»
<masak> I haven't thought hard about this, but it would be more useful
in this case to get the enum *values* in the hash values
<masak> not their string names
* masak submits rakudobug, just in case he's right

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupperl6-compiler @
categoriesperl
postedMar 26, '16 at 1:44p
activeMar 26, '16 at 7:59p
posts2
users2
websiteperl6.org

People

Translate

site design / logo © 2019 Grokbase