Author: masak
Date: 2010-05-30 16:14:21 +0200 (Sun, 30 May 2010)
New Revision: 30996
Modified:
docs/Perl6/Spec/S32-setting-library/IO.pod
Log:
[S32/IO] changed a number of instances of C++-style constructor syntax
Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/IO.pod 2010-05-30 13:54:24 UTC (rev
30995)
+++ docs/Perl6/Spec/S32-setting-library/IO.pod 2010-05-30 14:14:21 UTC (rev
30996)
@@ -22,8 +22,8 @@
Created: 19 Feb 2009 extracted from S29-functions.pod; added stuff from
S16-IO later
- Last Modified: 5 Mar 2010
- Version: 11
+ Last Modified: 30 May 2010
+ Version: 12
The document is a draft.
@@ -615,16 +615,16 @@
Examples:
# Read, no interpolation
- $fobj = new IO::File(Path => qp{/path/to/file});
+ $fobj = IO::File.new(Path => qp{/path/to/file});
# Write, interpolation
- $fobj = new IO::File(
+ $fobj = IO::File.new(
Path => p:qq{$filename},
Writeable => 1
);
# Read using file descriptor
- $fobj = new IO::File(fd => $fd);
+ $fobj = IO::File.new(fd => $fd);
This final example associates an C<IO> object with an already-open file
descriptor,
presumably passed in from the parent process.
@@ -794,12 +794,12 @@
# These three do the same thing (on a Unix machine)
$path = qp{/home/wayland};
- $path = new Path(PathElements => ['home', 'wayland']);
- $path = new Path(Constraints => ['Unix'], Path => qp{/home/wayland});
- $path = new Path(Path => qp{/home/wayland});
+ $path = Path.new(PathElements => ['home', 'wayland']);
+ $path = Path.new(Constraints => ['Unix'], Path => qp{/home/wayland});
+ $path = Path.new(Path => qp{/home/wayland});
# This creates a symlink from /home/wayland/m to /home/wayland/Music
- $path = new Path(
+ $path = Path.new(
Path => qp{/home/wayland/m},
Target => qp{/home/wayland/Music},
);