Iterators for D
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Nov 6 19:11:34 PST 2006
"Walter Bright" <newshound at digitalmars.com> wrote in message
news:eiosro$28g6$1 at digitaldaemon.com...
> The problem is if the iterator is an actual pointer, there is no .value
> property for a pointer.
>
> Another possibility is to have:
> *x
> rewritten to:
> x[0]
> if x is not a pointer.
And yet another is to allow overriding of opDeref and opDerefAssign ;)
Which would, of course, be the _optimal_ solution, but..
More information about the Digitalmars-d
mailing list