realbasic-plugins
[Top] [All Lists]

Returning an RB array

To: realbasic-plugins at lists dot realsoftware dot com
Subject: Returning an RB array
From: "Stephen A. Cochran Lists" <stephen dot a dot cochran dot lists at cahir dot net>
Date: Wed, 24 Jan 2007 23:58:50 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com

It seems to be that the array support in the Plugin API is still only half complete with no way to create RB arrays. Specifically I'm hoping to return an RB array from a function or modify one that was passed in ByRef.

Submitted as a feature request. Is this a limitation encountered by many people?

Steve Cochran
_______________________________________________
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>


From  Thu 25 Jan 2007 09:41:45 -0700
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id B6A34180DCC8; Thu, 25 Jan 2007 08:42:05 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on www.realsoftware.com X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 3573A180DCC1;
        Thu, 25 Jan 2007 08:42:01 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id DC2E418712A9; Thu, 25 Jan 2007 10:41:51 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 8C274187129C
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Thu, 25 Jan 2007 10:41:45 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 282DB6DC4C2
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Thu, 25 Jan 2007 09:41:45 -0700 (MST)
Date: Thu, 25 Jan 2007 09:41:45 -0700
From: joe at strout dot net
To: realbasic-plugins at lists dot realsoftware dot com
In-Reply-To: <F7487EA1-ECB6-4722-A44D-29B2E7DD0CE7 at cahir dot net>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20070125164145 dot 282DB6DC4C2 at mail dot verex dot com>
Subject: Re: Returning an RB array
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot 
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com

On Jan 25, 2007, at 04:58 UTC, Stephen A. Cochran Lists wrote:

It seems to be that the array support in the Plugin API is still only
half complete with no way to create RB arrays.

That's right.  It was probably added to support specific needs, maybe
in the MS Office classes, and doesn't seem to be intended for general
use.

Specifically I'm hoping to return an RB array from a function or modify one that was passed in ByRef.

It shouldn't need to be passed in ByRef in order to modify it.  But you
would need modification methods -- IIRC, they're basically read-only to
a plugin.

Submitted as a feature request. Is this a limitation encountered by many people?

I think the generally preferred idiom is to make your own container
class and accessor specific to your data.  For example, see Group2D,
which is essentially a wrapper for an array of Object2Ds (plus some
additional functionality).

HTH,
- Joe

--
Joe Strout -- joe at strout dot net
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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>


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