On 2009 Feb 23, at 22:43, Timothy S. Nelson wrote:
On Mon, 23 Feb 2009, jason switzer wrote:
On Sun, Feb 22, 2009 at 9:47 PM, <pugs-comm...@feather.perl6.nl> wrote:
+    $*PROGRAM_NAME # name of the program being executed

How does this differ from $*EXECUTABLE_NAME?

        Good question.  Anyone?

I would assume $*PROGRAM_NAME is the script, and $*EXECUTABLE_NAME is the name of the interpreter. Or the same as $*PROGRAM_NAME if it has been compiled to native code? Not sure this is useful, which suggests you don't so much want $*EXECUTABLE_NAME as $?PERL6_IMPLEMENTATION (see my earlier message).

+    &?ROUTINE      # current sub or method (itself, see S06)
+    @?ROUTINE      # current subs or methods (themselves)

I'm sure this is a typo for $?ROUTINE. Besides, I think $?SUB makes more

        Well, Larry says this in S02:

   &?ROUTINE   Which routine am I in?
   @?ROUTINE   Which nested routines am I in?
   &?BLOCK     Which block am I in?
   @?BLOCK     Which nested blocks am I in?

&?ROUTINE is a CODE ref to the current routine. @?ROUTINE is an array of CODE refs. I assume if you want a name you can invoke a method on &?ROUTINE to retrieve it (may return undef if it's an anonymous CODE ref).

+ $* and $# have been deprecated half of forever and are gone.  $[
+ is a fossil that I suppose could turn into an evil pragma, if we
+ try to translate it at all.  (Frees up * twigil for $*FOO syntax.)

I'm not even sure this makes sense to me. Is this saying that $* and $# are
largely not in use anymore (in perl6)?

Read the section on "twigils" in S02. Hopefully things will make more sense after that. It says that $* is no longer a separate variable, but is used for $*OSNAME, $*VM, and the like.

The perl5 $*, $#, $[ have been deprecated for a long time, and are not in perl6 at all. (And I would strongly discourage any attempt to support $[ by pragma. But @Larry.grep: "allb...@ece.cmu.edu" is Failure :)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to