Created
May 10, 2018 19:45
-
-
Save ponylang-gist/0844512372d0a5746bfd00cb1e092fef to your computer and use it in GitHub Desktop.
Shared via Pony Playground (https://playground.ponylang.org/?gist=0844512372d0a5746bfd00cb1e092fef)
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
actor Main | |
new create(env: Env) => | |
do_mulc[I8]() | |
do_mulc[I16]() | |
do_mulc[I32]() | |
do_mulc[I64]() | |
do_mulc[I128]() | |
fun do_mulc[T: (Int & Integer[T] val)](): (T, Bool) => | |
let one = T.from[U8](1) | |
let two = T.from[U8](2) | |
one.mulc(two) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment