Why Strings as Classes?

BCS ao at pathlink.com
Mon Aug 25 18:16:17 PDT 2008


Reply to Benji,

> But check this out... you can have your fast class, and I can have my
> slow class, and they can both implement the same interface. Like this:
> 

No, you can't.

The overhead needed to implement that is EXACTLY what we are unwilling to 
use.

I want an indexed array load

x = arr[i];

to be:

-- load arr.ptr into a reg
-- add i to that reg
-- indirect load that into i


3 ASM ops.

If you can get that and what you want, go get a PhD. You will have earned it.





More information about the Digitalmars-d mailing list