RE: [sv-ec] foreach iterates over unpacked arrays

From: Rich, Dave <Dave_Rich_at_.....>
Date: Sun Feb 05 2006 - 22:13:02 PST
Actually, the proposal mentions a change in the dimension of a
dynamically sized array, which includes associative arrays

> -----Original Message-----
> From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Brad
> Pierce
> Sent: Sunday, February 05, 2006 1:09 PM
> To: sv-ec@eda.org
> Subject: Re: [sv-ec] foreach iterates over unpacked arrays
> 
> Dave,
> 
> Your proposal for http://eda.org/svdb/bug_view_page.php?bug_id=1306
> mentions about the changing of size of a dynamic array dimension while
> iterating over it with foreach, but not about the changing of entries
in
> an associative dimension.
> 
> -- Brad
> 
> -----Original Message-----
> From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
> Rich, Dave
> Sent: Monday, January 23, 2006 7:39 AM
> To: Bresticker, Shalom; sv-ec@eda.org
> Subject: RE: [sv-ec] foreach iterates over unpacked arrays
> 
> Thanks. I am enjoying my week of fame.
> 
> What I was trying to say about queues was that the text was cut and
> pasted from Vera, which had no packed arrays or queues at the time. So
> any type of array is legal.
> 
> 
> I am rewriting the proposal, trying to come up with a description for
> fact that you don't need commas (,) at the end of the list to indicate
> omitted variables, but I don't see that wording anywhere else. Is the
> BNF sufficient? I would have thought it would have been there for
lists
> of port connections, or lists of arguments for tasks, functions.
> 
> Also, I'm assuming if the user changes the size of the array during a
> foreach, the results are undefined and may cause an illegal index
value
> to be generated.
> 
> Dave
> 
> 
> > -----Original Message-----
> > From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com]
> > Sent: Monday, January 23, 2006 1:13 AM
> > To: Rich, Dave; sv-ec@eda.org
> > Subject: RE: [sv-ec] foreach iterates over unpacked arrays
> >
> > Dave,
> >
> > Congratulations on your IEEE award.
> >
> > Your statement was unclear: are queues allowed or not?
> >
> > When are the index value sets evaluated? That is, if one or more of
> the
> > dimensions is dynamic, what happens if the array size changes in the
> > middle of the foreach loop execution?
> >
> > In the statement,
> >
> > "Empty loop variables can be used to indicate no iteration over that
> > dimension of the array, and contiguous empty loop variables towards
> the
> > end can be omitted,"
> >
> > the first part can be rephrased as
> > "Loop variables may be omitted to indicate ..".
> >
> > Shalom
> >
> > ________________________________________
> > From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
> > Rich, Dave
> > Sent: Wednesday, January 18, 2006 2:19 AM
> > To: Arturo Salz; Steven Sharp; sv-ec@eda.org
> > Subject: RE: [sv-ec] foreach iterates over unpacked arrays
> >
> > OK, then how about just removing the parenthetical clause
(fixed-size,
> > dynamic, or associative)
> > which is in fact the different forms of an unpacked array, minus
> queues.
> > There is no reason this clause should be there.
> >
> > Regarding index variables, an empty variable usually refers to the
> > contents of that variable. You can have unspecified index variables,
> or
> > empty index variable arguments. Any other ideas?
> >
> > Dave
> 
Received on Sun Feb 5 22:13:17 2006

This archive was generated by hypermail 2.1.8 : Sun Feb 05 2006 - 22:16:14 PST