$, __dollar, opDollar: can't define my own?
Andrey Khropov
andkhropov_nosp at m_mtu-net.ru
Wed Oct 4 14:19:19 PDT 2006
Oskar Linde wrote:
> This may all be a bit overkill, but what would be really great is having a
> range type that a..b expands into at lest. That type could then support
> opApply making
>
> foreach(i; 0..10) { ... }
>
> possible for instance.
Yes, I'm also curious why slices aren't first class objects in D:
http://www.digitalmars.com/d/archives/40556.html.
It would be just so handy, especially if you do a lot of vector/matrix/tensor
operations. I just got sick and tired writing infinite
"for(int i = 0; i < n; ++i)" in my C++ code :(
--
AKhropov
More information about the Digitalmars-d
mailing list