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

2020-04-25 Thread Marcone via Digitalmars-d-learn
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?

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

2020-04-25 Thread Marcone via Digitalmars-d-learn
On Saturday, 25 April 2020 at 03:47:33 UTC, SrMordred 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?

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

2020-04-24 Thread SrMordred via Digitalmars-d-learn
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(" "), $]); Maybe u

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

2020-04-24 Thread 9il via Digitalmars-d-learn
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?

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

2020-04-24 Thread 9il via Digitalmars-d-learn
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 is the best way to refer to itself when obtaining Substring of a literal?

2020-04-24 Thread Marcone via Digitalmars-d-learn
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(" "), $]);