Cool.  Very clever.

Kevin


On 1/27/06, Gary Monger <[EMAIL PROTECTED]> wrote:
> There's also D @("MyFunct2(."_VarName_")")
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gregory
> Woodhouse
> Sent: Thursday, January 26, 2006 9:37 PM
> To: [email protected]
> Subject: Re: [Hardhats-members] Parameter passing by reference vs. by name
>
>
> On Jan 26, 2006, at 5:57 PM, Kevin Toppenberg wrote:
>
>
> > ...
> >
> > So I have written some functions using both calling methods, and I
> > have just now had reason to call one from another.
> > I know that I could create a new array, merge it, pass that array,
> > then when the function returns merge it back.  But, is there a way to
> > do this directly--i.e. achieve my erroneous line listed above, perhaps
> > with different syntax?
> >
> > Thanks
> > Kevin
> >
> >
>
>
> Interesting question! It seems that $NAME really has no inverse. One
> possibility would be to construct a line of code on the fly and
> execute it. For example, if the VAR="X" and you want pass the
> variable with VAR as its name as a reference parameter (say that
> three times fast), you could do this
>
> SET CMD="D TAG(."_VAR_")" X CMD
>
> (I agree that it's an ugly solution.)
>
> ===
> Gregory Woodhouse
> [EMAIL PROTECTED]
>
> "Education is a progressive discovery
> of our own ignorance."
> --Will Durant
>
>
>
>
>
> -------------------------------------------------------
> 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&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>
>
>
> -------------------------------------------------------
> 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&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>


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