How can I make executeShell ask for Admin Elevation?

2020-07-11 Thread Marcone via Digitalmars-d-learn
I don't want start program with admin elevation, but ask user for admin permission when some function is called.

Re: Calling a C function whose name is a D reserved word or keyword

2020-07-11 Thread Cecil Ward via Digitalmars-d-learn
On Monday, 6 July 2020 at 23:40:23 UTC, rikki cattermole wrote: https://dlang.org/spec/pragma.html#mangle pragma(mangle, "body") extern(C) void body_func(); Thanks, that’s excellent

Re: GDC and DMD incompatability, can both be used?

2020-07-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 11 July 2020 at 04:28:32 UTC, cy wrote: 125 | static foreach (string member; FieldNameTuple!T) { The word "static" there can probably be removed and have it work exactly the same way. Worth a try. Does gdc not support static foreach at all? only the newest gdc d

Re: how to assign to shared obj.systime?

2020-07-11 Thread Arafel via Digitalmars-d-learn
On 10/7/20 20:30, mw wrote: On Friday, 10 July 2020 at 17:35:56 UTC, Steven Schveighoffer wrote: Mark your setTime as shared, then cast away shared (as you don't need atomics once it's locked), and assign: synchronized setTime(ref SysTime t) shared {     (cast()this).time = t; } I know I can

Re: Uploading coverage to Codecov doesn't work

2020-07-11 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 8 July 2020 at 15:55:58 UTC, Mitacha wrote: Hello there, I've been trying to setup bitbucket pipelines to submit coverage to codecov, but with no luck. I use `dub run -b unittest-cov` and it generates .lst files correctly, then `bash <(curl -s https://codecov.io/bash) -t $CODECO