TODO in assignment pattern #387
-
Hi Mike, when reading code about assignment pattern , I don't quite understand the meaning of a TODO in PatternExpression.cpp, line 27: if (syntax.type) {
// TODO: allow type references here Does it mean |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
A type reference is the result of the |
Beta Was this translation helpful? Give feedback.
-
I have another question in PatternExpression.cpp, line 745
I guess it means indexExpr must be constant and the following code is illegal module M;
int index=0;
int cc[int]='{index:1};
initial $display("%d",cc[0]);
endmodule But I haven't find any restriction in Chapter 10 or Chapter 7 of IEEE Std 1800-2017 which requires that the item key should be constant. Will any semantic errors be here if non-constant value is used as key? |
Beta Was this translation helpful? Give feedback.
A type reference is the result of the
type
operator. This is saying it should be possible to do something liketype(some_expression)'{1, 2, 3}