Re: How to Get Screenshot on Windows ?

2017-05-27 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 28 May 2017 at 04:05:47 UTC, Softwarez wrote: Hi can anyone please help me how to get screenshot on Windows using D, because all the other threads are using linux to get screenshot. In the same way you'd do it in C. Here is a more convoluted D example in the form of a program I ha

How to Get Screenshot on Windows ?

2017-05-27 Thread Softwarez via Digitalmars-d-learn
Hi can anyone please help me how to get screenshot on Windows using D, because all the other threads are using linux to get screenshot.

gtkd build fail on windows with dmd 2.074.0

2017-05-27 Thread greatsam4sure via Digitalmars-d-learn
rdmd Build.d fail on windows with dmd 2.074.0,dmd 2.073.0. it says std.file.FileException@std\file.d(814)gtkd2.obj:The system cannot find the file specifield. I have to use dmd 2.071.0 to build it I will appreciate your help sorry for the mistake

gtkd build fail on windows with dmd 2.074.0

2017-05-27 Thread greatsam4sure via Digitalmars-d-learn
rdmd Build.d fail on windows with dmd 2.074.0,dmd 2.073.0. it says std.file.FileException@std\file.d(814)gtkd2.obj:The system cannot find the file specifield. I have to use dmd 2.071.0 to build it I will appreciate your held

Re: Out of memory error (even when using destroy())

2017-05-27 Thread nkm1 via Digitalmars-d-learn
On Saturday, 27 May 2017 at 17:57:03 UTC, Mike B Johnson wrote: And what if one isn't interfacing to C? All pointers should be known. Apparently some people are (were?) working on semi-precise GC: https://github.com/dlang/druntime/pull/1603 That still scans the stack conservatively, though.

Re: Default class template parameter

2017-05-27 Thread Igor Shirkalin via Digitalmars-d-learn
On Saturday, 27 May 2017 at 19:30:40 UTC, Stanislav Blinov wrote: On Saturday, 27 May 2017 at 19:23:59 UTC, Igor Shirkalin wrote: [...] No, you'd have to at least write auto a = new ClassName!()(1.2); Or you could define a make function: auto makeClassName(T = double)(T value) { return

Re: Default class template parameter

2017-05-27 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 27 May 2017 at 19:23:59 UTC, Igor Shirkalin wrote: Hi, I try to make a class template with single template argument defaulted to some type. Is it possible to use the name of class without specification of template argumet (no '!' operator)? Example: class ClassName(T=double) {

Default class template parameter

2017-05-27 Thread Igor Shirkalin via Digitalmars-d-learn
Hi, I try to make a class template with single template argument defaulted to some type. Is it possible to use the name of class without specification of template argumet (no '!' operator)? Example: class ClassName(T=double) { this(T value) { /// do some stuff here } /// some oth

Re: Out of memory error (even when using destroy())

2017-05-27 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 27 May 2017 at 17:57:03 UTC, Mike B Johnson wrote: And what if one isn't interfacing to C? All pointers should be known. You can't access memory by and int or any other non-pointer type! Hence, when pointers are created or ints are cast to pointers, the GC should be informed and t

Re: Out of memory error (even when using destroy())

2017-05-27 Thread Mike B Johnson via Digitalmars-d-learn
On Friday, 26 May 2017 at 18:19:48 UTC, H. S. Teoh wrote: On Fri, May 26, 2017 at 06:06:42PM +, Mike B Johnson via Digitalmars-d-learn wrote: On Friday, 26 May 2017 at 14:05:34 UTC, ag0aep6g wrote: > On 05/26/2017 10:15 AM, realhet wrote: > > But hey, the GC knows that is should not search f