What does q{...} mean?

Namespace rswhite4 at googlemail.com
Mon Feb 24 03:58:31 PST 2014


On Monday, 24 February 2014 at 11:53:00 UTC, anonymous wrote:
> On Monday, 24 February 2014 at 11:47:02 UTC, Namespace wrote:
>> On Monday, 24 February 2014 at 11:41:41 UTC, 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{
>>>  // ???
>>> };
>>
>> http://dlang.org/lex.html#DelimitedString
>
> It's a token string though, not a delimited string. See the
> section "Token Strings" on that page.

Yeah right. It's hard to find quick the right anchors...


More information about the Digitalmars-d-learn mailing list