These tests were changed with https://github.com/perl6/roast/commit/9a266114ab
(and they are passing now).
I'm closing this ticket as 'resolved'.
All the tests fudged with this ticket number are passing now:
https://github.com/perl6/roast/commit/8d39a9b0c86c21901824716398f74b3ab4016733
I'm closing this ticket as 'resolved'.
Actually, this is a better version, since it takes care to not consider, say,
4.4 as a Int:
given quietly val prompt('int: ') || NaN {
when Int { say "you just entered the integer $_"; }
default { say "that was totally not an integer" }
}
On Tue Oct 25 10:15:56 2016, c...@zoffix.com
Thanks for the report,
First to clarify: Nil.Int is *not* an error as you state, it's a warning and
you can suppress it with `quietly` block. A numeric Nil is 0, which is what you
get in return.
As for the problem you're trying to solve, you can use the following code. If a
Nil is returned
In a conversation about this issue on IRC channel #perl6 on 25 Oct 2016
starting at approx 06:24, module authors and users express concern about
modules polluting the user's namespace.
Several main desires IMHO:
User:
1. Selective import by object name(s) or tag(s).
2. Selective import by