Travis Griggs
10/30/2019, 6:31 PMsomeByte == 13u
. Is it possible to implement an unbalanced equals override that will let me compare these without having to put toUByte() or toUInt() in everywhere. I tried something like:
fun UInt.equals(b:UByte) : Boolean {
return this == b.toUInt()
}
(and the reverse as well)
But == sites still complaindevbridie
10/30/2019, 6:55 PMinfix fun UByte.eq(other: UInt) = toUInt() == other
karelpeeters
10/30/2019, 9:31 PMTravis Griggs
10/31/2019, 4:31 AMsomeByte == 13u
, but rather someByte eq 13u
. Is that correct?