I can reffer length of literal string using $. "Hello World"[0..$] But I want make like it witout use variable name. "Hello World"[0..?.indexOf("o")]
How can I directly reffer literal element itself inside [] slice?
Marcone via Digitalmars-d-learn Mon, 11 Jan 2021 07:50:26 -0800
- How can I directly reffer literal elem... Marcone via Digitalmars-d-learn
- Re: How can I directly reffer lit... oddp via Digitalmars-d-learn
- Re: How can I directly reffer lit... Marcone via Digitalmars-d-learn
- Re: How can I directly reffer lit... Paul Backus via Digitalmars-d-learn
- Re: How can I directly reffer... Marcone via Digitalmars-d-learn