S
Sudoer
I often use records within records, or records within records within
records, ad nausea. It's nice that I can currently do the following:
A.A.A <= X;
A.A.B <= Y;
A.A.C <= Z;
However, there's a lot of repetition in my code, so I often prefer the
following:
A <= ( A => ( A => X,
B => Y,
C => Z ) );
The benefit is more noticeable with long and descriptive names for the
elements, but the problem is that if my intention is to set only the
A, B, and C leaf elements and leave any others unchanged it doesn't
seem possible. Is there anything in the 2002 or 2008 standard that
allows this, is there any reason this shouldn't be allowed, or is it
time that I propose an overloaded use of the keyword unaffected, or
another keyword all together (unchanged/same/handsoff?)
A <= ( A => ( A => X,
B => Y,
C => Z,
D => UNAFFECTED ) );
A <= ( A => ( A => X,
B => Y,
C => Z,
OTHERS => UNAFFECTED ) );
Obviously it would be useful for slices as well.
Since I haven't been able to play with 2008 yet, I'm wondering if left-
side aggregates (not sure what they're called) would also simplify the
above. Thanks!
records, ad nausea. It's nice that I can currently do the following:
A.A.A <= X;
A.A.B <= Y;
A.A.C <= Z;
However, there's a lot of repetition in my code, so I often prefer the
following:
A <= ( A => ( A => X,
B => Y,
C => Z ) );
The benefit is more noticeable with long and descriptive names for the
elements, but the problem is that if my intention is to set only the
A, B, and C leaf elements and leave any others unchanged it doesn't
seem possible. Is there anything in the 2002 or 2008 standard that
allows this, is there any reason this shouldn't be allowed, or is it
time that I propose an overloaded use of the keyword unaffected, or
another keyword all together (unchanged/same/handsoff?)
A <= ( A => ( A => X,
B => Y,
C => Z,
D => UNAFFECTED ) );
A <= ( A => ( A => X,
B => Y,
C => Z,
OTHERS => UNAFFECTED ) );
Obviously it would be useful for slices as well.
Since I haven't been able to play with 2008 yet, I'm wondering if left-
side aggregates (not sure what they're called) would also simplify the
above. Thanks!