Author: wayland Date: 2009-02-23 04:29:57 +0100 (Mon, 23 Feb 2009) New Revision: 25489
Modified: docs/Perl6/Spec/S32-setting-library/IO.pod Log: Did some updates, and added a uri() method Modified: docs/Perl6/Spec/S32-setting-library/IO.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/IO.pod 2009-02-23 03:07:23 UTC (rev 25488) +++ docs/Perl6/Spec/S32-setting-library/IO.pod 2009-02-23 03:29:57 UTC (rev 25489) @@ -33,7 +33,7 @@ our Bool method getc (IO $self: *...@list) -See C<Synopsis 16: IPC / IO / Signals> for details. +See below for details. =item print @@ -41,7 +41,7 @@ our Bool multi print (*...@list) our Bool method print (Str $self: IO $io) -See C<Synopsis 16: IPC / IO / Signals> for details. +See below for details. =item say @@ -49,14 +49,14 @@ our Bool multi say (*...@list) our Bool method say (Str $self: IO $io) -See C<Synopsis 16: IPC / IO / Signals> for details. +See below for details. =item printf our Bool method printf (IO $self: Str $fmt, *...@list) our Bool multi printf (Str $fmt, *...@list) -See C<Synopsis 16: IPC / IO / Signals> for details. +See below for details. =item uri @@ -202,6 +202,15 @@ blocking wait or immediatly return in the case of not having data available. +=item uri + + method IO::Streamable uri(Str $uri) {...} + +This should be callable on the class, and act like a kind of "new()" function. When given +a URI, it returns an IO::Streamable of the appropriate type, and throws an error when an +inappropriate type is passed in. For example, calling IO::File.uri('http://....') will +throw an error (but will suggest using just uri('http://...') instead). + =back =head2 IO::Encoded