Changeset 23239

Show
Ignore:
Timestamp:
01/31/06 00:39:52 (3 years ago)
Author:
larry
Message:

Documented \c[NAMED CHAR].

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/trunk/design/syn/S02.pod

    r23232 r23239  
    1313  Maintainer: Larry Wall <larry@wall.org> 
    1414  Date: 10 Aug 2004 
    15   Last Modified: 23 Nov 2005 
     15  Last Modified: 30 Jan 2006 
    1616  Number: 2 
    17   Version: 13 
     17  Version: 14 
    1818 
    1919This document summarizes Apocalypse 2, which covers small-scale 
     
    11701170=item * 
    11711171 
     1172You may interpolate any Unicode codepoint by name using C<\c> and square brackets: 
     1173 
     1174    "\c[NEGATED DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE]" 
     1175 
     1176Multiple codepoints constituting a single may be interpolated with 
     1177a single C<\c> by separating the names with comma: 
     1178 
     1179    "\c[LATIN CAPITAL LETTER A, COMBINING RING ABOVE]" 
     1180 
     1181Whether that is regarded as one character or two depends on the 
     1182Unicode support level of the current lexical scope.  It is also possible to 
     1183interpolate multiple codepoints that do not resolve to a single 
     1184character: 
     1185 
     1186    "\c[LATIN CAPITAL LETTER A, LATIN CAPITAL LETTER B]" 
     1187 
     1188[Note: none of the official Unicode character names contains comma.] 
     1189 
     1190=item * 
     1191 
    11721192There are no barewords in Perl 6.  An undeclared bare identifier will 
    11731193always be taken to mean a subroutine or method name.  (Class names