[Issue 11779] pointer to slice is not an input range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 8 12:13:23 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11779


Peter Alexander <peter.alexander.au at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.alexander.au at gmail.co
                   |                            |m


--- Comment #1 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-08 12:13:20 PST ---
I don't think this can work with random access ranges. Pointers already define
opIndex, so it can't be forwarded to pointee range.

I think the opposite of this request should be implemented: pointers should
specifically *not* be ranges, ever.

(as an aside, I dislike how D uses . for pointer member access instead of ->,
it's a massive hack in my opinion, and really unnecessary since pointers are
rarely used in D).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list