"Steven Schveighoffer" <[email protected]> wrote in message 
news:[email protected]...
> On Tue, 24 Nov 2009 10:26:08 -0500, Nick Sabalausky <[email protected]> wrote:
>
>> "Long Chang" <[email protected]> wrote in message
>> news:[email protected]...
>>> class RegExp
>>> {
>>>    enum Option{
>>>        X, Y, Z
>>>    }
>>>    int options;
>>>    this(int options = 0){ this.options = options; }
>>> }
>>>
>>> void main(){
>>>       auto reg  = new RegExp("^A.",   .Option(  X |Y|Z ) );
>>>       assert( RegExp .Option.X | RegExp .Option.Y| RegExp .Option.Z   ==
>>> reg.options );
>>> }
>>>
>>
>> That's a very good idea, I like that a lot.
>
> The .Option is already taken, it means "look in the global scope".
>
> However, doing RegExp.Option(X|Y|Z) would be cool.
>

Well yea, that's the part I was referring to.


Reply via email to