Re: Templates with strings

2010-07-03 Thread Simen kjaeraas
Mike Linford wrote: 2. The reason I don't use CTFE is because I don't know how to be certain its been called at compile time. Apparently using a result in a template like you did will accomplish that, but is there a way I can be sure without making up bogus empty templates? Anything that is s

Re: Templates with strings

2010-07-03 Thread Mike Linford
On Sun, 04 Jul 2010 00:43:50 +, BCS wrote: > Hello Mike, > >> I'm trying to compile the following file. Can somebody explain to me >> how I can rewrite it so that I don't get "Error: non-constant >> expression"? All I'm trying to do is create, using templates, a string >> of all characters be

lexer escape

2010-07-03 Thread Ellery Newcomer
what is the point of having \? a valid escape sequence?

Re: Templates with strings

2010-07-03 Thread BCS
Hello Mike, I'm trying to compile the following file. Can somebody explain to me how I can rewrite it so that I don't get "Error: non-constant expression"? All I'm trying to do is create, using templates, a string of all characters between two given characters: 1) where did you get that error

Templates with strings

2010-07-03 Thread Mike Linford
I'm trying to compile the following file. Can somebody explain to me how I can rewrite it so that I don't get "Error: non-constant expression"? All I'm trying to do is create, using templates, a string of all characters between two given characters: 1 module ua; 2 3 template dcharInterva

Re: MS VirtualFree(), VirtualAlloc()

2010-07-03 Thread BLS
On 02/07/2010 20:11, BLS wrote: Hi, for reasons I don't completely understand I would like to implement a BIP Buffer in D2. ;) well async IO is the use case .. I think. How can I allocate/free buffer-space from virtual memory ? What I am looking for is a way to do platform independent allocatin