On Saturday, 14 August 2021 at 08:24:41 UTC, user1234 wrote:
On Friday, 13 August 2021 at 23:33:05 UTC, Paul Backus wrote:
On Friday, 13 August 2021 at 23:23:55 UTC, Marcone wrote:
writeln("Hello World!"[x.indexOf("e")..x.indexOf("r")]);
indexOf()is just a simple example, not the goal. I
On Friday, 13 August 2021 at 23:33:05 UTC, Paul Backus wrote:
On Friday, 13 August 2021 at 23:23:55 UTC, Marcone wrote:
writeln("Hello World!"[x.indexOf("e")..x.indexOf("r")]);
indexOf()is just a simple example, not the goal. I want handle
literal inside [] like it bellow, but in literal:
On Fri, Aug 13, 2021 at 04:35:54PM -0700, Ali Çehreli via Digitalmars-d-learn
wrote:
> On 8/13/21 4:23 PM, Marcone wrote:
>
> > string x = "Hello World!";
> > writeln(x[x.indexOf("e")..x.indexOf("r")]);
>
> I don't see the usefulness and there are the following problems with
> it:
>
> - Not an
On 8/13/21 7:23 PM, Marcone wrote:
On Friday, 13 August 2021 at 23:08:07 UTC, jfondren wrote:
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with lambda
to handle a string literal?
So, something other than an exact
On Friday, 13 August 2021 at 23:21:42 UTC, Ali Çehreli wrote:
On 8/13/21 4:08 PM, jfondren wrote:
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with
lambda to handle a string literal?
So, something other than an exact
On 8/13/21 4:23 PM, Marcone wrote:
> string x = "Hello World!";
> writeln(x[x.indexOf("e")..x.indexOf("r")]);
I don't see the usefulness and there are the following problems with it:
- Not an algorithmic complexity issue but it sounds to me like a
pessimization to go through the elements in
On Friday, 13 August 2021 at 23:23:55 UTC, Marcone wrote:
writeln("Hello World!"[x.indexOf("e")..x.indexOf("r")]);
indexOf()is just a simple example, not the goal. I want handle
literal inside [] like it bellow, but in literal:
string x = "Hello World!";
On Friday, 13 August 2021 at 23:23:55 UTC, Marcone wrote:
On Friday, 13 August 2021 at 23:08:07 UTC, jfondren wrote:
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with
lambda to handle a string literal?
So, something
On Friday, 13 August 2021 at 23:08:07 UTC, jfondren wrote:
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with
lambda to handle a string literal?
So, something other than an exact "lit"[0..this.xx(..)] syntax
is fine?
On 8/13/21 4:08 PM, jfondren wrote:
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with lambda
to handle a string literal?
So, something other than an exact "lit"[0..this.xx(..)] syntax is fine?
What didn't you like about
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
Isn't there some unario operator template that I can use with
lambda to handle a string literal?
So, something other than an exact "lit"[0..this.xx(..)] syntax is
fine?
What didn't you like about `"Hello
On Friday, 13 August 2021 at 21:47:22 UTC, Steven Schveighoffer
wrote:
On 8/13/21 5:05 PM, Marcone wrote:
How to extend the string class to return this inside the
square bracket the same way opDollar $ returns the length of
the string? Thank you.
import std;
void main(){
On 8/13/21 5:05 PM, Marcone wrote:
How to extend the string class to return this inside the square bracket
the same way opDollar $ returns the length of the string? Thank you.
import std;
void main(){
writeln("Hello World!"[0..this.indexOf("o")]);
}
There is no
On Friday, 13 August 2021 at 21:14:29 UTC, user1234 wrote:
On Friday, 13 August 2021 at 21:05:22 UTC, Marcone wrote:
How to extend the string class to return this inside the
square bracket the same way opDollar $ returns the length of
the string? Thank you.
import std;
void main(){
On Friday, 13 August 2021 at 21:05:22 UTC, Marcone wrote:
How to extend the string class to return this inside the square
bracket the same way opDollar $ returns the length of the
string? Thank you.
import std;
void main(){
writeln("Hello World!"[0..this.indexOf("o")]);
}
How to extend the string class to return this inside the square
bracket the same way opDollar $ returns the length of the string?
Thank you.
import std;
void main(){
writeln("Hello World!"[0..this.indexOf("o")]);
}
16 matches
Mail list logo