<div class="gmail_quote">On Mon, Mar 30, 2009 at 2:41 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Alexander Neundorf wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Monday 30 March 2009, Robert Dailey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
What&#39;s the proper way to define a list? Suppose I have 3 words: Foo, Bar,<br>
and Baz. I want these 3 strings to be in a list called Stuff. Would I do<br>
this:<br>
<br>
set( Stuff &quot;Foo;Bar;Baz&quot; )<br>
<br>
Is this correct? <br>
</blockquote>
<br>
Yes, this is identical to<br>
set( Stuff Foo;Bar;Baz )<br>
and also to set( Stuff  Foo Bar Baz )<br>
<br>
</blockquote>
<br></div>
Actually set(var &quot;a;b;c&quot;) with the double quotes will create a string with literal ;&#39;s in it...</blockquote><div><br></div><div>I thought quotes were used to force whatever is inside of it to be treated as a single parameter. So for example, if I had a function called DoStuff, you could call it 2 ways:</div>
<div><br></div><div>DoStuff( a b c )</div><div>DoStuff( &quot;a b c&quot; )</div><div><br></div><div>My understanding is that the first one will send 3 parameters to DoStuff. The second will send only 1 parameter that is a list of 3 items.</div>
<div><br></div><div>Also, what if I do this:</div><div><br></div><div>set( Stuff foo bar;baz )</div><div><br></div><div>What will happen here? </div></div>