Skip to content

Instantly share code, notes, and snippets.

@taboege
taboege / rfc190.md
Created August 13, 2020 10:16
Raku 20th article about RFC 190

RFC 190, by Damian Conway: Objects : NEXT pseudoclass for method redispatch

@taboege
taboege / rfc190.md
Created August 13, 2020 10:12
Raku 20th article about RFC 190

RFC 190, by Damian Conway: Objects : NEXT pseudoclass for method redispatch

@taboege
taboege / rfc145.md
Created August 4, 2020 08:33
Raku 20th article about RFC 145

RFC 145, by Eric J. Roode: Brace-matching for Perl Regular Expressions

@taboege
taboege / enum-keyword.p6
Created May 29, 2019 12:12
Add smartmatch to an enum
#!/usr/bin/env perl6
enum Keyword «a b c»;
class C {
has %.keywords;
}
my $c = C.new: :keywords{(a) => True};
@taboege
taboege / qsort.p6
Created May 5, 2019 11:43
NativeCall callback signature syntax?
#!/usr/bin/env perl6
use NativeCall;
sub qsort(
CArray[int32] $base,
size_t $count,
size_t $size,
&compare:(
Pointer[int32] $ap,
@taboege
taboege / enter.p6
Created April 26, 2019 08:44
ENTER $H<> sometimes empty?
class A {
has $.x;
method WHICH {
ValueObjAt.new: "A|$!x.WHICH()"
}
}
# Whose images we collect.
my @G = A.new(x => 1);
@taboege
taboege / x.gbs3
Created April 9, 2019 10:12
Gambas Test
Public Sub Main()
For i As Integer = 1 To 10
Print i; "...";;
Next
Print
End