$ for length?

bearophile bearophileHUGS at lycos.com
Thu Feb 20 02:33:08 PST 2014


Steve Teale:

> How difficult would it be to allow the '$' to be used instead of
> length in something like:
>
> Thing[] ta;
> for (size_t i = 0; i < ta.$; i++)
>
> It can be used in slices, and indexes, so it might well be
> unambiguous here.

You can vote it:
https://d.puremagic.com/issues/show_bug.cgi?id=7840

Bye,
bearophile


More information about the Digitalmars-d mailing list