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
On 09/04/2020 4:25 AM, Net wrote:
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
On Wednesday, 8 April 2020 at 15:52:59 UTC, Severin Teona wrote:
Hello,
I am working with a NUCLEO_f429zi board, architecure ARMv7e-m
and cortex-m4 CPU. I want to cross-compile D code for it from
Ubuntu 18.04 LTS Server. My current GCC version is 9.
How can I do that? What is the best
```
import std.stdio;
@safe:
__gshared int gshared = 42;
void foo(int i = gshared)
{
writeln(i);
}
void main()
{
foo();
}
```
This currently works; `foo` is `@safe` and prints the value of
`gshared`. Changing the call in main to `foo(gshared)` errors.
Should it work, and can I
Hello,
I am working with a NUCLEO_f429zi board, architecure ARMv7e-m and
cortex-m4 CPU. I want to cross-compile D code for it from Ubuntu
18.04 LTS Server. My current GCC version is 9.
How can I do that? What is the best cross-compiler for that?
On Wednesday, 8 April 2020 at 19:22:11 UTC, jmh530 wrote:
On Wednesday, 8 April 2020 at 18:50:16 UTC, data pulverizer
wrote:
On Wednesday, 8 April 2020 at 16:53:05 UTC, Anonymouse wrote:
```
import std.stdio;
@safe:
__gshared int gshared = 42;
void foo(int i = gshared)
{
writeln(i);
}
On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote:
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
On Wednesday, 8 April 2020 at 19:29:17 UTC, Anonymouse wrote:
```
__gshared int gshared = 42;
void foo(ref int i = gshared) @safe
{
++i;
}
void main()
{
assert(gshared == 42);
foo();
assert(gshared == 43);
}
```
Dude, you just broke `@safe`! Lol!
On Wednesday, 8 April 2020 at 19:29:17 UTC, Anonymouse wrote:
[snip]
It works with `ref int` too.
```
__gshared int gshared = 42;
void foo(ref int i = gshared) @safe
{
++i;
}
void main()
{
assert(gshared == 42);
foo();
assert(gshared == 43);
}
```
Well that definitely
On Wed, Apr 08, 2020 at 08:16:27PM +, Quantium via Digitalmars-d-learn
wrote:
> On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote:
[...]
> > As far I know, you can't access other's program memory in any modern
> > operating system. That's managed and protected by the OS through
> >
In all honesty till now I haven't really thought deeply about
memory allocation, I just assumed that malloc, free, and so on
where low level operating system functions and that was that.
I've heard people in the D community talk about garbage
collection, and memory allocation but I didn't
On Wednesday, 8 April 2020 at 18:50:16 UTC, data pulverizer wrote:
On Wednesday, 8 April 2020 at 16:53:05 UTC, Anonymouse wrote:
```
import std.stdio;
@safe:
__gshared int gshared = 42;
void foo(int i = gshared)
{
writeln(i);
}
void main()
{
foo();
}
```
This currently works; `foo`
On Wednesday, 8 April 2020 at 20:46:48 UTC, H. S. Teoh wrote:
On Wed, Apr 08, 2020 at 08:16:27PM +, Quantium via
Digitalmars-d-learn wrote:
On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote:
[...]
> As far I know, you can't access other's program memory in
> any modern operating
On Wednesday, 8 April 2020 at 16:53:05 UTC, Anonymouse wrote:
```
import std.stdio;
@safe:
__gshared int gshared = 42;
void foo(int i = gshared)
{
writeln(i);
}
void main()
{
foo();
}
```
This currently works; `foo` is `@safe` and prints the value of
`gshared`. Changing the call in
On Wednesday, 8 April 2020 at 19:53:03 UTC, jmh530 wrote:
Well that definitely shouldn't happen. I would file a bug
report.
Filed as https://issues.dlang.org/show_bug.cgi?id=20726
On Wednesday, 8 April 2020 at 15:52:59 UTC, Severin Teona wrote:
Hello,
I am working with a NUCLEO_f429zi board, architecure ARMv7e-m
and cortex-m4 CPU. I want to cross-compile D code for it from
Ubuntu 18.04 LTS Server. My current GCC version is 9.
How can I do that? What is the best
16 matches
Mail list logo