Compile time string manipulation caveats

Gregor Richards Richards at codu.org
Sat Feb 24 15:52:52 PST 2007


Hasan Aljudy wrote:
> I discovered that compile-time functions can't use non-static arrays .. 
> implying that we can't use char[] which is a dynamic array.
> However, this is essential for any non-trivial string parsing (even for 
> trivial ones, in fact), so how do we overcome this problem?
> 

Uh, compile-time functions /can/ use dynamic arrays.

  - Gregor Richards



More information about the Digitalmars-d mailing list