Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 2010.02
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (28 sloc) 0.679 kb
class Parameter {
# multi method new(*%args) {
# for <rw ref copy named slurpy optional invocant> -> $n {
# # %args{$n}.=true doesn't seem to work here.
# %args{$n} = ?%args{$n} if %args.exists($n);
# }
# self.bless(*, |%args);
# }
has $.name;
has $.type;
has $.constraints;
has $.rw;
has $.ref;
has $.parcel;
has $.capture;
has $.copy;
method readonly() { !$!rw && !$!ref && !$!copy }
has $.named;
has $.named_names;
has $.slurpy;
has $.optional;
has $.default;
has $.invocant;
has $.multi_invocant;
has $.type_captures;
has $.signature;
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.