Re: Conceptual questions about Objects

2008-04-05 Thread chromatic
On Saturday 05 April 2008 17:10:57 Larry Wall wrote: > On Fri, Apr 04, 2008 at 09:41:26PM -0500, John M. Dlugosz wrote: > > I suppose any object would do, it doesn't have to be "but undefined", or > > created using that Class{hash} syntax? > > Possibly. Haven't really thought through the ramific

Re: Conceptual questions about Objects

2008-04-05 Thread Larry Wall
On Fri, Apr 04, 2008 at 09:41:26PM -0500, John M. Dlugosz wrote: > But see my q's to Audrey. Why does it need the qualified name if the same > class as $obj's declared type, We could conceivably relax that if $obj has a declared type. But on the other hand requiring the class name is pretty goo

Re: postfix and postcircumfix

2008-04-05 Thread Larry Wall
On Sat, Apr 05, 2008 at 01:41:02PM -0500, John M. Dlugosz wrote: > Larry Wall larry-at-wall.org |Perl 6| wrote: >> On Wed, Apr 02, 2008 at 06:08:55PM -0700, Jon Lang wrote: >> : In "Question on your last change to S02", Larry Wall wrote: >> : > (By the way, you'll note the utility of being able to

Re: STD.pm

2008-04-05 Thread Larry Wall
On Sat, Apr 05, 2008 at 07:59:36PM -, John M. Dlugosz wrote: : I'm trying to fathom STD.pm. : : Maybe someone can help me trace through this one? : : How is : $obj!privA = 1; : parsed? : : Reading expect_term, it trys , then sees the "$" and commits to the decision, reads "obj" as a

Re: STD.pm

2008-04-05 Thread Patrick R. Michaud
On Sat, Apr 05, 2008 at 05:32:27PM -0500, Patrick R. Michaud wrote: > On Sat, Apr 05, 2008 at 07:59:36PM -, John M. Dlugosz wrote: > > I'm trying to fathom STD.pm. > > > > Maybe someone can help me trace through this one? > > > > How is > > $obj!privA = 1; > > parsed? > > > > Reading e

Re: STD.pm

2008-04-05 Thread Patrick R. Michaud
On Sat, Apr 05, 2008 at 07:59:36PM -, John M. Dlugosz wrote: > I'm trying to fathom STD.pm. > > Maybe someone can help me trace through this one? > > How is > $obj!privA = 1; > parsed? > > Reading expect_term, it trys , then sees the > "$" and commits to the decision, reads "obj" as

Re: Easy question: what is a "list comprehension" ?

2008-04-05 Thread Luke Palmer
On Sat, Apr 5, 2008 at 7:32 PM, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> wrote> > On Apr 5, 2008, at 15:07 , John M. Dlugosz wrote: > > > What is a "list comprehension"? I've seen that term bantered around here. > > > > The term comes from Haskell and Python; it's a shorthand notation for li

STD.pm

2008-04-05 Thread John M. Dlugosz
I'm trying to fathom STD.pm. Maybe someone can help me trace through this one? How is $obj!privA = 1; parsed? Reading expect_term, it trys , then sees the "$" and commits to the decision, reads "obj" as a , then checks for a ".", but doesn't have similar logic for "!". So it's parsed

Re: Easy question: what is a "list comprehension" ?

2008-04-05 Thread Brandon S. Allbery KF8NH
On Apr 5, 2008, at 15:07 , John M. Dlugosz wrote: What is a "list comprehension"? I've seen that term bantered around here. The term comes from Haskell and Python; it's a shorthand notation for list generation and filtering. [x | x <- some expression involving y, y = some range exp

Re: Easy question: what is a "list comprehension" ?

2008-04-05 Thread Chas. Owens
On Sat, Apr 5, 2008 at 3:07 PM, John M. Dlugosz <[EMAIL PROTECTED]> wrote: > What is a "list comprehension"? I've seen that term bantered around here. snip It is like a list, for loop, and grep all rolled up into one. Here is what it looks like in Python: S = [2*x for x in xrange(100) if x**2 >

Easy question: what is a "list comprehension" ?

2008-04-05 Thread John M. Dlugosz
What is a "list comprehension"? I've seen that term bantered around here. --John

Re: postfix and postcircumfix

2008-04-05 Thread John M. Dlugosz
Larry Wall larry-at-wall.org |Perl 6| wrote: On Wed, Apr 02, 2008 at 06:08:55PM -0700, Jon Lang wrote: : In "Question on your last change to S02", Larry Wall wrote: : > (By the way, you'll note the utility of being able to talk about a : > postfix by saying .[], which is one of the reasons we a

Re: understanding STD.pm

2008-04-05 Thread Ryan Richter
On Sat, Apr 05, 2008 at 09:16:13AM -0400, Ryan Richter wrote: > On Sat, Apr 05, 2008 at 08:22:42AM -, John M. Dlugosz wrote: > > > > OK, you got me. What is the "?" used for? For example, > === $!ws_to }>. > > > > I only see that character as used in this manner (a variable name?), > > nev

Re: understanding STD.pm

2008-04-05 Thread Ryan Richter
On Sat, Apr 05, 2008 at 08:22:42AM -, John M. Dlugosz wrote: > > OK, you got me. What is the "�" used for? For example, === $!ws_to }>. > > I only see that character as used in this manner (a variable name?), > never defined (e.g. as a variable or parameter) anywhere. Something is choking

understanding STD.pm

2008-04-05 Thread John M. Dlugosz
OK, you got me. What is the "¢" used for? For example, . I only see that character as used in this manner (a variable name?), never defined (e.g. as a variable or parameter) anywhere. --John