dev-osrose/IDL

Packet generator doesn't handle cycles

Opened this issue · 4 comments

The generator detects cycles, but doesn't do anything about it.

what's a cycle?

the xml is a directed graph so technically we can have cycles (a type that uses another type, which itself uses the first type). It'd require a forward declaration of the second type probably, and use a unique_ptr<> instead of a variable on the stack to break the dependency cycle.

oh cool. that would be nice.

Not sure if it'd be useful tho, so I won't change it until we need it.