-
-
Save Skarsnik/df17adee07c18fa52c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use DUser; | |
class DChannel { | |
has Int $.id; | |
has Str $.name; | |
has DUser $.owner; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use DChannel; | |
class DUser { | |
has Int $.id; | |
has Str $.name; | |
has DChannel @.channels; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl6 -I . -e 'use DUser; use DChannel; say "Hello"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment