$ for length?

bearophile bearophileHUGS at lycos.com
Thu Feb 20 06:04:48 PST 2014


w0rp:

> length is much easier to read, especially for people new to the 
> language.

But such new people find code like:  a[$ - 1]  so they need to 
know the meaning of $.

Bye,
bearophile


More information about the Digitalmars-d mailing list