realbasic-nug
[Top] [All Lists]

byVal not working with arrays?

To: realbasic-nug at lists dot realsoftware dot com
Subject: byVal not working with arrays?
From: Robert Woodhead <trebor at animeigo dot com>
Date: Tue, 31 May 2005 10:45:57 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050317180027 dot 4312B7BABB0 at lists dot realsoftware dot com>
Was playing around with some recursion today in which it would be handy to recursive on an array. So passing the array byVal so each instance of the method would have its own copy seemed like just the ticket.

Except that it seems that if you declare a parameter as:

byVal a() as Integer

it actually gets passed by reference!

This is not good. It's either a bug, or if it is intended that byval not work with arrays, then it needs to be redlined in the documentation in 48pt font that it doesn't!


--

===========================================================
Robert Woodhead, CEO, AnimEigo     http://www.animeigo.com/
===========================================================
http://selfpromotion.com/   The Net's only URL registration
SHARESERVICE.  A power tool for power webmasters.
_______________________________________________
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>