View mode: basic / threaded / horizontal-split · Log in · Help
June 29, 2005
Regular expressions compiled?
Does D have a capability to compile regular expressions (with compiling other
source code)?

Interpreted regular expressions are much slower than compiled ones.

Can anyone tell if D has this capability or will get it in the future?
June 29, 2005
Re: Regular expressions compiled?
> Does D have a capability to compile regular expressions (with compiling 
> other
> source code)?

No. The regular expression support is a part of the Phobos run-time library.

> Interpreted regular expressions are much slower than compiled ones.

Stands to reason.

> Can anyone tell if D has this capability or will get it in the future?

Maybe in the distant future.  I would not expect this to be a huge priority 
for Walter.

-Craig
June 29, 2005
Re: Regular expressions compiled?
"Martin" <Martin_member@pathlink.com> wrote in message
news:d9trd1$s03$1@digitaldaemon.com...
> Does D have a capability to compile regular expressions (with compiling
other
> source code)?
>
> Interpreted regular expressions are much slower than compiled ones.
>
> Can anyone tell if D has this capability or will get it in the future?

The regular expression support is completely done in std.regexp, the
compiler/language knows nothing about it.
Top | Discussion index | About this forum | D home