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


<flussence> rakudo: say "good {<morning day
evening>[DateTime.now.hour.Int div 8]}, #perl6"
<p6eval> rakudo 2c8bb8: OUTPUT«good day, #perl6␤»
<masak> flussence++
<moritz_> "hello my friend, how are you, good evening, day or
morning\n I'm as happy to see you as the last time I was here 'cause
this is a recording"
<moritz_> (Rob Paravonian)++
<LoRe> why is .Int required in [DateTime.now.hour.Int div 8] ?
<masak> LoRe: because `div` isn't specific to Ints.
<flussence> rakudo: say DateTime.now.hour.WHAT
<p6eval> rakudo 2c8bb8: OUTPUT«Num()␤»
<masak> oh, and that.
<masak> maybe .hour should return an Int already.
<flussence> seems like the sensible thing to do
<masak> aye.
* masak submits rakudobug

Reply via email to