The site engine written in D

2015-03-01 Thread Dennis Ritchie via Digitalmars-d-learn
Prompt, please, where can I find the software engine written in D?

Re: The site engine written in D

2015-03-01 Thread Ali Çehreli via Digitalmars-d-learn
On 03/01/2015 03:03 PM, Dennis Ritchie wrote: Prompt, please, where can I find the software engine written in D? Do you mean vibe.d? http://vibed.org/ Ali

Re: The site engine written in D

2015-03-01 Thread Dennis Ritchie via Digitalmars-d-learn
On Monday, 2 March 2015 at 00:06:26 UTC, Ali Çehreli wrote: Do you mean vibe.d? http://vibed.org/ I was referring to the software engine written using the vibe.d. http://vibed.org/ written using the vibe.d?

Re: Does static ctor/dtor of struct behave differently in 2.067-b2?

2015-03-01 Thread amber via Digitalmars-d-learn
On Saturday, 28 February 2015 at 03:26:17 UTC, ketmar wrote: On Fri, 27 Feb 2015 23:58:16 +, amber wrote: On Friday, 27 February 2015 at 23:50:51 UTC, amber wrote: Hi All, [snip] Thanks, amber [edited subject] Sorry I should add that I'm talking about static ctor/dtor of struct.

SQLite3 and threads

2015-03-01 Thread Vitalie Colosov via Digitalmars-d-learn
Hi, I am not able to query SQLite3 database files using threads; without threads it is working fine. I tried both etc.c.sqlite3 and d2sqlite3, and both seem to be facing the same issue: They stuck when executing a select query (using sqlite3_exec(...) for etc.c.sqlite3 or using

Re: SQLite3 and threads

2015-03-01 Thread Vitalie Colosov via Digitalmars-d-learn
After some analysis, it looks like related to the code parts which I have omitted for simplicity, and in particular - I was creating the query using global variable which was populated in main() function. It appears that when I spawn the function, it does not see the value of the global

Re: SQLite3 and threads

2015-03-01 Thread Ali Çehreli via Digitalmars-d-learn
On 03/01/2015 09:47 PM, Vitalie Colosov wrote: global variable A module-scope variable is thread-local by-default. Every thread will have a copy of that variable. If you want to share data, you must define it as 'shared' (or __gshared). which was populated in main() function In that case

Re: Invoking MAGO debugger

2015-03-01 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:37:17 UTC, michaelc37 wrote: On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin wrote: Hello! I'm trying to integrate MAGO into DlangIDE. I can easy create instance of MAGO DebugEngine, but having problems with obtaining of IDebugPort which is

Re: Why rbtree.length isn't const?

2015-03-01 Thread drug via Digitalmars-d-learn
On 26.02.2015 18:44, Steven Schveighoffer wrote: Please submit an issue. http://issues.dlang.org -Steve Done: https://issues.dlang.org/show_bug.cgi?id=14234

Re: SQLite3 and threads

2015-03-01 Thread Vitalie Colosov via Digitalmars-d-learn
Now it all makes sense. Thank you. Maybe it would make also some sense if I would have gotten some kind of exception trying to access the variable which was not populated by the running thread, instead of successfully getting empty string... so this would be observed easily during the

Re: ErrnoException in Windows

2015-03-01 Thread novice2 via Digitalmars-d-learn
Thans guys! wenforce not sutable - error code is lost. may be, i will use modified wenforce, wich throws ErrnoException.

Re: ErrnoException in Windows

2015-03-01 Thread novice2 via Digitalmars-d-learn
Ha, i found std.windows.syserror: WindowsException, wenforce;

Re: ErrnoException in Windows

2015-03-01 Thread ketmar via Digitalmars-d-learn
On Sun, 01 Mar 2015 16:39:27 +, novice2 wrote: Could you, please, help me to understand, why code: 'cause winapi functions never sets `errno`. `errno` is a libc feature, and winapi knows nothing about libc. besides, `GetLastError()` is not required to return correct errno codes. so you

ErrnoException in Windows

2015-03-01 Thread novice2 via Digitalmars-d-learn
Could you, please, help me to understand, why code: import std.c.windows.windows; import std.exception: ErrnoException; import std.stdio: writefln; import std.string: toStringz; void main () { CreateFileA(toStringz(nonexisting file name), GENERIC_READ, FILE_SHARE_READ, null,

Re: ErrnoException in Windows

2015-03-01 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 1 March 2015 at 16:39:29 UTC, novice2 wrote: I wanted it will be: ex.errno=2, ex.msg=CreateFileA (File not found), lasterror=2 Here's the right way to do this: // test.d // import std.c.windows.windows; import std.string : toStringz;