Re: valid values?

2019-04-18 Thread mimosinnet
El Sunday, 03 de March del 2019 a les 02:09, ToddAndMargo via perl6-users va escriure: I want to pass an integer to a sub. The only valid values of the integer are 1, 2, 4, 8, and 16. Other than using "if" to test their values, is there a way to state that an integer can only have certain pre

lib for non-core, non-installed modules

2019-04-18 Thread mimosinnet
Dear perl6 community, I wonder what would be the right syntax for non-core, non-installed modules as discussed in StackOverflow? [1]. In other words, something similar to FindBin::libs in perl5. The solution I have come across is: use lib $*PROGRAM.dirname.IO.add('../lib'); Is there a bett