[just talk] what if implicitly typed literals were disallowed
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Oct 25 10:21:20 PDT 2012
On Thu, Oct 25, 2012 at 01:40:19AM +0200, Adam D. Ruppe wrote:
> BTW, bearophile, we've talked about runtime overflow checks before.
> I'm generally against them, but if we had user defined basic types,
> we could implement them in the library (already possible, though
> some important optimization opportunities are missed on it right now
> which is a potential practical problem).
Didn't Andrei give a working example of that in TDPL?
> But then we could make all ints use the special overflow checked
> type too by changing a line in druntime.
[...]
Yeah that would be neat.
T
--
Some ideas are so stupid that only intellectuals could believe them. -- George Orwell
More information about the Digitalmars-d
mailing list