Skip to content

Instantly share code, notes, and snippets.

@Xe Xe/ppap.nim
Created Jun 30, 2017

Embed
What would you like to do?
type
πŸ–‹ = object
🍎 = object
🍍 = object
πŸŽπŸ–‹ = object
πŸπŸ–‹ = object
proc `$`(p: πŸ–‹): string = "πŸ–‹ "
proc `$`(a: 🍎): string = "🍎 "
proc `$`(p: 🍍): string = "🍍 "
proc `$`(ap: πŸŽπŸ–‹): string = "πŸŽπŸ–‹ "
proc `$`(pp: πŸπŸ–‹): string = "πŸπŸ–‹ "
echo πŸ–‹(), 🍎(), " -> ", πŸŽπŸ–‹()
echo πŸ–‹(), 🍍(), " -> ", πŸπŸ–‹()
echo πŸŽπŸ–‹(), πŸπŸ–‹()
echo πŸ–‹(), 🍍(), 🍎(), πŸ–‹()
[~/c/c/t/ppap] : ./ppap
πŸ–‹ 🍎 -> πŸŽπŸ–‹
πŸ–‹ 🍍 -> πŸπŸ–‹
πŸŽπŸ–‹ πŸπŸ–‹
πŸ–‹ 🍍 🍎 πŸ–‹
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.