implicit construction operator
aliak
something at something.com
Tue Feb 27 14:20:12 UTC 2018
On Tuesday, 27 February 2018 at 13:36:30 UTC, ketmar wrote:
> aliak wrote:
>
>> On Monday, 26 February 2018 at 21:34:21 UTC, ketmar wrote:
>>> aliak wrote:
>>>
>>>> And if that's also a no no, how about char -> int. Or int ->
>>>> float? Is ok?
>>>
>>> no, it is not ok. it was a mistake. it is now too late to fix
>>> it, but we can avoid doing more of the same kind.
>>
>> Oops, yeah, ok, D char ... char -> int yeah mistake.
>>
>> int -> long even?
>
> can you see a difference between *charactes* and *integers*? i
> can.
Yes I can. That's why I said it was a mistake. A BigInt -> Int
would also be integers. But a f(BigInt i) cannot be called with
f(3) where as f(long i) can. So not sure what your point is.
More information about the Digitalmars-d
mailing list