- edited description
Circular inherited attributes
Issue #243
invalid
JastAdd 2.1.13
There is currently no support for inherited circular attributes. This is problematic because in some cases it is useful to have circular inherited attributes. In ExtendJ for example the assignedAfter
attribute depends on an assignedBefore
attribute. They are mutually circular but assignedBefore
is inherited.
Example of a circular inherited attribute specification syntax:
inh int B.a() circular [0];
eq A.getB() = b();
syn int A.b() circular [1] = getB().a();
Comments (2)
-
reporter -
reporter - changed status to invalid
This should work. Niklas found a test in jastadd-test for this (circular/test06).
- Log in to comment