Questions tagged «routines»

1
为什么默认的Raku if / while / loop / when块都具有相同的标识值(.WHICH)?
除了我声明签名的代码块外,所有代码块都具有相同的标识值,并声称无论在何处都在第1行声明。有人能解释为什么会这样吗? say 「Let's look at some blocks…」; if True { &?BLOCK.say; } while True { &?BLOCK.say; last; } loop { &?BLOCK.say; last; } if True -> | { 「I'm different!」.say; &?BLOCK.say; } when ?True { &?BLOCK.say; }
9 raku  routines 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.