Hi Tyler,
I think your are right, after looking at THRIFT-3705 yesterday.
That should not be the case and is unexpected, so it's probably safe to call
it a bug.
If you think you can propose a patch, don't hesitate.
Have fun,
JensG
-----Ursprüngliche Nachricht-----
From: Tyler Treat
Sent: Friday, March 4, 2016 5:32 PM
To: [email protected]
Subject: Thrift IDL Definition Ordering
Is the Thrift IDL intended to be sensitive to the ordering of definitions?
In Go at least there appear to be a number of compiler issues when types
are referenced before they are defined in the IDL. E.g.:
https://issues.apache.org/jira/browse/THRIFT-3705
https://issues.apache.org/jira/browse/THRIFT-3465
https://issues.apache.org/jira/browse/THRIFT-3553
Digging through the code, I see that types referenced before definition
appear to be parsed as t_typedef with is_forward_typedef() == true, but
this seems to be causing problems with structs.
Thanks,