| [Coke] | tbrowder: what's the link to the ticket? | 00:37 | |
| does "zef test ." hit it? | 00:41 | ||
| tbrowder: your file is named incorrectly. Commented on your App::Mi6 ticket. | 01:07 | ||
| tbrowder | arg, i'm back in 1st grade again :-( | 01:17 | |
| and blind as a bat. thanks, [Coke], you saved me again! | 01:24 | ||
|
01:32
hulk joined
01:33
kylese left
|
|||
| Voldenet | nqp: class EEK {method Int() {return 3}}; my $a:= EEK.new(); say(+$a); # this works | 01:38 | |
| camelia | We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility… |
||
| Voldenet | …should | ||
| which makes me wonder if that's intentional or buggy | 01:39 | ||
| nqp: class EEK { method Int() { return 3 }}; my $a:= EEK.new(); say(nqp::intify($a)); # more working examples | 01:41 | ||
| camelia | We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility… |
||
| Voldenet | nqp: class EEK { method Num() { return 3.0 }}; my $a:= EEK.new(); say(nqp::numify($a)); # same for Num | ||
| camelia | We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility… |
||
| Voldenet | the whole nqp source doesn't have `Numeric` in it | 01:44 | |
| I'm guessing doing `+nqp::numify($a)` automatically is wrong, because it wrecks precision | 01:48 | ||
| might, at least | 01:50 | ||
| so instead of 1e40 you get -something | 01:51 | ||
| It could make sense the other way | 01:52 | ||
| xinming | m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<[-] + alnum>+]/) { $<x>.Str.say; } | ||
| camelia | aaaxxx-_ | ||
| xinming | m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<alnum + [-]>+]/) { $<x>.Str.say; } | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Quantifier quantifies nothing at <tmp>:1 ------> "aaaxxx-_"; if ($s ~~ /$<x> = [<alnum +<HERE> [-]>+]/) { $<x>.Str.say; } |
||
| xinming | In this case, How do we make the second work? | 01:53 | |
| Also, I saw there is something like 'regex { }', I got curious, why not also 'token { }' :-) | 01:58 | ||
| seems, No syntax for '<alnum + [-]>+', never mind, will stick with '<[-] + alnum>' | 02:08 | ||
|
02:15
hulk left,
kylese joined
04:01
hwj joined
04:07
hwj left
04:19
vrurg_ joined
04:21
vrurg left
|
|||
| xinming | m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<+alnum + [-]>+]/) { $<x>.Str.say; } | 04:48 | |
| camelia | aaaxxx-_ | ||
|
04:58
wayland joined
04:59
wayland76 left
05:17
hwj joined
05:19
human-blip left
05:21
human-blip joined
|
|||
| Voldenet | I'm not sure but | 05:44 | |
| m: my $s = "aaaxxx-_"; if ($s ~~ / $<x> = [<alnum> | <[-]>]+ /) { $<x>.Str.say; } # perhaps this | |||
| camelia | aaaxxx-_ | ||
| Voldenet | it's probably entirely different performance-wise | 05:45 | |
| in fact you don't need character class | 05:46 | ||
| m: my $s = "aaaxxx-_"; if ($s ~~ / $<x> = [<alnum> | '-']+ /) { $<x>.Str.say; } | |||
| camelia | aaaxxx-_ | ||
| Voldenet | yeah, it's 50% slower as expected | 05:49 | |
|
06:17
ShimmerFairy left
06:39
Sgeo left
|
|||