Author: wayland
Date: 2009-03-05 07:16:44 +0100 (Thu, 05 Mar 2009)
New Revision: 25699

Modified:
   docs/Perl6/Spec/S02-bits.pod
   docs/Perl6/Spec/S28-special-names.pod
Log:
Changes to special variables as per "$?OS changes" discussion on mailing list.  
Haven't 
worried about compatibility for now, though.  


Modified: docs/Perl6/Spec/S02-bits.pod
===================================================================
--- docs/Perl6/Spec/S02-bits.pod        2009-03-05 05:58:38 UTC (rev 25698)
+++ docs/Perl6/Spec/S02-bits.pod        2009-03-05 06:16:44 UTC (rev 25699)
@@ -2127,7 +2127,7 @@
 
 The following return objects that contain all pertinent info:
 
-    $?OS        Which operating system am I compiled for?
+    $?KERNEL    Which kernel am I compiled for?
     $?DISTRO    Which OS distribution am I compiling under
     $?VM        Which virtual machine am I compiling under
     $?XVM       Which virtual machine am I cross-compiling for
@@ -2155,7 +2155,7 @@
 
 Note that some of these things have parallels in the C<*> space at run time:
 
-    $*OS        Which OS I'm running under
+    $*KERNEL    Which kernel I'm running under
     $*DISTRO    Which OS distribution I'm running under
     $*VM        Which VM I'm running under
     $*PERL      Which Perl I'm running under

Modified: docs/Perl6/Spec/S28-special-names.pod
===================================================================
--- docs/Perl6/Spec/S28-special-names.pod       2009-03-05 05:58:38 UTC (rev 
25698)
+++ docs/Perl6/Spec/S28-special-names.pod       2009-03-05 06:16:44 UTC (rev 
25699)
@@ -67,6 +67,8 @@
  $!                S04                # Current Exception object
  $/                S05   Match        # Last match
  $0, $1, $2        S05   Str          # First captured value from match: $/[0]
+ $?ARCH                  SoftwarePackage # Host architecture
+ $?XARCH                 SoftwarePackage # Target architecture 
  @*ARGS            S06   Array of Str # command-line arguments
  $*ARGFILES        S02   IO           # The magic command-line input handle
  &?BLOCK           S06   Block        # current block (itself)
@@ -96,8 +98,8 @@
  $?MODULE          S02   Module       # current module
  %*OPTS            S19   Hash of XXX  # Options from command line
  %*OPT...          S19   Hash of XXX  # Options from command line to be passed 
down
- $?OS                    SoftwarePackage # operating system compiled for
- $*OS                    SoftwarePackage # operating system running under
+ $?KERNEL                SoftwarePackage # operating system compiled for
+ $*KERNEL                SoftwarePackage # operating system running under
  $*OUT             S16   IO           # Standard output handle
  $?PARSER          S02   Grammar      # Which Perl grammar was used to parse 
this statement?
  $?PACKAGE         S02   Package      # current package
@@ -113,8 +115,8 @@
  $?SCOPE           S02                # Current "my" scope (XXX unnecessary?)
  $*UID                   Int          # system user id
  $?USAGE           S06   Str          # Default usage message generated at 
compile time
- $?VM              S02   Str          # Which virtual machine am I compiling 
under
- $?XVM             S02   Str          # Which virtual machine am I 
cross-compiling for
+ $?VM              S02   SoftwarePackage # Which virtual machine am I 
compiling under
+ $?XVM             S02   SoftwarePackage # Which virtual machine am I 
cross-compiling for
 
 Note that contextual variables such as C<$*OUT> may have more than
 one current definition in the outer dynamic context, in which case

Reply via email to