Please delete this obsolete ticket. Use [71456] instead.


----- Original Message ----
> From: perl6 via RT <perl6-bugs-follo...@perl.org>
> To: robert_str...@yahoo.com
> Sent: Sat, December 19, 2009 7:51:54 PM
> Subject: [perl #71454] AutoReply: Method 'prime' not found for invocant of 
> class 'Integer' 
> 
> Greetings,
> 
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
>     "Method 'prime' not found for invocant of class 'Integer'", 
> a summary of which appears below.
> 
> There is no need to reply to this message right now.  Your ticket has been
> assigned an ID of [perl #71454].
> 
> Please include the string:
> 
>          [perl #71454]
> 
> in the subject line of all future correspondence about this issue. To do so, 
> you may reply to this message.
> 
>                         Thank you,
>                         perl6-bugs-follo...@perl.org
> 
> -------------------------------------------------------------------------
> use v6;
> 
> class Int is also {
>   method prime() {
> 
>     return True;
>   }
> }
> 
> say "Testing 1..5";
> for 1,2,3,4,5 {
>   print "$_ is: ";
>   if .prime { say "prime" } else { say "NOT prime" }
> }
> say "";
> 
> say "Testing 1..5, again";
> for 1..5 {
>   print "$_ is: ";
>   if .prime { say "prime" } else { say "NOT prime" }
> }



      

Reply via email to