realbasic-nug
[Top] [All Lists]

Re: Array() Bug

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Array() Bug
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 30 Oct 2004 20:37:44 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BDA70827 dot 5A5EE%mars at realsoftware dot com> <2E2C1D1E-2A0F-11D9-87CD-000A95DC5C3A at satx dot rr dot com>
At 8:01 PM -0500 10/29/04, William Squires wrote:

  It would seem (based solely on the example and nothing else) that either:

1) The Array() method returns only an array of Double or Integer, or

This is in fact the case.

2) The Array() method would have to return an array of Variant, forcing a type conversion from whatever type you fed into the Array() method's parameters into the target data type of the array on the LHS.

This is impossible. An array of variants can't be assigned (or passed into or otherwise bound to) an array of some other type. The "IsA" relationship does not extend across a container such as an array.

Cheers,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>