complement to $

Simen kjaeraas simen.kjaras at gmail.com
Fri May 14 07:24:37 PDT 2010


Robert Jacques <sandford at jhu.edu> wrote:

> On Fri, 14 May 2010 09:32:31 -0400, Simen kjaeraas  
> <simen.kjaras at gmail.com> wrote:
>
>>   Steven Schveighoffer <schveiguy at yahoo.com> wrote:
>>
>>> So how does this look:  coll[^..$];
>>>
>>> Thoughts? other ideas?
>>>
>>> -Steve
>>
>> I like ^ for this usage, due (as you said) to its symmetry with
>> regexes. Other possible symbols would be # and ?, I believe.
>>
>> There should be no ambiguities with the caret as far as I can see.
>>
>
> ? is the ternary operator
> # is being used as to denote compiler Special Token Sequences

Yeah, I found that the mesh wouldn't work. What should be no
problem, though.

-- 
Simen


More information about the Digitalmars-d mailing list