Re: insertInPlace differences between compilers

2014-11-12 Thread John McFarlane via Digitalmars-d-learn
On Wednesday, 12 November 2014 at 19:15:24 UTC, John McFarlane wrote: On Wednesday, 12 November 2014 at 00:31:31 UTC, Jesse Phillips wrote: On Tuesday, 11 November 2014 at 20:53:51 UTC, John McFarlane wrote: I'm trying to write a struct template that uses `insertInPlace`. However, it doesn't wo

Re: insertInPlace differences between compilers

2014-11-12 Thread John McFarlane via Digitalmars-d-learn
On Wednesday, 12 November 2014 at 00:31:31 UTC, Jesse Phillips wrote: On Tuesday, 11 November 2014 at 20:53:51 UTC, John McFarlane wrote: I'm trying to write a struct template that uses `insertInPlace`. However, it doesn't work with certain template type / compiler combinations. Consider the fo

insertInPlace differences between compilers

2014-11-11 Thread John McFarlane via Digitalmars-d-learn
I'm trying to write a struct template that uses `insertInPlace`. However, it doesn't work with certain template type / compiler combinations. Consider the following: import std.range; struct S { const int c; } S[] a; insertInPlace(a, 0, S()); With DMD64 D Compiler v2.066.1, I g

Re: Embedding D Shared Library in WSGI Web Server

2014-11-03 Thread John McFarlane via Digitalmars-d-learn
On Tuesday, 28 October 2014 at 09:34:33 UTC, Chris wrote: On Tuesday, 28 October 2014 at 00:16:03 UTC, John McFarlane wrote: Hi, I've written a modest shared library in D that I'd like to call directly from a Python web server (Linux/OS X, Apache, WSGI, Pyramid). I can call it reliably from w

Embedding D Shared Library in WSGI Web Server

2014-10-27 Thread John McFarlane via Digitalmars-d-learn
Hi, I've written a modest shared library in D that I'd like to call directly from a Python web server (Linux/OS X, Apache, WSGI, Pyramid). I can call it reliably from within Python unit tests but on a running server, the library causes a SIGSEGV as soon as I try anything as complicated as a w

Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
On Friday, 24 October 2014 at 22:33:09 UTC, bachmeier wrote: I can't answer the first question, but for the second, I've given an example here: http://forum.dlang.org/post/zfdvrwvgavykauczb...@forum.dlang.org I've done that many, many times and do not see any problems related to the runtime.

Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
Apologies. That should be Ubuntu 14.04. On Friday, 24 October 2014 at 20:59:20 UTC, John McFarlane wrote: I'm following the preliminary example "Dynamically Loading a D DLL From a C Program" here: http://dlang.org/dll-linux.html#dso9 Firstly, my output is different: +main() libdll.so is loade

Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
I'm following the preliminary example "Dynamically Loading a D DLL From a C Program" here: http://dlang.org/dll-linux.html#dso9 Firstly, my output is different: +main() libdll.so is loaded dll() function is found dll() unloading libdll.so -main() If looks like static this and ~this are not bei