Nested classes
Small example of nested classes
{
A: B,
B: [B1, B2],
AB: (A, B)
}
A, a class with 1 member B, B, a class with 2 members B1, B2, AB, a complex with 2 components A, B.
Set of primitives: (A, B)
Different results, according to the order of replacement:
-
Class A then B: BB, B1B1, B2B2
-
Class B, then A: AB1, AB2, BB1, BB2
=> Second replacement is partial.
-
Must compute a replacement plan ? -
Must handle replacement for 1 reactant at a time ?