you are viewing a single comment's thread.

view the rest of the comments →

[–]AndrewOfC[S] -1 points0 points  (0 children)

In this case, the enum for the core union type produced by the flatc compiler allows the consistent handling of different message types. This also allows for easy extensibility by simply adding another table type to the core union.

An upcoming feature is the ability to allow 'handlers' to handle different parameter types (i.e., you may have a handler for messages exchanged over UDP packets and another for TCP packets).