Why I Use D

Scott S. McCoy tag at cpan.org
Fri Apr 11 00:31:06 PDT 2008


I don't think that's any fair, partially because I would have never
assumed that would even work.

you would say:

array[ 5 .. foo(array.length) ] naturally, and at the office in a code
review if I saw someone doing foo($) I would explicitly ask them to
change it to foo(array.length) anyway.

On Sun, 2008-03-30 at 19:04 -0700, Walter Bright wrote:
> Scott S. McCoy wrote:
> > You also could if array[5 .. -3] implied length -3.
> 
> How would I do:
> 
> 	array[5 .. foo($)]
> 
> ?




More information about the Digitalmars-d mailing list