Re: Help, what is the code mean?

2020-04-28 Thread Net via Digitalmars-d-learn
On Monday, 27 April 2020 at 13:36:25 UTC, Adam D. Ruppe wrote: On Monday, 27 April 2020 at 13:29:08 UTC, lilijreey wrote: Hi: In dlang core.thread.osthread has below code, the 654 line code i can understand why write () first, and {m_fn = fn;}() do what? The stdlib uses that pattern

Re: To get memory from another process.

2020-04-08 Thread Net via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 21:20:28 UTC, Quantium wrote: Could you advise me how to do these steps on D? Which libs should I import? 1. My programm gets a path to exe file 2. My programm starts that exe file and writes into it 2 commands 3. Programm gets access to exe file memory 4. Programm

Re: What does the [] operator do here?

2020-04-01 Thread Net via Digitalmars-d-learn
oh, i see. That was a dump question. I don't code in D has been a while and totally forget to create a new array was as simple as []

What does the [] operator do here?

2020-04-01 Thread Net via Digitalmars-d-learn
from the below code, the expression "case [c]": void main() { import std.stdio, std.string, std.algorithm, std.conv; // Reduce the RPN expression using a stack readln.split.fold!((stack, op) { switch (op) { // Generate operator switch cases statically