def TestCopyTo(): import util d = util.dvec() d.x = 1.0 print 'd=', d f = d.CopyTo() print 'f=', f print 'f.bla=', f.bla print 'f.furbazoid=', f.furbazoid
def TestPersistance(): import util d = util.dvec() d.x = 1.0 m = MemStream() print 'd=', d d.SaveTo(m) m.Seek(0) r = Rot() e = r.GetCopy(m) print 'e=', e print 'e.bla=', e.bla print 'e.furbazoid=', e.furbazoid