nsensfel / tonkadur

Narrative scripting/programming tool. Write stories in your favorite editor using a feature-rich language, compile them into a very small and simple language to easily integrate them into your game.
https://tonkadur.of.tacticians.online
Apache License 2.0
3 stars 0 forks source link

Allow structures with pointers to yet undefined types. #6

Open nsensfel opened 4 years ago

nsensfel commented 4 years ago

While having recursive structures is troublesome because it complicates the interpreter's implementation (copy by value on an infinitely recursive structure is... complicated), having fields with pointers to yet undefined types should not be an issue.

I'll consider it for the second version of Fate.

nsensfel commented 3 years ago

The parser_rework branch added the FutureType class to Fate (to delay having to distinguish between a string and a variable name until it becomes clear whether a string would make sense). This might make it easier to add the feature: