Re: Auto My?

2004-12-18 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer [EMAIL PROTECTED] Date: Saturday, December 18, 2004 4:16 pm Subject: Re: Auto My? Rod Adams writes: There are pros and cons, and it basically ends up being a design choice. Well, at least when strictures are on. When they are off, the coder

Re: Why do users need FileHandles?

2004-07-23 Thread JOSEPH RYAN
I define outside the core as anything that isn't packaged with Perl itself. Things you'd define as part of the language. I/O stuff, threading stuff, standard types, builtin functions, etc. And yeah, most of that stuff will be written natively in C, PIR, or be part of parrot itself. I think

Re: Why do users need FileHandles?

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: David Storrs [EMAIL PROTECTED] Date: Monday, July 19, 2004 5:04 pm Subject: Re: Why do users need FileHandles? Second, I would suggest that it NOT go in a library...this is reasonably serious under-the-hood magic and should be integrated into the core for

Re: xx and re-running

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: James Mastros [EMAIL PROTECTED] Date: Sunday, July 18, 2004 5:03 am Subject: xx and re-running Recently on perlmonks, at http://perlmonks.org/index.pl?node_id=375255, someone (DWS, actually) brought up the common error of expecting x (in particular,

Re: Why do users need FileHandles?

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh [EMAIL PROTECTED] Date: Thursday, July 22, 2004 3:07 pm Subject: Re: Why do users need FileHandles? Luke Palmer wrote: JOSEPH RYAN writes: - Original Message - From: David Storrs [EMAIL PROTECTED] Date: Monday, July 19, 2004 5:04

Re: push with lazy lists

2004-07-08 Thread JOSEPH RYAN
On Wed, Jul 07, 2004 at 11:50:16PM -0400, JOSEPH RYAN wrote: To answer the latter first, rand (with no arguments) returns a number greater than or equal to 0 and less than 1 which when used as an index into an array gets turned into a 0. As to why the second pop would take forever, I'd

Re: push with lazy lists

2004-07-07 Thread JOSEPH RYAN
- Original Message - From: Larry Wall [EMAIL PROTECTED] Date: Wednesday, July 7, 2004 11:25 pm Subject: Re: push with lazy lists On Fri, Jul 02, 2004 at 09:32:07PM -0500, Dan Hursh wrote: : how 'bout : : @x = gather{ : loop{ : take time : } : } # can this be

Re: push with lazy lists

2004-07-03 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh [EMAIL PROTECTED] Date: Friday, July 2, 2004 10:32 pm Subject: Re: push with lazy lists Joseph Ryan wrote: I guess that's true with X..Y lazy lists. I thought there were other ways to make lazy lists, like giving it a closure that gets called

Re: if not C, then what?

2004-07-02 Thread JOSEPH RYAN
- Original Message - From: David Storrs [EMAIL PROTECTED] Date: Thursday, July 1, 2004 7:55 pm Subject: Re: if not C, then what? On Thu, Jul 01, 2004 at 04:14:37PM -0700, Jonathan Lang wrote: Juerd wrote: If you're really enamoured with the infix operator syntax, consider this

Re: push with lazy lists

2004-07-02 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh [EMAIL PROTECTED] Date: Friday, July 2, 2004 2:23 pm Subject: push with lazy lists Hi, If I can assume: @x = 3..5; say pop @x;# prints 5 @x = 3..5; push @x, 6; say pop @x;# prints 6 say

Re: undo()?

2004-07-01 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer [EMAIL PROTECTED] Date: Tuesday, June 29, 2004 7:31 pm Subject: Re: undo()? Oh no! Someone doesn't understand continuations! How could this happen?! :-) You need two things to bring the state of the process back to an earlierstate: undo

Re: A stack for Perl?

2004-06-29 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer [EMAIL PROTECTED] Date: Tuesday, June 29, 2004 6:13 am Subject: Re: A stack for Perl? 1; $_='foo bar baz'; split; # @STACK now is (1, 'foo', 'bar', 'baz'); To boot, I can't think of a way to implement that in currently-defined

Fwd: Re: OO inheritance in a hacker style

2004-02-04 Thread Joseph Ryan
Woops, sent it to the wrong list! - Joe Joseph Ryan wrote: Luke Palmer wrote: Austin Hastings writes: Hmm. The text and examples so far have been about methods and this seems to be about multi-methods. Correct me if I'm wrong ... You're wrong. Consider my example, where via single

Re: OO inheritance in a hacker style

2004-01-28 Thread Joseph Ryan
Dmitry Dorofeev wrote: Hi all. Sorry if this idea|question has been discussed or has name which i don't know about. snip I'd like to write Class myclass : a { forget method area; forget method move; method put; } so methods getX, getY, size will be 'inherited'. Methods 'area' and 'move' will

Re: Control flow variables

2003-11-18 Thread Joseph Ryan
David Wheeler wrote: On Tuesday, November 18, 2003, at 06:11 PM, Joseph Ryan wrote: Not to be a jerk, but how about: my $is_ok = 1; for @array_of_random_values_and_types - $t { if not some_sort_of_test($t) { $is_ok = 0; last; } } if $is_ok

Re: Nested modules

2003-11-03 Thread Joseph Ryan
Luke Palmer wrote: So, we can have :: in names, but that doesn't represent any inherent relationship between the module before the :: and the one after. I think this is an important thing to keep. However, will it be possible to, for example, do: module Foo; module Bar { ... } And refer

Re: Nested modules

2003-11-03 Thread Joseph Ryan
Damian Conway wrote: Larry wrote: This kind of behaviour is more useful for nested classes, I suspect, but it should certainly be available for nested modules as well. So, what's the difference between a module and a class, and why would you want dynamic namespaces? Isn't that something you'd

Re: Apocalypses and Exegesis...

2003-08-16 Thread Joseph Ryan
Jonathan Scott Duff wrote: On Thu, Aug 14, 2003 at 03:00:54PM +0100, Alberto Manuel Brand?o Sim?es wrote: On Thu, 2003-08-14 at 14:49, Simon Cozens wrote: [EMAIL PROTECTED] (Alberto Manuel Brandão simões) writes: The question is simple, and Dan can have the same problem (or him or