Re: mixin under -betterC

2023-12-09 Thread DLearner via Digitalmars-d-learn
On Sunday, 26 November 2023 at 15:35:39 UTC, Adam D Ruppe wrote: On Thursday, 23 November 2023 at 16:33:52 UTC, DLearner wrote: string mxnTest(string strVar1, string strVar2) { return `(int Var1, int Var2) { if (Var1 > Var2) { return true; } else { return false;

Re: Manually relesing memory

2023-12-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 9 December 2023 at 10:12:11 UTC, Vlad Stanimir wrote: I am new to the language and am curios about manual memory management options. From what i can tell dlang offers the option for both manul and automatic management of memory resources. You might find all the answers in

Manually relesing memory

2023-12-09 Thread Vlad Stanimir via Digitalmars-d-learn
I am new to the language and am curios about manual memory management options. From what i can tell dlang offers the option for both manul and automatic management of memory resources. The language provides the ability to create your own allocator which is nice but i am a bit confused about

Re: D Snippet: Reading a file to standard output on Windows Operating System. (FileScan.d)

2023-12-09 Thread BoQsc via Digitalmars-d-learn
`switch` statement to match a text line While outputing to the standard stream, it is also possible to use `switch` statement to **match a text line to a text line in a file.** I personally think it improve readability and maintainability in some applications. ``` import std; void