ExtrSvcs-CONST.xml 969 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="CONST">
  5. <title>CONST</title>
  6. <para><emphasis role="bold">CONST<indexterm>
  7. <primary>CONST</primary>
  8. </indexterm><indexterm>
  9. <primary>CONST Function</primary>
  10. </indexterm></emphasis></para>
  11. <para>The <emphasis role="bold">CONST </emphasis>keyword specifies that the
  12. value passed as a parameter will always be treated as a constant. This is
  13. essentially a flag that allows the compiler to properly optimize its code
  14. when declaring external functions.</para>
  15. <para>Example:</para>
  16. <programlisting>STRING CatStrings(CONST STRING S1, CONST STRING S2) := S1 + S2;</programlisting>
  17. <para>See Also: <link linkend="Function_Attributes__Parameter_Passing">Functions (Parameters Passing</link>), <link linkend="SERVICE_Structure">SERVICE Structure</link></para>
  18. </sect1>