switch with regex
Hasan Aljudy
hasan.aljudy at gmail.com
Sun Feb 26 09:31:31 PST 2006
kellywilson at nowhere.com wrote:
> In article <dtqs7a$2onk$1 at digitaldaemon.com>, Tyro says...
>
>>kellywilson at nowhere.com wrote:
>>
>>>In article <dtqosg$2l1q$1 at digitaldaemon.com>, BCS says...
>>>
>>>I'm guessing this "writef" statement is supposed to say "Doing That"??????
>>>
>>>Just noticed it quickly ;)
>>>
>>>Thanks,
>>>K.Wilson
>>>
>>
>>I seriously doubt that is what he is asking and it happens that your
>>intuition has misled. The switch does not work because the language does
>>not support kind of feature he is trying to use. Thus: He is suggesting
>>that this should be implemented and wants to know what whether or not
>>you think it's a good idea.
>>
>>Regards,
>>Andrew C. Edwards
>
>
> Hey Andrew,
>
> This wasn't actually a serious answer from me....more of a quick prod to let him
> know there was a slight error. I didn't know enough about the regex/switch
> syntax in D to answer his question right away.
>
> Sorry to mislead, if I did.
> Kelly Wilson
>
>
The match expression is now gone anyway!!
Also I suspect that there's no performance advantage; there can't be.
More information about the Digitalmars-d
mailing list