Ok, makes sense.<div><br></div><div>Thanks!<br><br><div class="gmail_quote">On Sat, Oct 15, 2011 at 1:05 AM, Pendergraft, Jerry <span dir="ltr"><<a href="mailto:JPendergraft@sjm.com">JPendergraft@sjm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Essentially you can pass lists by name (think reference) rather than content.<br>
foo = one two three;<br>
bar = a b c;<br>
<br>
1) [myfunc foo bar];<br>
vs:<br>
2) [myfunc [foo] [bar]];<br>
<br>
In 1 you would write myfunc to expand the lists ala:<br>
dosomething with [@1];<br>
somethingelse with [@2];<br>
<br>
in 2) you get content of both lists concatenated.<br>
Sounds like you want to use #1<br>
<div><div></div><div class="h5"><br>
On 14 Oct, 2011, at 16:56 , Kyle Loveless wrote:<br>
<br>
> Hi,<br>
><br>
> In a function I'm writing, I want to pass in multiple lists. Is my instance, one is a list of include folders and the other is a list of object files.<br>
><br>
> From what I can tell, I need to explicitly pass the size of each of these lists so the function can know where one list ends and the other starts. Is this right?<br>
><br>
> Assuming this, I tried to use the "wordlist" function to extract the correct range from the "arg" parameter, depending on the lengths given. The problem I ran into with this is I need to do addition, which I realized I don't know how to do in a cookbook.<br>
><br>
> So two questions:<br>
> 1) If passing lists to a function, do I need to explicitly pass the lengths of the lists, or is there some better way?<br>
> 2) Can I do numeric algebra in cookbooks? If so, how?<br>
><br>
> Thanks!<br>
><br>
> Kyle<br>
</div></div><div class="im">> _______________________________________________<br>
> Cook-users mailing list<br>
> <a href="mailto:Cook-users@lists.auug.org.au">Cook-users@lists.auug.org.au</a><br>
> <a href="http://lists.auug.org.au/listinfo/cook-users" target="_blank">http://lists.auug.org.au/listinfo/cook-users</a><br>
<br>
<br>
</div>This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.<br>
</blockquote></div><br></div>