Parrot and PGE will save the day (was Re: "as if" [Was: Selective reuse of storage in &bless.] )

2006-01-20 Thread Rob Kinyon
On 1/20/06, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Fri, Jan 20, 2006 at 04:20:54PM -0500, Rob Kinyon wrote: > > Pros: Larry doesn't have to do anything more on the WMoT. > > Cons: The community, for some reason, really wants this > > auto-translator, even though there wasn't one for

perl6-language@perl.org

2006-01-20 Thread Stevan Little
Larry Wall wrote: > On Fri, Jan 20, 2006 at 09:35:13PM +0800, Audrey Tang wrote: > My original intent was #2, hence the wording in A12. But to speak to > some of Stevan's concernes, there's something going on here which is > not quite "Object does Hash". It's more like "Object can do Hash", > in

perl6-language@perl.org

2006-01-20 Thread Stevan Little
> On Thursday 19 January 2006 21:53, Stevan Little wrote: > > With p5, you /can/ get to the underlying data structure. This is a > > break which will hamper the backwards compatibility effort I think. > > With Perl 5, you can *appear* to get to the underlying data structure. Yet > tie() is basical

perl6-language@perl.org

2006-01-20 Thread Audrey Tang (autrijus)
On 1/21/06, Larry Wall <[EMAIL PROTECTED]> wrote: > But maybe all this is already possible in the current setup, if > > role ObjectFakeHash does Hash {...} > role Object does ObjectFakeHash {...} > class Hash does Hash {...} Yes, I think that's the way to go, as well as :coerce for exp

perl6-language@perl.org

2006-01-20 Thread Nicholas Clark
On Fri, Jan 20, 2006 at 04:20:54PM -0500, Rob Kinyon wrote: > Pros: Larry doesn't have to do anything more on the WMoT. > Cons: The community, for some reason, really wants this > auto-translator, even though there wasn't one for P4->P5 and P5->P6 is > a greater leap than P4->P5 was. But (

perl6-language@perl.org

2006-01-20 Thread Jeff Stampes
I have to wonder how many other people just edited /usr/share/games/fortune/perl and added: % Humans are not much into strong compile-time typing, and when they are, we call it stereotyping, or racism, or whatever. -- Larry Wall in <[EMAIL PROTECTED]> And now back to your regularly s

perl6-language@perl.org

2006-01-20 Thread chromatic
On Thursday 19 January 2006 21:53, Stevan Little wrote: > Okay, so when you say alternate storage then you mean that a class > like this: > > class Foo { > has $.bar; > method new ($class, %params) { > $class.bless('p5Hash', %params); > } > method baz { > $.bar +

perl6-language@perl.org

2006-01-20 Thread chromatic
On Friday 20 January 2006 07:14, Rob Kinyon wrote: > I think this entire issue is rising out of the fact that very very few > people in this discussion are familiar with the design of the MOP. > Stevan and a few others are the primary movers and I'm lucky enough to > have been Stevan's sounding bo

perl6-language@perl.org

2006-01-20 Thread Rob Kinyon
On 1/20/06, Larry Wall <[EMAIL PROTECTED]> wrote: [snip really cool blathering] I don't have much to say on the deeper question, but I have a few ideas on the P5 -> P6 translation question, especially as it relates to OO: 1) Don't translate at all. Ponie, delegating to Parrot, is supposed to

perl6-language@perl.org

2006-01-20 Thread Larry Wall
On Fri, Jan 20, 2006 at 09:35:13PM +0800, Audrey Tang wrote: : Note that A12 used to say that all Objects does Hash, and %$obj even : returns private attributes when used inside the class scope. : Fortunately, S12 doesn't mention anything like that, so I think the : treatment above is safe. We sti

perl6-language@perl.org

2006-01-20 Thread Rob Kinyon
On 1/19/06, chromatic <[EMAIL PROTECTED]> wrote: > On Thursday 19 January 2006 19:50, Rob Kinyon wrote: > > > Nothing. Just like it's not a problem if Perl6 uses one of the > > Ruby-specific PMCs for storage. In fact, the alternate $repr idea is > > specifically to allow for the use of foreign data

Re: Perl 6's &bless is (seriously) broken

2006-01-20 Thread Rob Kinyon
On 1/20/06, Juerd <[EMAIL PROTECTED]> wrote: > Note, by the way, that JS has "primitive" strings, and Strings, only the > latter being objects. Fortunately for us, though, a string is > automatically promoted to a String when the string is USED AS an object. In other words, according to userland,

perl6-language@perl.org

2006-01-20 Thread Audrey Tang
Stevan Little wrote: >> I realize one of Stevan's objections is "But if you use a Hash, does your >> object automatically support the .keys method and .kv and so on?" to >> which I >> reply "No, of course not. That's silly. It just uses the Hash for >> *storage*." >> Is that your objection to ble

Re: Class methods vs. Instance methods

2006-01-20 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: : class Dog { : method tail { "brown and short" } : }; : : class Chihuahua is Dog { : has $.color; : method tail { $.color _ " and short" } : }; : : You can say Dog.tail, Dog.new.tail, Chihuahua.new.tail, but not : Chihuahua.tail. That's extremely counter-int