-- -*- M2-comint -*- hash: 1244884584432481761

i1 : myunion = foreignUnionType("myunion", {"foo" => int, "bar" => double})

o1 = myunion

o1 : ForeignUnionType

i2 : myunion 27

o2 = HashTable{"bar" => 6.47294e-310}
               "foo" => 27

o2 : ForeignObject of type myunion

i3 : myunion pi

o3 = HashTable{"bar" => 3.14159   }
               "foo" => 1413754136

o3 : ForeignObject of type myunion

i4 : myunion double 5

o4 = HashTable{"bar" => 5}
               "foo" => 0

o4 : ForeignObject of type myunion

i5 : 
