Short list with things to finish for D2

Travis Boucher boucher.travis at gmail.com
Tue Nov 24 13:46:39 PST 2009


Denis Koroskin wrote:
> On Tue, 24 Nov 2009 14:00:18 +0300, Gerrit Wichert <gw at green-stores.de> 
> wrote:
> 
>> how about opLimit ?
> 
> I recall that Visual Basic has UBound function that returns upper bound 
> of a multi-dimensional array:
> 
> Dim a(100, 5, 4) As Byte
> 
> UBound(a, 1) -> 100
> UBound(a, 2) -> 5
> UBound(a, 3) -> 4
> 
> Works for single-dimensional arrays, too:
> 
> Dim b(8) As Byte
> UBound(b) -> 8

See the length property.

char[] a = "Hello, World!";  // a.length = 13



More information about the Digitalmars-d mailing list