On Friday, 13 January 2017 at 12:53:16 UTC, Nick Treleaven wrote:
On Friday, 13 January 2017 at 05:33:07 UTC, Chris Wright wrote:
On that topic, D's arrays would play nicer with both refcounting *and* modern garbage collectors if they were structured as base, offset, length instead of start, length.


That might be slower sometimes as slices wouldn't fit in two registers then.

Although for custom data structures, offset & length could often share one register. Then the magic looking up of the base address can be avoided, saving time.

Reply via email to