Dan Sugalski: # At 10:23 AM 1/12/2002 -0600, David M. Lloyd wrote: # >On Sat, 12 Jan 2002, Dan Sugalski wrote: # > # > > At 09:05 PM 1/11/2002 -0600, David M. Lloyd wrote: # > > >I have a design question here. Why did we take the # approach of having a # > > >match method on every single vtable, instead of having a # vtable for # > > >regular expressions, and have regex be an object (like Perl 5)? # > > # > > So we could do: # > > # > > @results = @foo ^=~ /bar/; # > > # > > Basically to allow hypermatches. # > # >Would that become something like this: # > # >@results = @foo.match(qr/bar/); # > # >where the 'match' method is called on the PerlArray object, # or would it # >be more like: # > # >@results = map { $_.match(qr/bar/); } @foo; # Forgive the # mixed p5/p6 # > # >where the match method is called on each element of @foo? # # The former. The PerlArray object's perfectly justified in # then calling # match on each element inside itself.
How would this interact with the regular expression engine? --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 <obra> mmmm. hawt sysadmin chx0rs <lathos> This is sad. I know of *a* hawt sysamin chx0r. <obra> I know more than a few. <lathos> obra: There are two? Are you sure it's not the same one?