On Sat, 16 Sep 2000 19:26:38 -0700, Nathan Wiger wrote:
>My point was more should that be
>
> 'Class'->name
>
>or
>
> Class()->name
There now is another RFC about this: RFC 244. How odd, v1 dates from the
same day as your post. But I think Tom Christiansen has brought this up
before.
The i
On Sat, Sep 16, 2000 at 07:26:38PM -0700, Nathan Wiger wrote:
> My point was more should that be
>
>'Class'->name
>
> or
>
>Class()->name
I don't get it, lemme start from the beginning:
print "Basset hounds got long Basset::Hounds->thang().";
I'd like that to work out as:
p
Michael G Schwern wrote:
>
> >print "Your name is Class->name";
> >
> > Whether Class is 'Class' or Class(). The phrase "avoid at all costs"
> > comes to mind. ;-)
>
> Hmmm... we could require that the trailing parens be there:
>
> print "Your name is Class->name()";
Right, we could do
On Sat, Sep 16, 2000 at 02:57:01PM -0700, Nathan Wiger wrote:
> > Ooop, didn't even notice and didn't see the discussion. Let me see if
> > I missed anything... I didn't discuss class methods as opposed to
> > object methods. Will ponder.
>
> It's really dicey. I think it's probably bad, becaus
> ${$pkg.'::'.$var} = $val;
> ${"$pkg\::$var} = $val;
>
> Still ugly, but not quite as bad as what you came up with.
Thanks - once I saw the first one my brain went "Oh, yeah"
> Ooop, didn't even notice and didn't see the discussion. Let me see if
> I missed anything... I didn't
On Sat, Sep 16, 2000 at 03:24:32AM -, Perl6 RFC Librarian wrote:
> Currently, trying to dynamically assign to unnamed classes is very
> difficult:
>
>$pkg::$var = $val; # error
>${pkg}::$var = $val; # nope
>${$pkg::$var} = $val; # you wish
>${${pkg}::$var} =