Re: comments on array proposal


Subject: Re: comments on array proposal
From: Paul Graham (pgraham@cadence.com)
Date: Thu Apr 11 2002 - 08:10:49 PDT


> It's too bad we don't follow perl...
>
>
> foreach my $i ($range(A, 1))
> ...
>
> Range would return the range of indices for iteration purposes.

That's exactly how vhdl does it:

    for i in A'range(1) loop
        ...
    end loop;

Paul



This archive was generated by hypermail 2b28 : Thu Apr 11 2002 - 08:13:33 PDT