Re:Tagged unions, or ‘variants’, in C
by rkangel on Monday June 26, 2017 @08:41AM
(#14636266)
Yes - this is what allows you to some semblance of struct inheritance. You can embed a structure as the first member in the 'derived' structure and then up and down cast as appropriate.
[ Parent
| on HN ]
There are no comments on this comment yet.