Type of Array.length?

Heinz billgates at microsoft.com
Sat Jan 20 13:02:51 PST 2007


Daniel Keep Wrote:

> Heinz wrote:
> > Hi,
> > 
> > I just want to know what type is the one returned by the .length property of an array.
> > 
> > Thanks.
> 
> When in doubt, find out!
> 
> import std.stdio;
> 
> void main()
> {
>      char[] foo;
>      writefln("typeof(array.length) == %s", typeid(typeof(foo.length)));
> }

Cool man, thanks, this is what i need.



More information about the Digitalmars-d-learn mailing list