joining multicast groups with std.socket

2011-01-04 Thread Peter Ryan
I am trying to listen to a multicast group using the std.socket library. I have looked at the documentation but I do not see a way to join a multicast group. The code I have so far is pasted below. I am looking for the IP_ADD_MEMBERSHIP socket option (along the lines of http://www.cs.unc.edu/~jeffa

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread Manfred_Nowak
Steven Schveighoffer wrote: > please replace done. :-) -manfred

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread spir
On Tue, 4 Jan 2011 17:56:53 + (UTC) "Manfred_Nowak" wrote: > > They describe which side of the equation they are on > > arg, no! please replace "equation" by "assignExpression". lol, great! this is one of the reasons why in my dream language, assignment would be denoted by any other sign

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread Steven Schveighoffer
On Tue, 04 Jan 2011 12:56:53 -0500, Manfred_Nowak wrote: Steven Schveighoffer wrote: They describe which side of the equation they are on arg, no! please replace "equation" by "assignExpression". please replace arg with argh! ;) But whatever floats your boat. -Steve

Re: Why does the example on page 8 of TDPL work without importing std.algorithm for splitter?

2011-01-04 Thread Bryce Watkins
On 4/01/2011 9:26 p.m., Lars T. Kyllingstad wrote: On Mon, 03 Jan 2011 17:18:34 -0600, Ellery Newcomer wrote: If you're importing some other phobos module, I would guess an instance of this bug: http://d.puremagic.com/issues/show_bug.cgi?id=314 On 01/03/2011 10:56 AM, Bryce Watkins wrote: How

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread Manfred_Nowak
Steven Schveighoffer wrote: > They describe which side of the equation they are on arg, no! please replace "equation" by "assignExpression". -manfred

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread Steven Schveighoffer
On Tue, 04 Jan 2011 08:55:07 -0500, spir wrote: Hello, I'm bluffed by the 2 terms "l-value" & "r-value" used in C-line language common terminologies. I think I guess what they mean, but I don't understand the need for such absconse idioms. Why not: l-value <-> variable r-v

Re: terminology: "l-value" & "r-value"

2011-01-04 Thread Pelle
On 01/04/2011 02:55 PM, spir wrote: Hello, I'm bluffed by the 2 terms "l-value"& "r-value" used in C-line language common terminologies. I think I guess what they mean, but I don't understand the need for such absconse idioms. Why not: l-value<-> variable r-value<-> value (o

terminology: "l-value" & "r-value"

2011-01-04 Thread spir
Hello, I'm bluffed by the 2 terms "l-value" & "r-value" used in C-line language common terminologies. I think I guess what they mean, but I don't understand the need for such absconse idioms. Why not: l-value <-> variable r-value <-> value (or expression) ? I guess (*p) is consi

Re: Asian characters are not printed propely in console

2011-01-04 Thread Vladimir Panteleev
On Tue, 04 Jan 2011 11:47:32 +0200, Jun wrote: Should I use different type and prefix or suffix similary to C++? Place the following code anywhere at the top level in your program: version(Windows) { import std.c.windows.windows : SetConsoleCP, SetConsoleOutputCP; static this

Asian characters are not printed propely in console

2011-01-04 Thread Jun
I'm sorry for posting in the wrong place. I attached screenshot of my code and the result. As you can see, Korean letters get changed after compilation. This problem doesn't happen with user input(from readln() method). Should I use different type and prefix or suffix similary to C++? begin 644

Re: Why does the example on page 8 of TDPL work without importing std.algorithm for splitter?

2011-01-04 Thread Lars T. Kyllingstad
On Mon, 03 Jan 2011 17:18:34 -0600, Ellery Newcomer wrote: > If you're importing some other phobos module, I would guess an instance > of this bug: http://d.puremagic.com/issues/show_bug.cgi?id=314 > > On 01/03/2011 10:56 AM, Bryce Watkins wrote: >> However when I use splitter in my code it works