Array start index

Bastiaan Veelo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 8 03:23:12 PST 2017


Wrapup: I am going to go for the original approach of index 
conversion, and leaving the offset-pointer approach for what it 
is.

Reasons:
1) uncertain efficiency gain/loss,
2) theoretically it may fail,
3) .sizeof does not include the payload,
4) analysis of the assembler generated by our reference compiler 
(Prospero) shows that it also uses index conversion. 
(Interestingly, it does so at compile time, when possible).

Thanks for many interesting insights.

Bastiaan.


More information about the Digitalmars-d-learn mailing list