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
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?
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.
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
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
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.
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
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
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
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
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
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
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.
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
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
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
16 matches
Mail list logo