Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread novice3 via Digitalmars-d-learn
DMD x86 on Windows have no dependencies, just unpack .zip and use. It's a pitty, that DMD x64 depend on VS :(

Re: How do I convert an ISO 8601 datetime into a unix timestamp - at compile-time?

2020-08-27 Thread Andrej Mitrovic via Digitalmars-d-learn
On Friday, 28 August 2020 at 01:54:02 UTC, Andrej Mitrovic wrote: - import std.datetime; void main () { static time = SysTime(DateTime.fromISOString("20220101T00")).toUnixTime; } - I think I'm supposed to use MonoTime here, right?

How do I convert an ISO 8601 datetime into a unix timestamp - at compile-time?

2020-08-27 Thread Andrej Mitrovic via Digitalmars-d-learn
- import std.datetime; void main () { static time = SysTime(DateTime.fromISOString("20220101T00")).toUnixTime; } - - /Library/D/dmd/src/phobos/std/concurrency.d(2574): Error: static variable lock cannot be read at compile time

Re: Shallow copy object when type is know

2020-08-27 Thread mw via Digitalmars-d-learn
On Thursday, 21 April 2016 at 11:53:13 UTC, rumbu wrote: On Wednesday, 20 April 2016 at 12:32:48 UTC, Tofu Ninja wrote: Is there a way to shallow copy an object when the type is known? I cant seem to figure out if there is a standard way. I can't just implement a copy function for the class, I

Re: in; scope; scope ref; DIP1000; documentation

2020-08-27 Thread ag0aep6g via Digitalmars-d-learn
On 27.08.20 20:49, James Blachly wrote: 1. The thread involves 'in' qualifier. Documentation (https://dlang.org/spec/function.html#param-storage) indicates that `in` is defined as `scope const` and should not be used as it is not implemented. **Is this [fact and recommendation] still true?**

Re: Vibe.d timer - change callback?

2020-08-27 Thread James Blachly via Digitalmars-d-learn
On Tuesday, 25 August 2020 at 18:42:53 UTC, codic wrote: I'd like to be able to change the callback of a vibe.d Timer (eg created with http://vibe-core.dpldocs.info/v1.9.3/vibe.core.core.createTimer.html) after creation, something like: auto timer = createTimer(); timer.rearm(duration,

in; scope; scope ref; DIP1000; documentation

2020-08-27 Thread James Blachly via Digitalmars-d-learn
Peeling off from Mathias Lang's thread in General about making 'in' useful, for some novice questions: 1. The thread involves 'in' qualifier. Documentation (https://dlang.org/spec/function.html#param-storage) indicates that `in` is defined as `scope const` and should not be used as it is

Re: Vibe.d timer - change callback?

2020-08-27 Thread FreeSlave via Digitalmars-d-learn
On Tuesday, 25 August 2020 at 18:42:53 UTC, codic wrote: I'd like to be able to change the callback of a vibe.d Timer (eg created with http://vibe-core.dpldocs.info/v1.9.3/vibe.core.core.createTimer.html) after creation, something like: auto timer = createTimer(); timer.rearm(duration,

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 August 2020 at 17:34:03 UTC, bachmeier wrote: It would be nice to have a screencast of this for someone that doesn't work often with Windows. There are screenshots in the VS docs, e.g., https://docs.microsoft.com/en-us/visualstudio/install/modify-visual-studio?view=vs-2019

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread bachmeier via Digitalmars-d-learn
On Thursday, 27 August 2020 at 16:44:28 UTC, Mike Parker wrote: On Thursday, 27 August 2020 at 16:39:05 UTC, Mike Parker wrote: Or maybe better, just go to the 'Individual components', select the latest Windows 10 SDK version, and install it. Or just check the installation folder. For me,

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 August 2020 at 16:39:05 UTC, Mike Parker wrote: Or maybe better, just go to the 'Individual components', select the latest Windows 10 SDK version, and install it. Or just check the installation folder. For me, it's: C:\Program Files (x86)\Windows

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 August 2020 at 15:59:51 UTC, Jesse Phillips wrote: Installing D isn't new to me but I haven't really had to do a fresh install for awhile and come from a time when I was installing VS from 2010 and up. VS 2019 Professional is installed on the system. I have installed the C++

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 August 2020 at 16:35:07 UTC, Mike Parker wrote: It has worked for me every time I've installed it since VS 2015. libucrt.lib should have been installed by the VS installer. Something to check: run the installer again, click the checkbox in corner of the 'Desktop development

Re: Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 27 August 2020 at 15:59:51 UTC, Jesse Phillips wrote: Upon compiling a 64bit hello world I get helloworld> dmd -m64 .\hello.d LINK : fatal error LNK1104: cannot open file 'libucrt.lib' Error: linker exited with status 1104 I solved this by either installing c++

Installing D on Fresh Windows 10 machine is a pain

2020-08-27 Thread Jesse Phillips via Digitalmars-d-learn
Installing D isn't new to me but I haven't really had to do a fresh install for awhile and come from a time when I was installing VS from 2010 and up. VS 2019 Professional is installed on the system. I have installed the C++ desktop development for VS. DMD installer still is unable to find