varlink.github.io icon indicating copy to clipboard operation
varlink.github.io copied to clipboard

Clarification on interface grammar with struct

Open chergert opened this issue 4 months ago • 0 comments

Hey!

I've been playing around writing an implementation of this to get the feel for things, and had a question while writing the interface parser.

We have:

"method" name struct -> struct

And I just wanted clarification that you cannot have:

"method" name type -> type

e.g. recursive decent parsing of method need-not carry a type-table of types defined before it.

Or put another way, can you have defined types be the return value or must defined types exist within the retrurn value struct only? (field: Type) never Type

chergert avatar Oct 03 '24 19:10 chergert