Length of fixed size arrays

Jonathan M Davis jmdavisProg at gmx.com
Sat Nov 17 11:03:35 PST 2012


On Saturday, November 17, 2012 17:55:37 Andrej Mitrovic wrote:
> On 11/17/12, Benjamin Thaut <code at benjamin-thaut.de> wrote:
> > I'm not quite sure if the .length property of a static
> > array is always a compile time constant.
> 
> When is it not a constant?

It's always a constant. The length of static arrays must always be known at 
compile time.

- Jonathan M Davis


More information about the Digitalmars-d mailing list