Re: Issues with Vibe.d Dynamic HTML with JSON

2017-11-02 Thread SamwiseFilmore via Digitalmars-d-learn
On Thursday, 2 November 2017 at 08:40:28 UTC, bauss wrote: Do you get a response back with rendered html or does the connection get dropped? No, the html does come in, and the whole content of the rendered page is sent to the browser. The page has closing head and body tags. Have you tried

Re: COM/OLE advanced questions

2017-11-02 Thread Daniel Kozak via Digitalmars-d-learn
AFAIK you can only use COM from windows anyway. OK I have been using them from linux but only with WINE help. On Thu, Nov 2, 2017 at 3:22 PM, Guillaume Piolat via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > I wonder if anyone has used COM in dlang extensively. > > Context:

Re: Issues with Vibe.d Dynamic HTML with JSON

2017-11-02 Thread bauss via Digitalmars-d-learn
On Thursday, 2 November 2017 at 18:48:10 UTC, bauss wrote: On Thursday, 2 November 2017 at 16:23:55 UTC, SamwiseFilmore wrote: On Thursday, 2 November 2017 at 08:40:28 UTC, bauss wrote: [...] No, the html does come in, and the whole content of the rendered page is sent to the browser. The

Re: Issues with Vibe.d Dynamic HTML with JSON

2017-11-02 Thread bauss via Digitalmars-d-learn
On Thursday, 2 November 2017 at 16:23:55 UTC, SamwiseFilmore wrote: On Thursday, 2 November 2017 at 08:40:28 UTC, bauss wrote: Do you get a response back with rendered html or does the connection get dropped? No, the html does come in, and the whole content of the rendered page is sent to

Re: Line numbers in backtraces (2017)

2017-11-02 Thread Tobias Pankrath via Digitalmars-d-learn
Including Phobos? Your posted backtrace looks to me like templates instantiated within Phobos, so I think you'd need Phobos with debug symbols for those lines. --- int main(string[] argv) { return argv[1].length > 0; } --- ~ [i] % rdmd -g -debug test.d core.exception.RangeError@test.d(3):

Re: simple DIP1000 test fails?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, November 02, 2017 14:03:52 Jonathan M Davis via Digitalmars-d- learn wrote: > On Thursday, November 02, 2017 19:53:36 Q. Schroll via Digitalmars-d-learn > wrote: > > struct S { ref S id() return { return this; } } > > void main() { S* p = ().id(); } > > Well, if you make them @safe,

Re: simple DIP1000 test fails?

2017-11-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/2/17 4:07 PM, Jonathan M Davis wrote: On Thursday, November 02, 2017 14:03:52 Jonathan M Davis via Digitalmars-d- learn wrote: On Thursday, November 02, 2017 19:53:36 Q. Schroll via Digitalmars-d-learn wrote: struct S { ref S id() return { return this; } } void main() { S* p = ().id(); }

Re: Line numbers in backtraces (2017)

2017-11-02 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 2 November 2017 at 19:05:46 UTC, Tobias Pankrath wrote: Including Phobos? Your posted backtrace looks to me like templates instantiated within Phobos, so I think you'd need Phobos with debug symbols for those lines. --- int main(string[] argv) { return argv[1].length > 0; } ---

simple DIP1000 test fails?

2017-11-02 Thread Q. Schroll via Digitalmars-d-learn
I've tried to get into the changes by DIP1000 and discovered this: struct S { ref S id() return { return this; } } void main() { S* p = ().id(); } Should it really compile? (rdmd -dip1000 .\test_return_ref.d)

Re: simple DIP1000 test fails?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, November 02, 2017 19:53:36 Q. Schroll via Digitalmars-d-learn wrote: > struct S { ref S id() return { return this; } } > void main() { S* p = ().id(); } Well, if you make them @safe, it won't compile whether -dip1000 is used or not. At the moment, I don't recall whether -dip1000's

Re: Issues with Vibe.d Dynamic HTML with JSON

2017-11-02 Thread SamwiseFilmore via Digitalmars-d-learn
On Thursday, 2 November 2017 at 18:51:09 UTC, bauss wrote: On Thursday, 2 November 2017 at 18:48:10 UTC, bauss wrote: Before you did: render!("index.dt", title, major_categories); Have you tried to check the contents of "major_categories" making sure it's all there. Just to figure out whether

Re: simple DIP1000 test fails?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, November 02, 2017 16:39:43 Steven Schveighoffer via Digitalmars-d-learn wrote: > On 11/2/17 4:07 PM, Jonathan M Davis wrote: > > On Thursday, November 02, 2017 14:03:52 Jonathan M Davis via > > Digitalmars-d-> > > learn wrote: > >> On Thursday, November 02, 2017 19:53:36 Q. Schroll

