Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
Richard Proctor [EMAIL PROTECTED] writes: On Fri 18 May, Damian Conway wrote: Ed wrote: Can 'undef' valued thingys have properties Yes. and functions? No. Why not? You can always set a property on a function reference. But it seems a little weird

Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: On Fri, May 18, 2001 at 03:01:38PM +1000, Damian Conway wrote: Also, what's the difference between a 'property' and an 'attribute', ie, are: $fh is true; and $fh.true(1); synonyms?

Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: On Fri, May 18, 2001 at 08:31:21AM -0500, Jarkko Hietaniemi wrote: On Fri, May 18, 2001 at 06:22:10AM -0700, Austin Hastings wrote: --- Damian Conway [EMAIL PROTECTED] wrote: It's probably just a matter of coding what you actually mean.

Re: 'is' and action at a distance

2001-05-19 Thread Graham Barr
On Fri, May 18, 2001 at 10:36:59PM -0400, John Siracusa wrote: print keys $foo.prop; # prints NumberHeard print values $foo.prop; # prints loneliestever This is an example of one of my concerns about namespace overlap with methods. What would happen if there was a method

Re: 'is' and action at a distance

2001-05-19 Thread Damian Conway
Piers wrote: Can 'undef' valued thingys have properties Yes. and functions? No. Why not? You can always set a property on a function reference. But it seems a little weird that functions can have properties in

Re: 'is' and action at a distance

2001-05-19 Thread Damian Conway
Graham wrote: On Fri, May 18, 2001 at 10:36:59PM -0400, John Siracusa wrote: print keys $foo.prop; # prints NumberHeard print values $foo.prop; # prints loneliestever This is an example of one of my concerns about namespace overlap with methods.

Re: 'is' and action at a distance

2001-05-19 Thread Graham Barr
On Sat, May 19, 2001 at 06:41:29PM +1000, Damian Conway wrote: Graham wrote: On Fri, May 18, 2001 at 10:36:59PM -0400, John Siracusa wrote: print keys $foo.prop; # prints NumberHeard print values $foo.prop; # prints loneliestever This is an

Re: Exegesis2 and the is keyword

2001-05-19 Thread Dan Sugalski
At 03:31 AM 5/19/2001 +0100, Simon Cozens wrote: On Fri, May 18, 2001 at 06:29:11PM -0700, Daniel S. Wilkerson wrote: Therefore, if it isn't a back-end and it isn't a front-end, what is it?! Both! It's a dessert topping *and* a floor wax! Can someone say what it is? It's true that perl6

Re: what is perl6 (was Re: Exegesis2 and the is keyword)

2001-05-19 Thread Dan Sugalski
At 08:57 AM 5/19/2001 -0600, Nathan Torkington wrote: The language will stay as Perl, but the VM might get its own name. Parrot! ;-P And I see I need to draw some pictures, since Nat's explanation's not quite what I'm thinking of at the moment. (Close though) I'll see about getting something

Re: properties

2001-05-19 Thread Larry Wall
Edward Peschko writes: : Why can't variable properties and value properties be the same thing? Because a variable is a container, and has properties appropriate to a container, and a value is a containee, and has properties appropriate to a containee. (Plus, any given value could be in multiple

Re: properties

2001-05-19 Thread Dan Sugalski
At 11:47 AM 5/19/2001 -0700, Larry Wall wrote: Edward Peschko writes: : Why can't variable properties and value properties be the same thing? Because a variable is a container, and has properties appropriate to a container, and a value is a containee, and has properties appropriate to a

Re: properties

2001-05-19 Thread John Porter
Dan Sugalski wrote: So what happens when you assign an overloaded value to a tied variable, or vice versa? Which wins? Uh, the overloaded value gets evaluated to an normal value, and the tied variable does what it does with that. Maybe. -- John Porter

Re: properties

2001-05-19 Thread Dan Sugalski
At 02:55 PM 5/19/2001 -0400, John Porter wrote: Dan Sugalski wrote: So what happens when you assign an overloaded value to a tied variable, or vice versa? Which wins? Uh, the overloaded value gets evaluated to an normal value, and the tied variable does what it does with that. Maybe. Yep.

Re: Exegesis2 and the is keyword

2001-05-19 Thread Larry Wall
John Porter writes: : Buddha Buck wrote: : Personally, I'd rather save let for: : : I appreciate the sentiment, but I believe it's misplaced : and unnecessary. : : : (let ($x,$y,$z,...) = (1,2,3,...) in { FOO }) : : which would be equivilant to: : :((sub {my ($x,$y,$z,...) = @_; FOO

Re: properties

2001-05-19 Thread Larry Wall
Dan Sugalski writes: : At 02:55 PM 5/19/2001 -0400, John Porter wrote: : Dan Sugalski wrote: : So what happens when you assign an overloaded value to a tied variable, or : vice versa? Which wins? : : Uh, the overloaded value gets evaluated to an normal value, : and the tied variable does

Re: properties

2001-05-19 Thread Jonathan Scott Duff
On Sat, May 19, 2001 at 11:47:10AM -0700, Larry Wall wrote: Edward Peschko writes: : my $num = 0 is true; : print $num.true; # prints 1; You've set a variable property there, so any value in it will appear to be permanently true. My minds wanted that to be a value property. So, is the