set eol-style:native
[reactos.git] / reactos / lib / libxml2 / result / DocBook / programlistingco.example.1.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE programlistingco PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
3 <programlistingco><areaspec><areaset id="ex.plco.const" coords=""><area id="ex.plco.c1" coords="4"/><area id="ex.plco.c2" coords="8"/></areaset><area id="ex.plco.ret" coords="12"/><area id="ex.plco.dest" coords="12"/></areaspec><programlisting>
4 sub do_nothing_useful {
5 my($a, $b, $c);
6
7 $a = new A;
8
9 $a-&gt;does_nothing_either();
10
11 $b = new B;
12
13 $c = &quot;frog&quot;;
14
15 return ($a, $c);
16 }
17 </programlisting><calloutlist><callout arearefs="ex.plco.const"><para>
18 These are calls to the constructor <function>new</function> in the object
19 classes.
20 </para></callout><callout arearefs="ex.plco.ret"><para>
21 This function returns a two-element list.
22 </para></callout><callout arearefs="ex.plco.dest"><para>
23 The <emphasis>destructor</emphasis> (<function>DESTROY</function>) for
24 the object <literal>$b</literal> will be called automatically for this
25 object since there can be no other references to it outside this function.
26 </para></callout></calloutlist></programlistingco>