Regex in ctfe?
Era Scarecrow via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 27 13:09:19 PST 2016
On Wednesday, 27 January 2016 at 20:25:33 UTC, H. S. Teoh wrote:
> On Wed, Jan 27, 2016 at 07:54:21PM +0000, Era Scarecrow via
> Digitalmars-d wrote:
>> But it would seem easier/simpler if the compiler just hooks
>> in the Regex that's compiled into it instead and passes the
>> data back and forth. It does mean you can't test Regex changes
>> during the CTFE stage (assuming your actively
>> changing/building it) but it wouldn't have the performance
>> hit either.
>
> Currently, AFAIK, (d)dmd does not use anything from Phobos. I'm
> not sure if this is a temporary situation, or there's a strong
> reason for it.
Probably since it was so recently changed from C++ to D that it
just hasn't tried to include anything. And leaving the two
projects (library and compiler) separate does allow a certain
level of purity.
More information about the Digitalmars-d
mailing list