|
|
|
|
|
by wklieber
2254 days ago
|
|
>the original homogeneous operations (__builtin_smull_overflow, etc) led to very substantial correctness bugs when users had to pick a single common type for the operation and add conversions. Hi Stephen, thank you for bringing this to our attention. David Svoboda and I are now working to revise the proposal to add a supplemental proposal to support operations on heterogeneous types. We are leaning toward proposing a three-argument syntax, where the 3rd argument specifies the return type, like: ckd_add(a, b, T)
where a and b are integer values and T is an integer type, in addition to the two-argument form ckd_add(a, b)
(Or maybe the two-argument and three-argument forms should have different names, to make it easier to implement.) |
|