Re: length's type.

2024-01-29 Thread Kagamin via Digitalmars-d-learn
I have an idea to estimate how long strlen takes on an exabyte string.

Branching of a discussion in forums?

2024-01-29 Thread Alexandru Ermicioi via Digitalmars-d-learn
Hi everyone, So just wondering is it possible to branch off a thread into new one (viewable as separate item in forum group)? Also, is it possible to branch into a different gruop all toghether? I.e. from "blabla" thread in announce to "some other thing" thread in learn for example? Than

Re: Branching of a discussion in forums?

2024-01-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
If you are using a NewsGroup reader like ThunderBird it should be possible to branch off and post in a different one. Although nobody does that, normally people rename the subject instead.

Re: Branching of a discussion in forums?

2024-01-29 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Monday, 29 January 2024 at 14:59:23 UTC, Richard (Rikki) Andrew Cattermole wrote: If you are using a NewsGroup reader like ThunderBird it should be possible to branch off and post in a different one. What about web interface? Although nobody does that, normally people rename the subject in

Re: Branching of a discussion in forums?

2024-01-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 30/01/2024 5:06 AM, Alexandru Ermicioi wrote: On Monday, 29 January 2024 at 14:59:23 UTC, Richard (Rikki) Andrew Cattermole wrote: If you are using a NewsGroup reader like ThunderBird it should be possible to branch off and post in a different one. What about web interface? I don't think

Re: Function Composition

2024-01-29 Thread Inkrementator via Digitalmars-d-learn
On Thursday, 25 January 2024 at 18:44:26 UTC, atzensepp wrote: However this works: ```d int delegate (int) td = (x) => compose!(f,g,g,f,g,g,f,g,g,f)(x); ``` While not a real function pointer, this might already fit your needs. ```d alias td = compose!(f,g); ```

Safety is not what you think

2024-01-29 Thread user1234 via Digitalmars-d-learn
I want to share a stupid program to show you that D safety is more complex than you might think: ```d module test; void test() @safe { int i; int b = (*&(*&++i))++; } void main() @safe { test(); } ``` I'm not showing a deficiency of D, that program is undeniably safe ;)