DMD 1.021 and 2.004 releases

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Sep 11 14:02:28 PDT 2007


Jascha Wetzel wrote:
> Kirk McDonald wrote:
> 
>> Jascha Wetzel wrote:
>>
>>> therefore you can match q"[^"]*" and check the delimiters during 
>>> (context sensitive) semantic analysis.
>>
>>
>> Is the following a valid string?
>>
>> q"/foo " bar/"
> 
> 
> oh, you're right of course...
> 
>> Walter also said, in another branch of the thread, that this is not 
>> valid:
>>
>> q"/foo/bar/"
>>
>> Since it isn't all /that/ hard to match these examples, I wonder why 
>> they are disallowed. Just to simplify the lexer that much more?
> 
> 
> what string would that represent?
> foo/bar
> foobar
> foo

I would expect it to represent foo/bar, in the same way that 
q"(foo(bar))" represents foo(bar).

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org



More information about the Digitalmars-d-announce mailing list