Re: d2 file input performance

2011-10-18 Thread Marco Leise
Am 04.09.2011, 19:01 Uhr, schrieb Christian Köstlin christian.koest...@gmail.com: On 9/3/11 7:53 , dennis luehring wrote: Am 26.08.2011 19:43, schrieb Christian Köstlin: Hi guys, i started the thread: http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2 on

Re: Implicit cast to immutable

2011-10-18 Thread Daniel Murphy
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.v3h06olweav7ka@localhost.localdomain... That sounds like an incorrect restriction. The implicit cast to immutable should depend on whether the function being *called* qualifies, not if the function you are calling *from*

Re: Implicit cast to immutable

2011-10-18 Thread bearophile
Daniel Murphy: 2) immutable(int[]) fun() { return new int[]; } // conversion happens here immutable x = fun(); Bearophile's example is of the second, where it definately matters what the purity of the function is. This is the enhancement request I have written days ago:

Re: Looking for documentation of D's lower-level aspects.

2011-10-18 Thread Trass3r
ahead = n._next; The C/C++ equivalent of this is `ahead = n-next;`, or equivalently `ahead = (*n).next;`. This is a difference in semantics from C/C++ with respect to the `.`---it seems like D turns pointer to struct property accesses into property access with indirection. Yes. It

Re: Looking for documentation of D's lower-level aspects.

2011-10-18 Thread Jacob Carlborg
On 2011-10-18 12:50, Trass3r wrote: ahead = n._next; The C/C++ equivalent of this is `ahead = n-next;`, or equivalently `ahead = (*n).next;`. This is a difference in semantics from C/C++ with respect to the `.`---it seems like D turns pointer to struct property accesses into property access

Re: Implicit cast to immutable

2011-10-18 Thread Daniel Murphy
bearophile bearophileh...@lycos.com wrote in message news:j7jepi$prp$1...@digitalmars.com... Daniel Murphy: 2) immutable(int[]) fun() { return new int[]; } // conversion happens here immutable x = fun(); Bearophile's example is of the second, where it definately matters what the purity

Re: FastCGI binding or implementation?

2011-10-18 Thread Jeremy Sandell
On Mon, Oct 17, 2011 at 2:11 PM, Jacob Carlborg d...@me.com wrote: On 2011-10-17 16:01, Andrea Fontana wrote: I handle request on different threads. I do some pre-processing on scgi data and I fill a struct: request.get[] request.post[] request.cookie[] request.headers[string] then I

Re: FastCGI binding or implementation?

2011-10-18 Thread Adam D. Ruppe
I've been having trouble with my news postings, so forgive me if I said this before. But my cgi.d module supports FastCGI via the C library, with the same D interface as normal CGI or an embedded server: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff Just

Re: FastCGI binding or implementation?

2011-10-18 Thread simendsjo
On 18.10.2011 19:24, Jeremy Sandell wrote: On Mon, Oct 17, 2011 at 2:11 PM, Jacob Carlborg d...@me.com mailto:d...@me.com wrote: On 2011-10-17 16:01, Andrea Fontana wrote: I handle request on different threads. I do some pre-processing on scgi data and I fill a struct:

Re: Looking for documentation of D's lower-level aspects.

2011-10-18 Thread Jesse Phillips
Sean Silva Wrote: I have just finished reading Alexandrescu's The D Programming Language, but it doesn't seem to talk at all about how to use D as a stand-in for C/C++ almost at all. E.g., the part of D that doesn't depend on a runtime or garbage collector. There isn't any real

Re: FastCGI binding or implementation?

2011-10-18 Thread Adam D. Ruppe
Tale time, only tangentially on topic. Today, I was coincidentally switching one of my work apps from standard CGI to Fast CGI. Almost trivial. Set up Apache, then build the program with -version=fastcgi. Done. Well, not 100% done. I had a piece of static data in the app that worked correctly

Re: gtkD problems and general gui question.

2011-10-18 Thread Jordi Sayol
Al 18/10/11 17:08, En/na Jordi Sayol ha escrit: Al 18/10/11 16:44, En/na %u ha escrit: Hello. I downloaded gtkD MS Windows installer, and I tried to compile one of the examples shown on the gtkD website: http://www.dsource.org/projects/gtkd There is not GtkD MS Windows installer on gtkd

Re: Only one signal per object?

2011-10-18 Thread Andrej Mitrovic
I've ran into an awful bug right now (probably not related to your module). It basically comes down to this inside of a Widget constructor: this(Widget parent) { super(parent); void test() { msgbox(this.position); }

xml Bible for conversion for D

2011-10-18 Thread Joel Christensen
I've got xml text of a Bible version. I want to get the text in the following format: class Bible { Book[] bs; } class Book { Chapter[] cs; } class Chapter { Verse[] vs; } class Verse { string v; } Here's a part of the xml file: ?xml version=1.0 encoding=ISO-8859-1? bible b

Re: Frontend and backend communication

2011-10-18 Thread Dainius (GreatEmerald)
I'm trying to implement the function pointer system right now, and it seems to work on the C side, but not D. I assume I'm missing some kind of syntax here. I have these global variables: struct S_FrontendFunctions { void function() RedrawScreen; void

Re: xml Bible for conversion for D

2011-10-18 Thread Jesse Phillips
I suggest xmlp http://www.dsource.org/projects/xmlp/ Example: http://www.dsource.org/projects/xmlp/browser/trunk/test/books.d He intends to push for it to be in Phobos so it uses the std namespace. import std.xml2; On Wed, 19 Oct 2011 17:31:06 +1300, Joel Christensen wrote: I would like

Re: xml Bible for conversion for D

2011-10-18 Thread Joel Christensen
I think I want to stick with the current std xml library for now. I think the books example is too different for me to work for what I want.