Portability bug in integral conversion
Jonathan M Davis
jmdavisProg at gmx.com
Sun Jan 16 19:46:23 PST 2011
On Sunday 16 January 2011 19:38:55 Andrei Alexandrescu wrote:
> On 1/16/11 9:32 PM, Graham St Jack wrote:
> > Is the cost of run-time checking really prohibitive?
>
> Yes. There is no question about that. This is not negotiable.
Well, since it would mean checking a condition every time that you did
arithmetic, that would likely _at least_ double the cost of doing any
arithmetic. And particularly since arithmetic is such a basic operation that
_everything else_ relies on, that could get really expensive, really fast.
Yeah. I don't think that that's negotiable. Absolutely best case, I could see
adding a compiler flag to enable it for debugging purposes, but it would
definitely be expensive to do such checks and would be totally unacceptable in
the release build of a systems programming language.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list