Re: How to get an inout constructor working with a template wrapper

2018-07-22 Thread Ali Çehreli via Digitalmars-d-learn
On 07/22/2018 03:51 PM, aliak wrote: > Hi, > > In the code below: > > struct W(T) { > T val; > this(T val) inout { > this.val = val; > } > } > > class C {} > > void main() { > W!C a = new C; > immutable W!C b = new C; > } > > W!C a = new C results in: "Error: cannot

How to get an inout constructor working with a template wrapper

2018-07-22 Thread aliak via Digitalmars-d-learn
Hi, In the code below: struct W(T) { T val; this(T val) inout { this.val = val; } } class C {} void main() { W!C a = new C; immutable W!C b = new C; } W!C a = new C results in: "Error: cannot implicitly convert expression val of type C to inout(C)." If I remove th

Re: Windows 64-bit import library

2018-07-22 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 12:03:20 UTC, evilrat wrote: On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote: On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate

Re: Windows 64-bit import library

2018-07-22 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 05:12:05 UTC, Mike Parker wrote: On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: I don't have MSVC, so I built it using mingw, which generated a .a lib. I shall google some more, as I understand it DMD -m64 uses Mingw libs as a fall back when MSVC not f

Re: Request scoped information in Vibe.d

2018-07-22 Thread Venkat via Digitalmars-d-learn
On Sunday, 22 July 2018 at 08:43:23 UTC, Johannes Loher wrote: On Sunday, 22 July 2018 at 06:21:40 UTC, Venkat wrote: How do I make variables available to diet templates ? Java has request.setAttribute. Vibe.d's HTTPServerRequest has params and queryString. But by the looks of it, neither one o

Re: QWebView requesting QtE5WebEng32.so on windows

2018-07-22 Thread Seb via Digitalmars-d-learn
On Saturday, 21 July 2018 at 19:11:08 UTC, Dr.No wrote: So I went to try out QWebView on Windows from this wrapper: https://github.com/MGWL/QtE5 all the examples went fine until I tried QWebView: https://github.com/MGWL/QtE5/blob/master/examples/webview.d I compile using this command line:

Re: Request scoped information in Vibe.d

2018-07-22 Thread Johannes Loher via Digitalmars-d-learn
On Sunday, 22 July 2018 at 06:21:40 UTC, Venkat wrote: How do I make variables available to diet templates ? Java has request.setAttribute. Vibe.d's HTTPServerRequest has params and queryString. But by the looks of it, neither one of them is created for the purpose of temporary storage in the r