Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyclic types definition #116

Closed
Oleg-N-Cher opened this issue Jun 22, 2022 · 1 comment
Closed

Cyclic types definition #116

Oleg-N-Cher opened this issue Jun 22, 2022 · 1 comment
Labels

Comments

@Oleg-N-Cher
Copy link
Owner

It's a question of supporting definitions like that:

TYPE
  DynArrPtr = POINTER TO ARRAY OF DynArrPtr;
  ArrPtr = POINTER TO ARRAY 1 OF ArrPtr;

which is implemented by BlackBox.

The Oberon community believes that such cyclic type definitions are not something very useful or indispensable. So their support in Ofront+ should only be considered a step towards improving compatibility with BlackBox.

The examples that show different cases of defining such types:
CyclicTypes.zip

@Oleg-N-Cher
Copy link
Owner Author

These examples show how Ofront+ generates code for cyclic types:

CyclicTypeEx.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant