Sorry. I meant to say
Please can someone show me a code fragment using the following code. I think I understand the enum, and the union part. But dont get how the enum works in conjunction with the union part. Every other example I have found uses an integer or char type storage in place of the enum to indicate which union type is presently in use. I have tried to comprehend how this example works but simply miss whats going on.
I dont get how to utilise the enumerator. I suppose UNKNOWN=0 ... POINTER=3 etc. But how do I use them? I tried for quite sometime to compile some code to play with the struct example. But finally gave up.
If someone could just show me how to use the example from between two functions for instance I could then step thru it and get a handle on it. (frustrated - but it is late here)