core icon indicating copy to clipboard operation
core copied to clipboard

conversion function for basic types

Open Yoorkin opened this issue 1 year ago • 2 comments

  • [x] Char

    • to_uint : char.to_uint() is equivalent to char.to_int().reinterpret_as_uint()
  • [x] Byte

    • to_uint64
    • to_double
  • [ ] Int64

    • to_uint
  • [x] Move UInt::to_byte to builtin package because it's useful in here. Should we also move UInt::to_uint64?

  • [x] Int::to_uint64

Yoorkin avatar Oct 11 '24 10:10 Yoorkin

Move UInt::to_byte to builtin package because it's useful in here. Should we also move UInt::to_uint64?

This is in uint pkg because we want to reduce the number of func in builtin and UInt::to_byte was removed from builtin as a result. Is this the final decision?

Also byte to double is really weird.

As per discussion offline, some API changes are postponed.

qazxcdswe123 avatar Oct 12 '24 07:10 qazxcdswe123

Float?

Lampese avatar Oct 30 '24 11:10 Lampese