Re: simple DIP1000 test fails?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, November 02, 2017 18:54:15 Steven Schveighoffer via Digitalmars-d-learn wrote: > On 11/2/17 6:10 PM, Jonathan M Davis wrote: > > I haven't read DIP 25 > > recently, but I assume that the return on id is equivalent to marking > > the > > this parameter with return, in which case, the

Re: simple DIP1000 test fails?

2017-11-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/2/17 6:10 PM, Jonathan M Davis wrote: Except that IIRC, DIP 25 only applies to @safe code. I think the original implementation only applied to @safe code, but it seems to have an effect on @system code as well: Stevens-MacBook-Pro:testd steves$ cat testdip25.d ref int foo(ref int s) {

Re: Any book recommendation for writing a compiler?

2017-11-02 Thread Igor via Digitalmars-d-learn
On Thursday, 2 November 2017 at 03:55:27 UTC, Michael V. Franklin wrote: On Wednesday, 1 November 2017 at 20:53:44 UTC, Dr. Assembly wrote: Hey guys, if I were to get into dmd's source code to play a little bit (just for fun, no commercial use at all), which books/resources do you recommend to

Re: Issues with Vibe.d Dynamic HTML with JSON

2017-11-02 Thread bauss via Digitalmars-d-learn
On Thursday, 2 November 2017 at 04:00:10 UTC, SamwiseFilmore wrote: I've got a serialized JSON structure that looks something like this: [...] Do you get a response back with rendered html or does the connection get dropped? Have you tried to cut down the amount of data and see if it will

Re: COM/OLE advanced questions

2017-11-02 Thread evilrat via Digitalmars-d-learn
You'd better read some more authorative source since my experience is very limited on that matter, but here is some quick notes On Thursday, 2 November 2017 at 14:22:56 UTC, Guillaume Piolat wrote: Question 1. Is it mandatory to inherit from core.sys.windows.unknwn.IUnknown, or just having

Re: Issue with sc.ini within XMake build infrastructure

2017-11-02 Thread rikki cattermole via Digitalmars-d-learn
On 02/11/2017 12:42 PM, Andre Pany wrote: Hi, I have a windows slave on which the dmd archive is extracted and dub is executed using build scripts. The windows slave has Visual Studio 2017 installed. I would like to switch from OMF to COFF executables to also allow 64 bit compilations. My

Re: Issue with sc.ini within XMake build infrastructure

2017-11-02 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 2 November 2017 at 12:21:50 UTC, rikki cattermole wrote: Override the shipped sc.ini file with your own. Simple and effective solution. What I just found out, by calling the batch file "vcvars64.bat" from the visual studio folder it seems everything is already pre configured

Issue with sc.ini within XMake build infrastructure

2017-11-02 Thread Andre Pany via Digitalmars-d-learn
Hi, I have a windows slave on which the dmd archive is extracted and dub is executed using build scripts. The windows slave has Visual Studio 2017 installed. I would like to switch from OMF to COFF executables to also allow 64 bit compilations. My issue is, there is no way to install DMD

Re: Any book recommendation for writing a compiler?

2017-11-02 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 1 November 2017 at 20:53:44 UTC, Dr. Assembly wrote: Hey guys, if I were to get into dmd's source code to play a little bit (just for fun, no commercial use at all), which books/resources do you recommend to start out? You don't need to read books to write a compiler, a bit of

COM/OLE advanced questions

2017-11-02 Thread Guillaume Piolat via Digitalmars-d-learn
I wonder if anyone has used COM in dlang extensively. Context: I must use COM FFI interfacing on systems that aren't necessarily Windows. It is essential that the layout of interfaces and classes are the same than in equivalent C++ objects. Question 1. Is it mandatory to inherit from

Re: Issue with sc.ini within XMake build infrastructure

2017-11-02 Thread rikki cattermole via Digitalmars-d-learn
On 02/11/2017 1:56 PM, Andre Pany wrote: On Thursday, 2 November 2017 at 12:21:50 UTC, rikki cattermole wrote: Override the shipped sc.ini file with your own. Simple and effective solution. What I just found out, by calling the batch file "vcvars64.bat" from the visual studio folder it

Re: Issue with sc.ini within XMake build infrastructure

2017-11-02 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 2 November 2017 at 13:01:05 UTC, rikki cattermole wrote: On 02/11/2017 1:56 PM, Andre Pany wrote: On Thursday, 2 November 2017 at 12:21:50 UTC, rikki cattermole wrote: Override the shipped sc.ini file with your own. Simple and effective solution. What I just found out, by