$ for length?

Frustrated c1514843 at drdrb.com
Thu Feb 20 10:35:26 PST 2014


On Thursday, 20 February 2014 at 10:28:43 UTC, Steve Teale wrote:
> 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.

it's ugly, how about ta.opLength = $ta = ta.length?


More information about the Digitalmars-d mailing list