[svn:perl6-synopsis] r9302 - doc/trunk/design/syn

2006-05-19 Thread larry
Author: larry Date: Fri May 19 11:13:09 2006 New Revision: 9302 Modified: doc/trunk/design/syn/S03.pod Log: Refined hyperops a bit. Modified: doc/trunk/design/syn/S03.pod == --- doc/trunk/design/syn/S03.pod

Re: packages vs. classes

2006-05-19 Thread Larry Wall
On Thu, May 18, 2006 at 03:17:36PM -0700, Chip Salzenberg wrote: : What's the relationship in perl6 between namespaces and classes? Hmm, well, that's hard to put one's finger on, but to the first approximation namespaces are for declarational names, while classes can really only name things

Re: packages vs. classes

2006-05-19 Thread Larry Wall
'Course, I left out everything about prototype objects there... The name Foo also (in context) represents an uninitialized object of the class in question. Any object, initialized or not, can get at its type handlers by saying Foo.meta $foo.meta and, in fact, the Foo.^bar syntax is

hyp-op examples of a Bag type in S03

2006-05-19 Thread Darren Duncan
I know they were just introduced, but I have a question about the conceptual validity of the following statements in S03, which appear in the newly edited hyper-operators section: Bag(3,8,[2,Seq(9,3]],8) - 1; # Bag(2,7,[1,Seq(8,2)],7) Bag(3,8,[2,Seq(9,3)],8) - (1,1,1,1); #

Re: hyp-op examples of a Bag type in S03

2006-05-19 Thread Darren Duncan
Er, I meant to say subtracted where I said added. -- Darren Duncan

Re: packages vs. classes

2006-05-19 Thread Chip Salzenberg
On Fri, May 19, 2006 at 12:35:11PM -0700, Larry Wall wrote: If this isn't answering what you were asking, please ask s'more, and I'll try to reply when I'm not busy having a grandbaby. adCONGRATULATIONSvance :-) Packages, modules, classes, roles, subsets, enums, etc. all pretend they are

Re: packages vs. classes

2006-05-19 Thread Chip Salzenberg
On Fri, May 19, 2006 at 12:53:29PM -0700, Larry Wall wrote: and, in fact, the Foo.^bar syntax is just short for Foo.meta.bar. So, you anticipated my half-question. The type of metaobject Foo.meta might be called Class if that's what the metaobject protocol decides it should be, but Perl the

Re: packages vs. classes

2006-05-19 Thread Chip Salzenberg
On Fri, May 19, 2006 at 02:51:55PM -0700, Chip Salzenberg wrote: On Fri, May 19, 2006 at 12:53:29PM -0700, Larry Wall wrote: The type of metaobject Foo.meta might be called Class if that's what the metaobject protocol decides it should be, but Perl the Language doesn't care. If so, then

[svn:perl6-synopsis] r9304 - doc/trunk/design/syn

2006-05-19 Thread larry
Author: larry Date: Fri May 19 16:29:33 2006 New Revision: 9304 Modified: doc/trunk/design/syn/S03.pod Log: dduncan++ points out that bags are unordered, which actually forces asymmetry. Clarified difference between ».foo and ».?foo Modified: doc/trunk/design/syn/S03.pod

Re: packages vs. classes

2006-05-19 Thread Larry Wall
On Fri, May 19, 2006 at 03:25:43PM -0700, Chip Salzenberg wrote: : Based on what I'm seeing, the Perl 6 type object is the thing that claims : the primary name associated with a class. Foo::Bar is the type object. : The metaobject seems to be anonymous. And the package seems to be fairly :