On 5 Sep 2002, Aaron Sherman wrote:

> On Thu, 2002-09-05 at 01:47, Brent Dax wrote:
> > Aaron Sherman:
> 
> > The one thing I notice all over the place is:
> > 
> >     sub abs($num is int){ return $num>=0 ?? $num :: -$num }
> 
> Another thing I'm not sure on... how do you force numeric, but not
> integer typing on a parameter? Is that C<num[ber]? $var> or C<+$var>? I
> don't think there's anywhere that it's super-critical, but some of Perl
> (e.g. bitwise operators) will want to have two signatures, one for
> numbers and one for general scalars.

To take a Pascal perspective, C<real>?

Why would bitwise have anything but integer signatures. What does 
4.56 | 2.81 mean?   Also, should perl lossily convert real to int, or give 
an error if it can't? 

Luke

Reply via email to