Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-02 Thread Markus Laire
On 1 Oct 2002 at 18:47, [EMAIL PROTECTED] wrote: all text up to, but not including the string union. rule getstuffbeforeunion { (.*?) union | (.*) } a union = a b = b hmm... well, it works, but its not very efficient. It basically scans the whole string to the end to see if

Re: Subject-Oriented Programming

2002-10-02 Thread Andy Wardley
On Mon, Sep 30, 2002 at 11:22:02PM -0400, Michael G Schwern wrote: Last year at JAOO I stumbled on this thing called Subject-Oriented Programming which looked interesting. There are a bunch of advanced programming techniques like this that all fit under the same umbrella: * Subject

Re: Interfaces

2002-10-02 Thread Michael G Schwern
On Tue, Oct 01, 2002 at 05:04:29PM -0700, Michael Lazzaro wrote: On Tuesday, October 1, 2002, at 02:49 PM, Michael Lazzaro wrote: Which implies, I assume, that interface is not the default state of a class method, e.g. we do need something like method foo() is interface { ... } to declare

Re: Interfaces

2002-10-02 Thread Michael G Schwern
On Tue, Oct 01, 2002 at 04:01:26PM -0700, Michael Lazzaro wrote: On Tue, Oct 01, 2002 at 03:43:22PM -0400, Trey Harris wrote: You want something like class Car is Vehicle renames(drive = accel) is MP3_Player renames(drive = mp3_drive); I *really* like this, but would the

Re: Interfaces

2002-10-02 Thread Michael G Schwern
On Tue, Oct 01, 2002 at 02:49:49PM -0700, Michael Lazzaro wrote: My musing is that the behavior of a class in different contexts is itself an interface, in the sense of being a contract between a class/subclass and it's users Ah HA! Contract! Return values can be enforce via a simple DBC

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-02 Thread esp5
On Wed, Oct 02, 2002 at 10:39:17AM +0300, Markus Laire wrote: On 1 Oct 2002 at 18:47, [EMAIL PROTECTED] wrote: all text up to, but not including the string union. rule getstuffbeforeunion { (.*?) union | (.*) } a union = a b = b hmm... well, it works, but its not very

Re: Subject-Oriented Programming

2002-10-02 Thread Michael Lazzaro
On Wednesday, October 2, 2002, at 03:11 AM, Andy Wardley wrote: There are a bunch of advanced programming techniques like this that all fit under the same umbrella: * Subject Oriented Programming (IBM) * Aspect Oriented Programming (Xerox Parc) * Composition Filters * Adaptive

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-02 Thread Joe Gottman
On 1 Oct 2002 at 18:47, [EMAIL PROTECTED] wrote: all text up to, but not including the string union. How about (Perl6) /(.*?) union {$pos -= length('union');}/ This gets everything up to and including the first instance of 'union', then gets rid of the bit at the end that we don't