[perl #59484] [TODO] Implement $?PACKAGE in Rakudo

2008-11-11 Thread [EMAIL PROTECTED] via RT
On Tue Sep 30 06:04:03 2008, masak wrote:
> ...as described in S02:
> 
>  
> 
> Package declarations are not implemented yet, but even without them,
> $?PACKAGE could be useful in the following case:
> 
> class A { say "This is class $?PACKAGE" }
> 
Implemented in r32567; for the example you give here we now get the
output "This is class A". Note that of you've got a reference to the
namespace, not the proto-object, which is what you'll be able to get
(IIUC) when $?CLASS is done.

Jonathan




[perl #59484] [TODO] Implement $?PACKAGE in Rakudo

2008-09-30 Thread Carl Mäsak
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #59484]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=59484 >


...as described in S02:

 

Package declarations are not implemented yet, but even without them,
$?PACKAGE could be useful in the following case:

class A { say "This is class $?PACKAGE" }