Thread overview
Regular expressions compiled?
Jun 29, 2005
Martin
Jun 29, 2005
Craig Black
Jun 29, 2005
Walter
June 29, 2005
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
> 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
"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.