Re: Is there an alternative of `go get`

2020-08-07 Thread Cogitri via Digitalmars-d-learn
On Friday, 7 August 2020 at 07:17:25 UTC, Ky-Anh Huynh wrote: Hi everyone, `go get` in Golang world has a simple way to fetch and install binary ``` $ go get github/foo/bar.git $ export PATH=$PATH:$(go env GOPATH)/bin $ bar --help ``` This saves a lot of time and setup. Is that an alternativ

Re: Does std.net.curl: download have support for callbacks?

2020-06-11 Thread Cogitri via Digitalmars-d-learn
On Thursday, 11 June 2020 at 06:13:59 UTC, adnan338 wrote: On Thursday, 11 June 2020 at 06:05:09 UTC, adnan338 wrote: I would like to set a callback for the `download()` function but I do not seem to find a way to add a callback to the procedure. [...] I have also been told that Gtk is not

Re: D, Unit_Threaded, and GtkD

2020-05-16 Thread Cogitri via Digitalmars-d-learn
On Saturday, 16 May 2020 at 10:51:07 UTC, Russel Winder wrote: Has anyone got any D code using the Glib event loop, usually GtkD code I'd guess, that is well tested using Unit_Threaded? I always had a hard time doing unittests for things with as many moving parts as glib based software, so I

Re: DScanner warns class is undocumented, how to resolve it ?

2020-05-14 Thread Cogitri via Digitalmars-d-learn
On Thursday, 14 May 2020 at 06:08:17 UTC, Vinod K Chandran wrote: On Thursday, 14 May 2020 at 06:05:00 UTC, Vinod K Chandran wrote: Hi all, I wrote a class and in VS Code, DScanner says that the class is undocumented. How can i document a class ? Never mind, i found the answer myself. Just li

Re: GtkD crash: 'BadAlloc (insufficient resources for operation)'

2020-04-28 Thread Cogitri via Digitalmars-d-learn
On Monday, 27 April 2020 at 14:53:06 UTC, mark wrote: Below is the bt. Does it look like my bug or a Gtk or GtkD bug? That's hard to say without the debug info for gtkd, gtk and glib installed (so the backtrace isn't all the useful), but since gtkd isn't mentioned in the log I guess that it's

Re: GtkD crash: 'BadAlloc (insufficient resources for operation)'

2020-04-27 Thread Cogitri via Digitalmars-d-learn
Hello, could you try what the error message suggest you to do: On Monday, 27 April 2020 at 12:03:18 UTC, mark wrote: (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with th