Skip to content

Instantly share code, notes, and snippets.

@ponylang-gist
Created May 10, 2018 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponylang-gist/0844512372d0a5746bfd00cb1e092fef to your computer and use it in GitHub Desktop.
Save ponylang-gist/0844512372d0a5746bfd00cb1e092fef to your computer and use it in GitHub Desktop.
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