Re: Visual Studio 2022 no longer debugs D program, need an alternative debugger for Windows

2023-08-27 Thread evilrat666 via Digitalmars-d-learn
On Saturday, 26 August 2023 at 18:47:44 UTC, solidstate1991 wrote: On Saturday, 26 August 2023 at 17:57:22 UTC, jmh530 wrote: You should report this to bugzilla. I'm using it in an unusual way. Since VisualD does not support dub, I have to rely on VSCode as my main editor, then load the exec

Re: Function to get the current hostname for both Windows and Posix

2023-08-27 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, August 27, 2023 10:02:35 AM MDT vino via Digitalmars-d-learn wrote: > Hi All, > > May i know whether these is function to find the current > hostname both in windows and Posix. > > From, > Vino It looks like std.socket's Socket.hostName will do the trick. https://dlang.org/phobos/std

Pointer to environment.get

2023-08-27 Thread Vino via Digitalmars-d-learn
Hi All, The the below code is not working, hence requesting your help. Code: ``` import std.stdio; import std.process: environment; void main () { int* ext(string) = &environment.get("PATHEXT"); writeln(*ext); } ```

Re: Function to get the current hostname for both Windows and Posix

2023-08-27 Thread Vino via Digitalmars-d-learn
On Sunday, 27 August 2023 at 21:33:57 UTC, Jonathan M Davis wrote: On Sunday, August 27, 2023 10:02:35 AM MDT vino via Digitalmars-d-learn wrote: Hi All, May i know whether these is function to find the current hostname both in windows and Posix. From, Vino It looks like std.socket's Socke