Gary Willoughby wrote:

> I keep seeing this syntax used a bit and i'm stumped to what it
> means. What is it?
> 
> enum foo = q{
>     // ???
> };

q{} string literals (so-called "token strings") are a nice D feature - D 
garantees that tokens in between brackets are valid D tokens. This makes 
them perfect for storing D source code. They are quite useful for string 
mixins for an example.

-- 
http://dejan.lekic.org

Reply via email to