> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> From: Angel Faus <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Organization: vLex.com
> Date: Tue, 12 Nov 2002 21:03:30 +0100
> X-SMTPD: qpsmtpd/0.12, http://develooper.com/code/qpsmtpd/
> 
> I've written a frist version of the "1.1 - Literal Values" subsection 
> (in Michael's schema).
> 
> It discusses the different ways of creating literal numbers and 
> strings in perl6. 
> 
> There are no tests, and the format may be outdated. I will gladly 
> resubmit this in a more complete form.
> 
> I have directly stolen some paragraphs from perl5 documentation. 
> Special prize to the one who lists all the original sources!
> 
> This is just a tentative draft, so feel free to delete/add at your own 
> taste.
> 
> Does it look ok? Any comments? (including grammar errors, of course)
> 
> -angel
> 
> -------------------------------------------
> =subsection Literal Values
> 
> =head1 Literal numbers
> 
> =head2 Integers
> 
> Integers can be represented by its decimal representation,
> such as:

s/Integers/An integer/

>  my $x = 14;   # stores the integer 14 in $x
> 
> See the L<quotes> section for a full explanation
> of the interpolation mechanism and a list of special
> characters in doble-quoted strings.

s/doble/double/

> =head2 String as vector of ordinals
> 
> Literals of the form C<v1.2.3.4> are parsed as a string
> composed of characters with the specified ordinals.  This
> is an alternative, more readable way to construct
> (possibly unicode) strings instead of interpolating
> characters, as in C<\x{1}\x{2}\x{3}\x{4}>. The leading C<v>
> may be omitted if there are more than two ordinals, so
> C<1.2.3> is parsed the same as C<v1.2.3>.

This is equivalent to 256:1.2.3.4

Looks good :)

Luke

Reply via email to