The online Orocos Component Manual incorrectly documents use of "size()" and "capacity()" operators for arrays and strings. The parantheses aren't actually needed ...
Stephen
diff --git a/doc/xml/orocos-program-parser.xml b/doc/xml/orocos-program-parser.xml index e1b0fcc..e782176 100644 --- a/doc/xml/orocos-program-parser.xml +++ b/doc/xml/orocos-program-parser.xml @@ -466,14 +466,14 @@ <programlisting> var string s1 = "abcdef" // retrieve size and capacity of a string : - var int size = s1.size() - var int cap = s1.capacity()</programlisting> + var int size = s1.size + var int cap = s1.capacity</programlisting> <programlisting> var array a1( 10 ) var array a2(20) = a1 // retrieve size and capacity of a array : - var int size = a2.size() // 10 - var int cap = a2.capacity() // 20</programlisting> + var int size = a2.size // 10 + var int cap = a2.capacity // 20</programlisting> </para> </section> </section>
Incorrect documentation
On Tuesday 09 February 2010 22:07:34 S Roderick wrote:
> The online Orocos Component Manual incorrectly documents use of "size()"
> and "capacity()" operators for arrays and strings. The parantheses aren't
> actually needed ... Stephen
Applied. Thanks.
Peter