From: gregarican Date: 2005-10-18T21:46:57+09:00 Subject: Re: Ruby/DL union! method syntax Takaaki Tateishi wrote: > You should pass a signature and labels like struct!. > > theUnion.union!('LH', :long, :short) > theUnion[:long] = 2**16 > p theUnion[:long] # => 65536 > p theUnion[:short] # => 0 Oh I see. Thanks for the reply. I thought that a union was defined as multiple structs brought together in a modular fashion. So I was trying to invoke the union! method with struct! members as parameters. I will try it the way you have outlined it. Thanks again! Thanks