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

$*OS and OS::* mixins

Rob Kinyon
May 26, 2005 13:41
$*OS and OS::* mixins
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About