tuple handling, but not a tuple...

Lance Ellinghouse (lance@markv.com)
Sat, 4 Sep 93 20:48:51 PDT

I have a datatype that I would like to be able to do tuple-unpacking
on that is NOT a tuple..

I have a phone number type that I would like to assign as:
a = NewPhone()
a = (areacode, prefix, number, extension)

and then be able to do:
areacode, prefix, number, extension = a

Should I just use a tuple? or is there an easy way to have any
custom type use tuple packing and unpacking?

Lance Ellinghouse
lance@markv.com