On Apr 04, 2007, at 2:49 PM, Frank Condello wrote:

>>>  Dim c1 As New MySubClass
>>>    Dim c2 As MySubClass
>>>    c2 = MySubClass( c1.Clone )

This code works without a cast IF you set the MySubClass up and  
override Clone so you're not calling the parent class' Clone method  
inadvertently (which is why you'd need the cast)

class MySubclass extends Object3D

        methods Clone() as MySubClass
                dim tmp as MySubClass
                tmp = new MySubClass
                return tmp



Dim c1 As New MySubClass
Dim c2 As MySubClass
dim c3 as Object3D

c2 = c1.Clone
c3 = c1.Clone 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to