[
https://issues.apache.org/jira/browse/THRIFT-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689625#action_12689625
]
Bryan Duxbury commented on THRIFT-409:
--------------------------------------
Maybe it's not really a union. It's kind of more like a "one-of" struct. I
should have pointed out as an additional feature that unlike a true union, you
should NOT be able to use this structure to "convert" between one datatype and
another. Whatever type it is when you create it, it's that type until you set
it to another value.
As such, it may not actually be implemented in c/cpp as a true union. It might
need to be class wrapped around a union.
> Add "union" to Thrift
> ---------------------
>
> Key: THRIFT-409
> URL: https://issues.apache.org/jira/browse/THRIFT-409
> Project: Thrift
> Issue Type: New Feature
> Reporter: Bryan Duxbury
> Fix For: 0.2
>
>
> It would be very helpful to have a "union" construct in Thrift. Let's decide
> on the design and then break up into sub-issues to add this feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.