On May 04, 2006, at 00:08 UTC, Jonathan Johnson wrote: > Since REALbasic 5.5 (IIRC), it has been possible to pass an array typed > of Orange to a method that takes Fruit. One Insert and Append, it will > then do an extra IsA check against the original type, to ensure that > the type is valid for the original array type. If not, you will get a > TypeMismatchException.
Well I'll be a monkey's uncle. Jon is absolutely right (at least, about the feature; not sure about when it was introduced). I had the old behavior stuck in my head -- I recall many long discussions about it, but don't recall ever adding the run-time type checking. So, I take back most of what I've said in this thread. You could indeed make an array-cloning method. And I guess I'd better look at the ArrayUtils module to see if any of those methods should be implemented for objects! Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Available for custom REALbasic programming or instruction. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
