Damian Conway: # > So, in the … operator, the filter is the adverb: # > # > $sum = … @costs : {$^_ < 1000}; # > # > Does that mean that in the built-in print, the file # handle is the only # > "in-band" argument, and all the actual items to be # printed are merely # > adverbs? # # Yep. Although the "in-band"/"out-of-band" distinction is only one of # convention. # # In reality, Perl 6 will merely distinguish between those # arguments that # come before a colon (and are bound to parameters before the # colon in the # parameter list), and those arguments that come after a colon (and are # bound to parameters after the colon in the parameter list).
So, does that mean that, to keep C<new FooBar: ($baz, $frob)> and C<FooBar->new($baz, $frob)> doing the same thing, the object will always come in before the colon? Is unary . gonna refer to the "one and only" argument before the colon? class FooBar; method new($class : *@args) { my $obj; $obj=.bless; #transmogrified into $obj=$class.bless } method serialize($me : IO::Handle $fh) { #$me is the only eccentricy I have left from my early work in (ugh) VB print $fh: .quux; #same as $me.quux print $fh: .gerflonkurator; #same as $me.gerflonkurator } Cool. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.