Re: HelloWordl in Webserver

2012-03-18 Thread dennis luehring
Am 17.03.2012 21:08, schrieb Xan: I dont' want to battle among languages, its maybe only a library battle > but I see that in Golang there is a beatiful solution to display HelloWorld program in web server [rosettacode.org/wiki/Hello_world/Web_server#Go]. no its creates and simple webserver

Re: Problem about Tuple.opEquals, const qualifier

2012-03-18 Thread Tongzhou Li
On Sunday, 18 March 2012 at 06:15:16 UTC, Ali Çehreli wrote: Every template instantiation of a set of template parameters becomes a distinct type than any other set of template parameters. In other words, Tuple!(double, char) and Tuple!(int, char) are distinct types. For all the compiler know

Re: Problem about Tuple.opEquals, const qualifier

2012-03-18 Thread Simen Kjærås
On Sun, 18 Mar 2012 08:34:19 +0100, Tongzhou Li wrote: On Sunday, 18 March 2012 at 06:15:16 UTC, Ali Çehreli wrote: Every template instantiation of a set of template parameters becomes a distinct type than any other set of template parameters. In other words, Tuple!(double, char) and Tupl

Re: Problem about Tuple.opEquals, const qualifier

2012-03-18 Thread bearophile
Tongzhou Li: > Another problem. I wrote: > Tuple!(double, char)[] stack; > stack ~= tuple(10, '+'); > It won't compile: I have already shown here how to solve that problem: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=33749 import std.type

Initializing constant AA and shared problems..

2012-03-18 Thread simendsjo
I'm trying to initialize an AA, but initializing at definition fails, as do in a shared module ctor. // how is this now constant? //shared string[int] aa = [1: "a"]; // Error: non-constant expression [1:"a"] // ok string[int] aa2; static this() { aa2 = [1: "a"]; } // The same with shar

Re: Initializing constant AA and shared problems..

2012-03-18 Thread H. S. Teoh
On Sun, Mar 18, 2012 at 02:50:00PM +0100, simendsjo wrote: > I'm trying to initialize an AA, but initializing at definition > fails, as do in a shared module ctor. > > // how is this now constant? > //shared string[int] aa = [1: "a"]; // Error: non-constant > expression [1:"a"] This is a shortcom

nested csv into tsv

2012-03-18 Thread bioinfornatics
dear, i have this data: data1 data2 data3a;data3b;data3c cata1 cata2 cata3a;cata3b;cata3c tata1 tata2 tata3a;tata3b;tata3c field are sepaated by tab but third field contain data separeted by semi colon I have try: _

Re: nested csv into tsv

2012-03-18 Thread Jesse Phillips
On Sunday, 18 March 2012 at 14:45:42 UTC, bioinfornatics wrote: $ ./test_csv std.csv.CSVException@/usr/include/d/std/csv.d(1047): Can't parse string: "[" is missing std.conv.ConvException@/usr/include/d/std/conv.d(2714): Can't parse string: "[" is missing std.

Re: nested csv into tsv

2012-03-18 Thread bioinfornatics
Le dimanche 18 mars 2012 à 16:53 +0100, Jesse Phillips a écrit : > On Sunday, 18 March 2012 at 14:45:42 UTC, bioinfornatics wrote: > > > > $ ./test_csv > > std.csv.CSVException@/usr/include/d/std/csv.d(1047): Can't > > parse string: > > "[" is missing > > std.conv.

Re: nested csv into tsv

2012-03-18 Thread Ali Çehreli
On 03/18/2012 07:45 AM, bioinfornatics wrote: > dear, i have this data: > > data1 data2 data3a;data3b;data3c > cata1 cata2 cata3a;cata3b;cata3c > tata1 tata2 tata3a;tata3b;tata3c > > > field are sepaated by tab

Re: nested csv into tsv

2012-03-18 Thread bioinfornatics
Le dimanche 18 mars 2012 à 09:53 -0700, Ali Çehreli a écrit : > On 03/18/2012 07:45 AM, bioinfornatics wrote: > > dear, i have this data: > > > > data1 data2 data3a;data3b;data3c > > cata1 cata2 cata3a;cata3b;cata3c > > tata1 tata2 tata3a;t

Re: nested csv into tsv

2012-03-18 Thread Ali Çehreli
Bug fix release: :) On 03/18/2012 10:13 AM, bioinfornatics wrote: > Le dimanche 18 mars 2012 à 09:53 -0700, Ali Çehreli a écrit : >> void field3( string[] field ) @property { >> _field3 = field.join(); I think that should have been field.join(";"). (But join() is not used in th

Tail call optimization?

2012-03-18 Thread Alex Rønne Petersen
Does D to tail call optimization of any kind? -- - Alex

Re: Tail call optimization?

2012-03-18 Thread bearophile
Alex Rønne Petersen Wrote: > Does D to tail call optimization of any kind? The D standard doesn't require the D compiler to perform that optimization (unlike Scheme). Currently both DMD and LDC are able to perform tail call optimization in some normal cases. And I presume GDC is able to do the

Re: regex issue

2012-03-18 Thread Jay Norwood
On Friday, 16 March 2012 at 03:36:12 UTC, Joshua Niehus wrote: Hello, Does anyone know why I would get different results between ctRegex and regex in the following snippet? Thanks, Josh I'm also having questions about the matchers. From what I understand in the docs, if I use this greedy