Re: [Fwd: Re: Numeric Literals (Summary)]

2002-11-15 Thread Dave Whipp
Richard Nuttall wrote: How about my $a = 256:192.169.34.76; my $b = $a.base(10); my $c = '34:13.23.0.1.23.45'.base(16); This coupling makes me nervous. A number is a number: its value is not effected by its representation. I can see that, in some scripts, it might be useful to define a

Re: [Fwd: Re: Numeric Literals (Summary)]

2002-11-15 Thread fearcadi
Dave Whipp writes: Richard Nuttall wrote: How about my $a = 256:192.169.34.76; my $b = $a.base(10); my $c = '34:13.23.0.1.23.45'.base(16); This coupling makes me nervous. A number is a number: its value is not effected by its representation. I can see that, in

[Fwd: Re: Numeric Literals (Summary)]

2002-11-14 Thread Richard Nuttall
0x00ff # hex value ff '0x00ff'# integer value 0, with trailing 'x00ff' I think ways to solve this should be open to discussion. Hopefully Luke can give us some proposals, since he's writing that part. The behavior described there should stay. If you want literal-like