----- Original Message ----- From: "Norman Palardy" <[EMAIL PROTECTED]> To: "REALbasic NUG" <[email protected]> Sent: Saturday, May 05, 2007 11:49 PM Subject: Re: overriding operator_convert not working?
> > On 5-May-07, at 2:21 PM, kev wrote: > >> So I guess there's no way around this that will also maintain >> polymorphism? > > Use a constructor that takes a string ? > I think there is a little confusion around Operator_Convert(). It should be used to convert from any datatype to a class instance. So if I declare a Operator_Convert(input As String) in a class called TestConvert, then I can write Dim value As New TestConvert value = "test" There is no need to control the class of the object, as long as the class provides a right Operator_Convert(). -- ~Kiam _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
