ctRegex! vs regex error
Dmitry Olshansky
dmitry.olsh at gmail.com
Thu Aug 8 08:29:30 PDT 2013
08-Aug-2013 02:36, Milvakili пишет:
> Hi,
> I can compile
>
> void main(){
> auto myRegx = regex(`(?!test)`);
> }
>
> however can not compile this one
>
> void main(){
> auto myRegx = ctRegex!(`(?!test)`);
> }
Well, it should have said "sorry, unsupported yet" or something to that
extent. It's a bug regardless as it shouldn't spit this much of garbage
on the screen.
ctRegex is not yet up to the full feature set of the run-time one. The
prime things missing are exactly zero-width assertions
(look-ahead/look-behind). And certain things will simply make compiler
explode...
Reasons for not supporting it yet are various but the primary one is
that I can't even fully test the current subset yet (!) due to the sorry
state of CTFE (still!). Things definitely greatly improved since then
but don't get your hopes high it's not something to fix overnight.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list