Re: Properties

2003-11-29 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > On Thu, Nov 27, 2003 at 08:08:05PM -0800, Paul Hodges wrote: > : --- Larry Wall <[EMAIL PROTECTED]> wrote: > : > ... in fact, we may be limiting the creation of properties > : > to predeclared names, so that even > : > > : > return 0 but ture; > : >

Re: Properties

2003-11-29 Thread Paul Hodges
--- Smylers <[EMAIL PROTECTED]> wrote: > Larry Wall writes: > > > : if $x.foo { print "$x has property foo" } > > : $x.bar = 1; # Or $x = $x but bar > > > > Or maybe the .bar notation is only for rvalues, and to create a > > property you have to say: > > > > $x but= bar; > > I th

Re: Properties

2003-11-29 Thread Larry Wall
On Sat, Nov 29, 2003 at 09:13:32AM -0800, Paul Hodges wrote: : --- Smylers <[EMAIL PROTECTED]> wrote: : > Larry Wall writes: : > : > > : if $x.foo { print "$x has property foo" } : > > : $x.bar = 1; # Or $x = $x but bar : > > : > > Or maybe the .bar notation is only for rvalues, and to

Re: Properties

2003-11-29 Thread Larry Wall
On Sat, Nov 29, 2003 at 08:50:57AM -0800, Paul Hodges wrote: : hmm... lexical propertiesI've read the rest of the message, and I : see how this could be a problem. Just to be clear on it, what exactly : would it mean for a property or trait to be lexical? If a value or : container with that asp

Re: Properties

2003-11-29 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > On Sat, Nov 29, 2003 at 09:13:32AM -0800, Paul Hodges wrote: > : --- Smylers <[EMAIL PROTECTED]> wrote: > : > Larry Wall writes: > : > > : > > : if $x.foo { print "$x has property foo" } > : > > : $x.bar = 1; # Or $x = $x but bar > : > > > :

Re: Properties

2003-11-29 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > On Sat, Nov 29, 2003 at 08:50:57AM -0800, Paul Hodges wrote: > : hmm... lexical propertiesI've read the rest of the message, > : and I see how this could be a problem. Just to be clear on it, > : what exactly would it mean for a property or trait to

Re: Properties

2003-11-29 Thread Paul Hodges
--- Paul Hodges <[EMAIL PROTECTED]> wrote: > print "foo" is $x; With deeply sincere apologies, that should have been print "foo" if $x; __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/

Re: Properties

2003-11-29 Thread Larry Wall
On Sat, Nov 29, 2003 at 12:40:10PM -0800, Paul Hodges wrote: : --- Larry Wall <[EMAIL PROTECTED]> wrote: : > Yes, in fact it gets a new anonymous class that is derived from its : > current class. : : Ah -- implicit adoption by the new foster parent. That's kind of neat, : but it confuses me. Does

Re: Properties

2003-11-29 Thread Larry Wall
On Sat, Nov 29, 2003 at 12:53:50PM -0800, Paul Hodges wrote: : : --- Larry Wall <[EMAIL PROTECTED]> wrote: : > On Sat, Nov 29, 2003 at 08:50:57AM -0800, Paul Hodges wrote: : > : hmm... lexical propertiesI've read the rest of the message, : > : and I see how this could be a problem. Just to be

Re: Properties

2003-11-29 Thread Paul Hodges
> : but it confuses me. Does that mean you're leaning more toward > : allowing undeclared properties, or just that you're still trying > : to give both sides of the argument thorough consideration? > > I'm not doing either of those things... :-) Yayy! :) > : Just for my vote, I want to be able

Re: Properties

2003-11-29 Thread Paul Hodges
> : And "exportation"??? > > Exportation is just aliasing some name inside a scope to somewhere > outside the scope. Importatation is the same operation from the > viewpoint of the importing scope. I just wasn't thinking clearly when you said it the first time. > Perl 5 didn't allow exportation

Re: Properties

2003-11-29 Thread Paul Hodges
With apologies, I'm already seeing blunders. *sigh* > my Baz @ray = ( Baz.new() ); No reason to type that. Should be my @ray = ( Baz.new() ); __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/

Re: Properties

2003-11-29 Thread Luke Palmer
Paul Hodges writes: > Larry Wall writes: > > Perl 5 didn't allow exportation of lexicals because typeglobs only > > dealt with package variables, not lexical variables. In Perl 6 > > we'll be able to alias both lexicals and package variables. That > > implies that a lexically scoped name can be e