Say I have an array that carries at least 2mb data or 70mb max,
but in my code, I want to throw this array to another sub ( within
the same package )for further operations . so, which one I would
better to use and what's the reason ?
gosub [EMAIL PROTECTED]
or
gosub @array
Is that if I
Bee wrote:
Say I have an array that carries at least 2mb data or 70mb max,
but in my code, I want to throw this array to another sub ( within
the same package )for further operations . so, which one I would
better to use and what's the reason ?
gosub [EMAIL PROTECTED]
or
gosub @array
Is that
From: Bee [EMAIL PROTECTED]
Say I have an array that carries at least 2mb data or 70mb max,
but in my code, I want to throw this array to another sub ( within the
same package )for further operations . so, which one I would better
to use and what's the reason ?
gosub [EMAIL PROTECTED]
or
Bee [EMAIL PROTECTED] asked:
Is that if I throw the array to another sub also means the
array would be copied and then pass to the target sub ?
while reference is using the same data in system memory?
Yes. Use references, unless you need to munge the array in the
sub you're calling.
HTH,
Thank you guys for clearing my concept, I know what to do now !
- Original Message -
From: Jenda Krynicky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 8:45 PM
Subject: Re: Using reference or throw valuables to sub ?
From: Bee [EMAIL PROTECTED]
Say I