evaluate string functions at compile time?

Henning Hasemann hhasemann at web.de
Fri May 25 12:50:51 PDT 2007


Atm I could make use of some CTFE, but at least some of the functions
in std.string seem to be not evaluable at compile time.
Is it generally impossible to run library functions at compile time?
If not what would be the easiest way to use split, splitlines etc.

Okay these 2 are bad example because they would be easily writeable.
But for example RE's are a problem and so are format strings.
Not even the templated version de help me if the string they are
working on is not const in the CTF.

Any ideas?
If its all to hard I think ill switch to write a simple program that
does the magic-file-to-d-source conversion and include it in my build
step.

Henning

-- 
GPG Public Key: http://keyserver.veridis.com:11371/search?q=0x41911851
Fingerprint: 344F 4072 F038 BB9E B35D  E6AB DDD6 D36D 4191 1851



More information about the Digitalmars-d mailing list