mathgladiator / adama-lang

A headless spreadsheet document container service.
https://www.adama-platform.com/
GNU Affero General Public License v3.0
107 stars 15 forks source link

cycle detection of instances #151

Closed mathgladiator closed 1 year ago

mathgladiator commented 1 year ago
record X {
  public Y y;
}

record Y {
  public X x;
}

public X x;
public Y y;
mathgladiator commented 1 year ago

Since this is a direct field, we really need to build a "instance graph", so type R instances types r0, r1, ..., rN; this then needs to go into a cyclic graph algorithm to abort