Re: run-once code

2004-01-14 Thread Dan Brook
On Tue, 13 Jan 2004 20:37:21 -0800 David Storrs <[EMAIL PROTECTED]> wrote: > Given this code: > > if ( some_expensive_lookup_function() >= $MAX_RECORDS ) { >mark_that_we_have_reached_max_records(); >return; > } > > After I enter that block once, I never want

Re: Aliasing an array slice

2003-07-06 Thread Dan Brook
ers"; char *p = &str[2]; puts(p); return 0; } __output__ list of characters Of course this isn't directly orthogonal to a reference of an array slice but hopefully it illustrates my point. Or perhaps this could all just be simply implemented with a tie() or some other such magic. Just thinking out loud here :) Dan Brook

Aliasing an array slice

2003-07-04 Thread Dan Brook
yes at least) and bind it to that particular slice of @array? Dan Brook

Re: "Disappearing" code

2003-01-10 Thread Dan Brook
On Thu, 09 Jan 2003 19:55:20 -0500 John Siracusa <[EMAIL PROTECTED]> wrote: > Has there been any discussion of how to create code in Perl 6 that's > there under some conditions, but not there under others? I'm thinking > of the spiritual equivalent of #ifdef, only Perlish. If the perl6 command-l