Author: Darren_Duncan Date: 2010-07-12 03:01:55 +0200 (Mon, 12 Jul 2010) New Revision: 31630
Modified: docs/Perl6/Spec/S02-bits.pod Log: S02 : add initial formats for Blob (or Buf) literals Modified: docs/Perl6/Spec/S02-bits.pod =================================================================== --- docs/Perl6/Spec/S02-bits.pod 2010-07-11 22:26:48 UTC (rev 31629) +++ docs/Perl6/Spec/S02-bits.pod 2010-07-12 01:01:55 UTC (rev 31630) @@ -13,8 +13,8 @@ Created: 10 Aug 2004 - Last Modified: 9 Jul 2010 - Version: 218 + Last Modified: 11 Jul 2010 + Version: 219 This document summarizes Apocalypse 2, which covers small-scale lexical items and typological issues. (These Synopses also contain @@ -3189,6 +3189,19 @@ =item * +Blob literals look similar to integer literals with radix markers, but are +distinct in their details. A Blob literal has 1 format with 3 radix +options: + + 0b<00101110100010> base 2, 1 bit per column + 0o<523504376> base 8, 3 bits per column + 0x<A705E> base 16, 4 bits per column + +TODO: Expand this for more generality. Meanwhile, this existing +definition covers the common cases of specifying in bits and hexits. + +=item * + Characters indexed by hex numbers can be interpolated into strings by introducing with C<"\x">, followed by either a bare hex number (C<"\x263a">) or a hex number in square brackets (C<"\x[263a]">).