I read the Ruby/DL docs on using the struct! method and have an\nunderstanding about it. How about the union! method? I have googled\naround and can't find any examples of its use. The following test code\ndoesn't seem to work:\n\n-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\nrequire 'dl'\nthisStruct=DL.malloc(4)\nthisStruct.struct!('L', :longPointer)\nthatStruct=DL.malloc(2)\nthatStruct.struct!('H', :shortPointer)\ntheUnion=DL.malloc(6)\ntheUnion.union!(thisStruct, thatStruct)\n\nReading the RDoc entries for the union! method it appears to work the\nsame as the struct! method. First pass along the data types, next pass\nalong the element names. But I thought a union just connects existing\nstructs. How does that work with the first parameter of data types?\n\nDoes anyone out there have some example they can provide that will\naccomplish what my test code is trying to do?