Re: Literals, take 2

[email protected] (Andrew Wilson)
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
On Wed, Nov 13, 2002 at 01:10:05PM -0600, Jonathan Scott Duff wrote:
> On Wed, Nov 13, 2002 at 06:38:08PM +0000, Andrew Wilson wrote:
>> 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?  
> 
> Why would you want to?

Personally I wouldn't.  That doesn't mean it's not useful to someone.

andrew
-- 
Capricorn: (Dec. 22 - Jan. 19)
You will be chained to a rock, upon which eagles will devour your liver
for all eternity, after you steal the secret of a great marinara sauce
from the gods.
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

iD8DBQE90q2h4x3z39L355MRAnI3AKCn00b0Hcg1yWewK4ocBNQ+CwH0SwCfb5ZI
TMWbpQ/gLRDA5isnS5slVNo=
=K6wn
-----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.