Fun with unified collections [was: Re: arrays, hashes unified indexing syntax impact on future varia tion s on other collection types]

2003-01-30 Thread gregor
, tgrep { not ref $_ } $h; # Flatten to list of strings print( x $level, $title, \n); } would print a heading summary with indentation. Perl can already do some pretty LISPy things, so why not some TREPpy things, too? Regards, -- Gregor

Re: Arrays: is computed

2003-01-30 Thread gregor
, -- Gregor Michael Lazzaro [EMAIL PROTECTED] 01/30/2003 02:25 PM To: [EMAIL PROTECTED] cc: Subject:Arrays: is computed For Cis computed arrays, things get more complicated. Since there are no true 'holes' in a primitive-typed array, the correct behavior

Re: arrays, hashes unified indexing syntax impact on future varia tion s on other collection types

2003-01-30 Thread gregor
given object may support none, one or both. Regards, -- Gregor Aaron Sherman [EMAIL PROTECTED] 01/30/2003 03:15 PM To: Damian Conway [EMAIL PROTECTED] cc: Perl6 Language List [EMAIL PROTECTED] Subject:Re: arrays, hashes unified indexing syntax impact

Re: Language Discussion Summaries

2003-02-04 Thread gregor
Sounds like a job for a bot! (couldn't resist) -- Gregor Jonathan Scott Duff [EMAIL PROTECTED] 02/04/2003 11:38 AM Please respond to duff To: Buddha Buck [EMAIL PROTECTED] cc: Miko O'Sullivan [EMAIL PROTECTED], [EMAIL PROTECTED] Subject:Re

Re: Object spec

2003-03-05 Thread gregor
flux exceeds limit %d\n, BOGON_LIMIT]; } Also, there was a doesNotRecognize: method that was called by the runtime system when method lookup failed. I presume you could override it to do nasty things, but I never did that myself. Regards, -- Gregor

Re: Associations between classes [was: Re: Object spec]

2003-03-05 Thread gregor
Seems like you are thinking along the lines of making Parrot support Prevayler-style http://www-106.ibm.com/developerworks/web/library/wa-objprev/index.html stuff naturally and with less coding at the top layer. Is that where you are headed with this? Regards, -- Gregor Purdy Sam

Re: A6: Complex Parameter Types

2003-03-16 Thread gregor
Ellipse-like 'set' methods elsewhere. Circle could inherit from the EllipseGettable but not EllipseSettable (since you can ask for, but not set the semi axes). Regards, -- Gregor Purdy Nicholas Clark [EMAIL PROTECTED] 03/15/2003 06:48 PM To: [EMAIL PROTECTED] [EMAIL PROTECTED

Re: The Sort Problem

2004-02-11 Thread Gregor N. Purdy
; Or maybe even something like this: sort :numerically :as { $^a.foo('bar').compute } @unsorted; Regards, -- Gregor On Wed, 2004-02-11 at 19:11, Luke Palmer wrote: I've been thinking about this problem which comes up in my code a lot: @sorted = sort { $^a.foo('bar').compute = $^b.foo

Exegesis 7: Some other tyops

2004-02-28 Thread Gregor N. Purdy
, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Dynamic Headers

2004-02-28 Thread Gregor N. Purdy
in the header. I suppose ... odd = sub { Act, $act, Scene $scene ... }, ... would work, though. Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Fill Justification

2004-02-28 Thread Gregor N. Purdy
of infinite j. The example output shows that the extracted string isn't quite maximal. It tries to keep words together (this rule is detailed elsewhere, but this example doesn't refer to that extraction rule). -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc

Exegesis 7: Option Key Validity

2004-02-28 Thread Gregor N. Purdy
the set of valid option identifiers *for Cform* come from, and are they tied *to Cform*, or floating in a global space, free to collide with other (option key) identifier declarations? It seems like there's more to this story... Regards, -- Gregor -- Gregor Purdy

Exegesis 7: Overflow Fields

2004-02-28 Thread Gregor N. Purdy
of the initial field? If so, are error messages generated if there is overlap? Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Perl6::Slurp

2004-02-28 Thread Gregor N. Purdy
The Exegesis mentions the Perl6::Slurp module, but I don't see it on CPAN. Is it just a race condition? Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Re: Exegesis 7: Option Key Validity

2004-02-28 Thread Gregor N. Purdy
But, since E7 doesn't come right out and say it, I'm asking for clarification. Still could be that you are right and there is nothing to see here, though... Regards, -- Gregor On Sat, 2004-02-28 at 07:46, Smylers wrote: Gregor N. Purdy writes: ...we're guaranteed that the key

Re: Exegesis 7: Overflow Fields

2004-02-28 Thread Gregor N. Purdy
some heuristics to guess? What are the edge cases? Regards, -- Gregor On Sat, 2004-02-28 at 07:39, Smylers wrote: Gregor N. Purdy writes: In And now at length they overflow their banks. its not clear how an overflow field gets tied to its initial non-overflow field. In the recipe example

Re: Exegesis 7: Fill Justification

2004-02-28 Thread Gregor N. Purdy
Damian -- Good. I don't remember where I first heard about doing it that way vs. from the left, but the results going from the right to left are typically better looking than from left to right, and I use that way exclusively now. Regards, -- Gregor On Sat, 2004-02-28 at 15:54, Damian Conway

Re: Mutating methods

2004-03-11 Thread Gregor N. Purdy
(); equivalent to $foo = $foo.someOtherMethod(); when $foo's class or someOtherMethod() implementation doesn't do anything special? Regards, -- Gregor On Wed, 2004-03-10 at 21:29, Larry Wall wrote: On Wed, Mar 10, 2004 at 10:46:05PM -0500, matt wrote: : I was thinking along the lines

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
-k to get « ctrl-k to get » Regards, -- Gregor On Fri, 2004-03-19 at 05:39, Rafael Garcia-Suarez wrote: Andy Wardley wrote in perl.perl6.language : I'm so happy! I just found out, totally by accident, that I can type the « and » characters by pressing AltGr + Z and AltGr + X

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
Oh, and the ctrl-k form doesn't require you to do the :set digraph thing. Its always available. Regards, -- Gregor On Fri, 2004-03-19 at 06:16, Gregor N. Purdy wrote: For me, (vim 6.2), that is bs to get « bs to get » after doing :set digraph (list of available digraphs

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
, -- Gregor On Tue, 2004-04-13 at 08:12, Luke Palmer wrote: David Cantrell writes: A few days ago I briefly discussed with Nicholas Clark (current perl 5.8 pumpking) about making perl5 code forward-compatible with perl6. A quick look through the mailing list archives didn't turn up anything

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
; # or, whatever # More Perl 6 stuff here use python; # you get the idea ... Regards, -- Gregor On Wed, 2004-04-14 at 12:59, Aaron Sherman wrote: On Wed, 2004-04-14 at 09:29, Gregor N. Purdy wrote: So, we are moving in a more verbose direction, which is a bummer for people who like

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
:) You have used use syntax which falls under the category of # or whatever in my message. Regards, -- Gregor On Wed, 2004-04-14 at 18:51, Brent 'Dax' Royal-Gordon wrote: Gregor N. Purdy wrote: #!/usr/bin/perl6 ... # Perl 6 stuff here use 5; # or, whatever # Perl 5 stuff