Opened 20 years ago
Closed 19 years ago
#323 closed defect (wontfix)
Operator precedence between [] and ->
Reported by: | Christian Paz | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | SetAlgebra | Version: | head |
Severity: | minor | Keywords: | |
Cc: |
Description
I have tested this code
/
Struct StTest
{
Set Pri;
Set Seg
};
Set x=StTest(SetOfReal(1, 2), SetOfReal(3,4,5));
Real z = x->Pri[1];
Real y = (x->Pri)[1];
/
And I noticed that the line Real z .... does not compile, it seems to be a problem of
precedence of operators between [] and -> , I think that it should not have to give
an error, the precedence should be like in C where it is possible.
Thanks,
Change History (2)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Sorry, this is an arbitrary decission and your criterium could be a good one, even
the best one, but it's not assumible to make this change for backwards
compatibility reasons.