Skip to content

Instantly share code, notes, and snippets.

View scriplit's full-sized avatar

Ennio Zarlenga scriplit

View GitHub Profile
@scriplit
scriplit / main1-out.txt
Last active September 6, 2019 08:12
inheritance and multi-methods
>perl6 main1.p6
((UnlovedChild) (DrunkenMother) (MissingFather) (Any) (Mu))
Where's my beer?!
Cannot resolve caller shout(UnlovedChild:U: ); none of these signatures match:
(DrunkenMother: $message, *%_)
in block <unit> at main.1.p6 line 21
use v6;
use NativeCall;
class LDAPHandle is repr('CPointer') { }
class LDAPMessage is repr('CPointer') { }
class timeval is repr('CStruct') {
has long $tv_sec;
has long $tv_usec;
}
@scriplit
scriplit / md-file.md
Created June 9, 2014 09:12
Perl6: read strings from file & convert with Text::Markdown

bold and italic