Re: Is libdruntime deprecated in 2.051?

2010-12-24 Thread Heywood Floyd
Quick 2.051 D for Xcode fix: Open /Library/Application Support/Developer/Shared/Xcode/Plug-ins/ And do Show contents on the 'D for Xcode.xcplugin"-bundle and then open ./Contents/Resources/dmd2.pblinkspec and change the line CommandLineArgs = { NO = (); "<>" = ("/usr/local/lib/libphob

Is libdruntime deprecated in 2.051?

2010-12-24 Thread Heywood Floyd
Build fails after upgrade to 2.051 with gcc saying /usr/local/lib/libdruntime.a: No such file or directory And indeed, the file is gone! This is XCode with D for XCode plugin, so it assumes stuff about the build tools. Using dmd from the command line works, and running it with '-v' it seems

Re: Strange socket error

2010-12-24 Thread Bob Cowdery
Perseverance pays off in the end. Having worked out how the socket class was supposed to work it seemed that the select call was returning when it was not supposed to and giving a false indication in the socket set of who spoke. When I looked at the return code of select() it was -1 (interrupted).

Re: std.encoding Usage

2010-12-24 Thread spir
On Fri, 24 Dec 2010 18:33:04 + (UTC) Mandeep Singh Brar wrote: > Hi, > > Can you please help me/point me to the usage for std.encoding > package.I think i was successfully able to encode a string into > byte array using the following code: > string x = "test"; > ubyte[] buffe

std.encoding Usage

2010-12-24 Thread Mandeep Singh Brar
Hi, Can you please help me/point me to the usage for std.encoding package.I think i was successfully able to encode a string into byte array using the following code: string x = "test"; ubyte[] buffer; EncodingScheme es = EncodingScheme.create("UTF-16LE"); foreach(c

Re: TDPL dictionary example - error

2010-12-24 Thread Mariusz Gliwiński
Friday 24 December 2010 @ 18:36:08 Caligo: > I forgot to ask, what version of DMD are you using? 2.049 signature.asc Description: This is a digitally signed message part.

Re: TDPL dictionary example - error

2010-12-24 Thread Caligo
I forgot to ask, what version of DMD are you using? 2010/12/24 Mariusz Gliwiński > Friday 24 December 2010 @ 06:24:34 Caligo: > > Greetings, > > > > I just joined here, so sorry if this has been posted before. > > > > I'm reading TDPL and the example on page 8 doesn't compile. I'm using > the >

Re: [D1] type of type

2010-12-24 Thread bearophile
%u: > Hiding in Object.. interesting :) But this has strong limitations. For this problem templates are usually used. Bye, bearophile

Re: DMD2 out parameters

2010-12-24 Thread bearophile
Pete: > Has anyone else come across this and if so is it a bug? I'm also interested in > people's thoughts on the strange code gen. Please add the whole explanation in a bug report. (If you don't want to write the bug report then I'll write it myself). Bye, bearophile

Re: double -> double[]... | feature or bug?

2010-12-24 Thread bearophile
Steven Schveighoffer: > This feature brings absolutely nothing to the table IMO. Added as issue 5368. Bye, bearophile