Why exceptions for error handling is so important

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 15:26:52 PST 2015


On Mon, Jan 12, 2015 at 11:17:24PM +0000, deadalnix via Digitalmars-d wrote:
> On Monday, 12 January 2015 at 22:17:57 UTC, Walter Bright wrote:
> >Yes, it does. Returning an int in EAX now becomes returning a pair
> >[EAX,EDX].
> 
> It is not that big of a deal, EDX is a trash register anyway if memory
> serve, but then, it become very bad when it do not fit in register
> anymore.

On the contrary, it's an extremely big deal. Registers are a rare
resource, and allocating them for maximal usefulness is a major issue in
code optimization.


T

-- 
A mathematician is a device for turning coffee into theorems. -- P. Erdos


More information about the Digitalmars-d mailing list