See below

On 1/27/06, Jim Self <[EMAIL PROTECTED]> wrote:
> Kevin,
> What are you trying to do with these techniques? They are not exactly 
> equivalent.

I can't recall now what was in my mind when I wrote the different
procedures, but the fact remains that I have some written using both
methods.  And I never encountered the problem until now of not being
able to write  do MyFunct([EMAIL PROTECTED]).   But the suggestions here have
showed me how to get around that.
>
> The pass-by-reference technique is generally used to avoid the use of 
> indirection and to
> make the code cleaner and more efficient. It cannot be used where the target 
> array is a
> global.

>From what you say, pass by name (i.e. requiring @Ref@(1)=myvalue) is
more universal.  But it sure looks more ugly than passing by
reference.

>
> The indirection technique applies equally well to global arrays as to local 
> arrays and can
> therefore hide the fact that scratch arrays might be global. This can be 
> useful on MUMPS
> implementations with limited memory space available for local variables.

I hadn't thought of that.  But it seems more likely that one might
clutter up the database with scratch data, especially if the program
crashed etc.

Thanks for your feedback.

Kevin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to