Array Slice Ranges

Lars Ivar Igesund larsivar at igesund.net
Thu Nov 9 01:28:49 PST 2006


Bradley Smith wrote:

>> Maybe
>> 
>>   arr[2~~3] -- two dots stretch out and squgglified?
>>   arr[2**2] -- two dots gone hairy?
>>   arr[2::3] -- two dots .. on top of two dots ..
>>   arr[2``3] -- closest you can get to two dots up high
>>   arr[2##3] -- eh..
>>   arr[N@@B] -- heh heh
>> 
> 
> I noticed that ~~ is listed as a token on the Lexical page
> (http://www.digitalmars.com/d/lex.html), but I can't find reference to
> it anywhere else. What is ~~ used for?

An artifact from the regex match expression I think.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the Digitalmars-d mailing list