Re: Problem this names of shared libraries

2012-07-04 Thread Johannes Pfau
Am Wed, 04 Jul 2012 07:15:18 +0200 schrieb "mezozoysky" : > On Tuesday, 26 June 2012 at 10:23:32 UTC, Jacob Carlborg wrote: > > On 2012-06-26 10:45, mezozoysky wrote: > >> > >> What is this: dmd bug? OS or ld misconfiguration? something > >> else? > >> > >> Please tell me if I'm doing something w

Re: std.json

2012-07-04 Thread Alexsej
On Monday, 26 March 2012 at 07:14:50 UTC, Ali Çehreli wrote: On 03/25/2012 08:26 AM, AaronP wrote: Could I get a "hello, world" example of parsing json? The docs look simple enough, but I could still use an example. For what it's worth, I've just sent the following program to a friend before

Re: std.json

2012-07-04 Thread Ali Çehreli
On 07/04/2012 08:25 AM, Alexsej wrote: > On Monday, 26 March 2012 at 07:14:50 UTC, Ali Çehreli wrote: >> // Assumes UTF-8 file >> auto content = to!string(read("json_file")); > Your example only works if the json file in UTF-8 (BOM), how to make > sure that it worked with the files in UTF-8 with

Re: Using std.net.curl

2012-07-04 Thread Brad Anderson
On Sun, Jul 1, 2012 at 10:59 AM, Gary Willoughby wrote: > I'm using the built-in curl library on Linux i'm getting linker errors. > I've installed libcurl4-openssl-dev and it works fine as i can successfully > compile a sample program. However when using the D lib i get these errors: > > [quote]

Re: std.json

2012-07-04 Thread nazriel
On Wednesday, 4 July 2012 at 16:55:19 UTC, Ali Çehreli wrote: On 07/04/2012 08:25 AM, Alexsej wrote: > On Monday, 26 March 2012 at 07:14:50 UTC, Ali Çehreli wrote: >> // Assumes UTF-8 file >> auto content = to!string(read("json_file")); > Your example only works if the json file in UTF-8 (BOM),

Re: std.json

2012-07-04 Thread Ali Çehreli
On 07/04/2012 10:51 AM, nazriel wrote: > Ali, I allowed myself to copy-modify.a.little-paste your example to > dpaste.dzfl.pl > > Hope you don't mind! > Here it is http://dpaste.dzfl.pl/a76157cf No problem! Thanks for doing that. :) Ali

Parser generator?

2012-07-04 Thread Wouter Verhelst
Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having it generated (at least for my initial permutation) seems like a better idea... Thanks, -- The volume of a pizza of thickness a and radius z can be described by the following

Re: Parser generator?

2012-07-04 Thread Jonathan M Davis
On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: > Hi folks, > > Does someone know of a parser generator for D? > > If it doesn't exist, I can write a parser by hand, but having it > generated (at least for my initial permutation) seems like a better > idea... > > Thanks, https://git

Re: Parser generator?

2012-07-04 Thread Wouter Verhelst
Jonathan M Davis writes: > On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: >> Hi folks, >> >> Does someone know of a parser generator for D? >> >> If it doesn't exist, I can write a parser by hand, but having it >> generated (at least for my initial permutation) seems like a better

Re: Parser generator?

2012-07-04 Thread Jonathan M Davis
On Wednesday, July 04, 2012 15:32:16 Wouter Verhelst wrote: > Jonathan M Davis writes: > > On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: > >> Hi folks, > >> > >> Does someone know of a parser generator for D? > >> > >> If it doesn't exist, I can write a parser by hand, but having i

Re: Parser generator?

2012-07-04 Thread Timon Gehr
On 07/04/2012 11:41 PM, Jonathan M Davis wrote: On Wednesday, July 04, 2012 15:32:16 Wouter Verhelst wrote: Jonathan M Davis writes: On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser

Re: Literals starting with 0 will not work with UFCS

2012-07-04 Thread Jonathan Andrew
On Wednesday, 4 July 2012 at 00:34:39 UTC, Jonathan M Davis wrote: On Wednesday, July 04, 2012 02:20:26 ixid wrote: 0.writeln(); This works. 01.writeln(); This doesn't. etc... Throw up a series of errors while any other number as the leading digit seems to work fine. Why is this? It

Re: Literals starting with 0 will not work with UFCS

2012-07-04 Thread Jonathan M Davis
On Thursday, July 05, 2012 01:44:19 Jonathan Andrew wrote: > The one exception I found to starting literals with 0 is when > using dates - using the DateTime module (excellent write-up, > btw!) and having to pass dates like 07/04/09 as 7, 4, 9 without > the leading 0 is kind of awkward, for me at l

Re: Parser generator?

2012-07-04 Thread Mirko Pilger
Does someone know of a parser generator for D? http://www.complang.org/ragel/ http://www.semitwist.com/goldie/

Re: Parser generator?

2012-07-04 Thread Jerome BENOIT
Apparently Flex/Bison can be used: see last answer in http://www.digitalmars.com/d/archives/digitalmars/D/31679.html hth, Jerome On 04/07/12 22:53, Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having i

Winamp plugin

2012-07-04 Thread dnewbie
I'm writing a Winamp plugin in D. Winamp loads my plugin and everything is fine until I close Winamp. At this point, Winamp calls the Quit() function of my plugin and *after* that, Winamp crashes. Here is the code. D source http://dpaste.dzfl.pl/e2b2f886 myplugin.def - .DEF file ---