What is the best way to refer to itself when obtaining Substring of a literal?

Marcone marcone at email.com
Sat Apr 25 09:32:21 UTC 2020


On Saturday, 25 April 2020 at 01:32:54 UTC, 9il wrote:
> On Friday, 24 April 2020 at 22:24:34 UTC, Marcone wrote:
>> I don't want to use lambda.
>> I don't want create variable.
>>
>> What is the best way to refer to itself when obtaining 
>> Substring withou using lambda and without create variable?
>>
>>
>> example:
>>
>> writeln("Hello Word!"[x.indexOf(" "), $]);
>
> no way

What a pity! If Dlang have $ to indicate end of string. I think 
that is good some keyword to indicate the string itself.


More information about the Digitalmars-d-learn mailing list