Thread overview | |||||
---|---|---|---|---|---|
|
June 30, 2012 '<' and '>' are "matching delimiters"? | ||||
---|---|---|---|---|
| ||||
They are, according to the "Nesting Delimiters" table in: http://dlang.org/lex.html When exactly are they seen as nesting delimiters? |
June 30, 2012 Re: '<' and '>' are "matching delimiters"? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mehrdad | On Saturday, June 30, 2012 07:05:04 Mehrdad wrote:
> They are, according to the "Nesting Delimiters" table in: http://dlang.org/lex.html
>
>
> When exactly are they seen as nesting delimiters?
When they're used in delimited strings. That's the whole point of that section. The examples are
q"(foo(xxx))" // "foo(xxx)"
q"[foo{]" // "foo{"
but they could have included something like
q"<foo{>" // "foo{"
- Jonathan M Davis
|
June 30, 2012 Re: '<' and '>' are "matching delimiters"? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | On Saturday, 30 June 2012 at 05:32:31 UTC, Jonathan M Davis wrote:
> On Saturday, June 30, 2012 07:05:04 Mehrdad wrote:
>> They are, according to the "Nesting Delimiters" table in:
>> http://dlang.org/lex.html
>>
>>
>> When exactly are they seen as nesting delimiters?
>
> When they're used in delimited strings. That's the whole point of that
> section. The examples are
>
> q"(foo(xxx))" // "foo(xxx)"
> q"[foo{]" // "foo{"
>
> but they could have included something like
>
> q"<foo{>" // "foo{"
>
> - Jonathan M Davis
Ooooooooooh I didn't understand that. lol it seems so obvious now. >_<
Thanks!
|
Copyright © 1999-2021 by the D Language Foundation