On Tue, Dec 2, 2008 at 3:00 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It expects a variable which holds a list:<br>
<br>
set(myList foo bar)<br>
list( LENGTH myList listlen )<br>
message( ${listlen} )<br>
<br>
(didn&#39;t test or check docs, but I think that should be it)</blockquote></div><br>Why did you do:<br><br><span style="font-family: courier new,monospace;">list( LENGTH myList listlen )</span><br><br>instead of:<br><br>
<span style="font-family: courier new,monospace;">list( LENGTH ${myList} listlen )</span><br><br><br>This seems pretty inconsistent with how I pass variables into functions in other places, like message() for example.<br>