develooper Front page | perl.perl6.language | Postings from May 2005

$*OS and OS::* mixins

From:
Rob Kinyon
Date:
May 26, 2005 13:41
Subject:
$*OS and OS::* mixins
Message ID:
70384420505261341104daffd@mail.gmail.com
I was thinking on the drive home how to write some of the File::Spec
functions in P6. I realized that it would be really neat if $*OS did
one of a bunch of mixins (maybe OS::unix, OS::win32, OS::vms, etc).
That way, you could multimethod the various functions, using junctions
and Any to provide a default.

Rob



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About