-- -*- M2-comint -*- hash: 11820059135939019904

i1 : mystruct = foreignStructType("mystruct", {"foo" => int, "bar" => double})

o1 = mystruct

o1 : ForeignStructType

i2 : x = mystruct {"foo" => 5, "bar" => pi}

o2 = HashTable{"bar" => 3.14159}
               "foo" => 5

o2 : ForeignObject of type mystruct

i3 : x_"foo"

o3 = 5

o3 : ForeignObject of type int32

i4 : x_"bar"

o4 = 3.141592653589793

o4 : ForeignObject of type double

i5 : x_"foo" = 6

o5 = 6

o5 : ForeignObject of type int32

i6 : x

o6 = HashTable{"bar" => 3.14159}
               "foo" => 6

o6 : ForeignObject of type mystruct

i7 : 
