Re: Literals, take 2

[email protected] (Andrew Wilson)
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
On Wed, Nov 13, 2002 at 07:26:06PM +0100, Angel Faus wrote:
> For example, the integer 30 can be written in hexadecimal base in two 
> equivalent ways:
> 
>   my $x = 16:1D
>   my $x = 16:1.14
> 
> These two representations are incompatible, so writing something like 
> C<16:D.13> will generate a compile-time error.

So, can we specify floats in other bases?  if we can why is 16:D.14 an
error?  Why isn't it a floating point number?  I think we can and we
need to demonstrate this with a three digit hex number.  We also need to
point out that there is a problem with the two digit example.

andrew
-- 
Taurus: (April. 20 - May 20)
After years of zoological study and careful consideration, you've
decided that what separates us from the animals is a clever system of
ditches and barriers.
signature.asc (application/pgp-signature, 232 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE90pwQ4x3z39L355MRApD/AJ96AB1V77LhGFHHLujfMcWnIPEgBgCePKNj
2vuuyfWhFXo/CF8MzL+zs0M=
=bkZe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.