Skip to content

Commit

Permalink
Merge pull request #10301 from JamesDeFabia/HPCC-18071ReservedWords
Browse files Browse the repository at this point in the history
HPCC-18071 Docs: labels cannot begin with UNICODE_ , UTF8_, or VARUNI…

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
  • Loading branch information
ghalliday committed Jul 28, 2017
2 parents 17b94fa + da2efb6 commit df83fe9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/ECLLanguageReference/ECLR_mods/Basics-AttributeDef.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,20 @@ My First Definition := 5; // INVALID name, spaces not allowed</programlisting>
<primary>Reserved Words</primary>
</indexterm>, but they are generally reserved only in the context within
which they are valid for use. Even in that context, you may use reserved
words as field or attribute names, provided you explicitly disambiguate
words as field or definition names, provided you explicitly disambiguate
them, as in this example:</para>

<programlisting>ds2 := DEDUP(ds, ds.all, ALL); //ds.all is the 'all' field in the
//ds dataset - not DEDUP’s ALL option</programlisting>

<para>However, it is still a good idea to avoid using ECL keywords as
attribute or field names.</para>
definition or field names. </para>

<para>Definition or field names cannot begin with <emphasis
role="bold">UNICODE_</emphasis> , <emphasis role="bold">UTF8_</emphasis>,
or <emphasis role="bold">VARUNICODE_</emphasis>. Labels beginning with
those prefixes are treated as type names, and should be regarded as
reserved.</para>
</sect2>

<sect2 id="Attribute_Naming">
Expand Down

0 comments on commit df83fe9

Please sign in to comment.