On Thu, 19 Mar 2015 12:02:36 -0700, "Carl Mäsak via RT"
<perl6-bugs-follo...@perl.org> wrote:

> I see two things in this ticket. Correct me if I'm wrong.
> 
> > $ p6 -e'Num.Range.say'
> > No such method 'Range' for invocant of type 'Num'
> >   in block <unit> at -e:1
> 
> First thing: Num doesn't have a Range coercer.
> 
> > $ p6 -e'my Int $i = Int.Range.max; $i.say'
> > Type check failed in assignment to '$i'; expected 'Int' but got 'Num'
> >   in block <unit> at -e:1
> 
> Second thing: can't put Inf in Int,

In which case Int.Range.max should not return Inf IMHO. Maybe it should
return int8.Range.max instead. If you cannot put Int.Range.max in Int,
that is extremely counter-inutitive

> which is a dupe of https://rt.perl.org/Ticket/Display.html?id=61602,
> which is currently blocking on https://github.com/perl6/specs/issues/27
> but the last word on which is
> http://irclog.perlgeek.de/perl6/2014-08-20#i_9217322, IMO.

That, at the moment, is beyond my current level of understanding the
core :)

> So, mind if I change the name of this ticket to "Num doesn't have
> a Range coercer"? :)

Is ok.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.21   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Attachment: pgphwVx3E7x4Z.pgp
Description: OpenPGP digital signature

Reply via email to