Re: Help with Concurrency

2015-11-05 Thread Dmitri via Digitalmars-d-learn
On Tuesday, 3 November 2015 at 23:16:59 UTC, bertg wrote: I am having trouble with a simple use of concurrency. Running the following code I get 3 different tid's, multiple "sock in" messages printed, but no receives. I am supposed to get a "received!" for each "sock in", but I am getting

Re: How to break gdb on D exception ?

2015-10-05 Thread Dmitri via Digitalmars-d-learn
On Sunday, 4 October 2015 at 14:31:43 UTC, BBasile wrote: On Friday, 2 October 2015 at 09:15:13 UTC, Dmitri wrote: On Friday, 2 October 2015 at 04:50:59 UTC, BBasile wrote: On Friday, 2 October 2015 at 04:46:51 UTC, BBasile wrote: On Friday, 2 October 2015 at 04:24:11 UTC, Adam D. Ruppe

Re: problem with exceptions

2015-10-02 Thread Dmitri via Digitalmars-d-learn
On Friday, 2 October 2015 at 12:45:38 UTC, steven kladitis wrote: On Friday, 2 October 2015 at 12:18:36 UTC, Dmitri wrote: On Friday, 2 October 2015 at 11:44:21 UTC, steven kladitis wrote: C:\d\examples>pb2 =>main's first line =>makeOmelet's first line =>prepareAll's first line

chunkBy limitation?

2015-10-02 Thread Dmitri via Digitalmars-d-learn
I wondered if this is a current limitation of chunkBy implementation: // http://dpaste.dzfl.pl/52d6a0c5d0ab void bar(int[] foo) { bool less(int a, int b) // contrived { return a < b; }; foo.sort!less.groupBy; } resulting in:

Re: problem with exceptions

2015-10-02 Thread Dmitri via Digitalmars-d-learn
On Friday, 2 October 2015 at 11:44:21 UTC, steven kladitis wrote: C:\d\examples>pb2 =>main's first line =>makeOmelet's first line =>prepareAll's first line =>prepareEggs's first line object.Exception@pb2.d(64): Cannot take -8 eggs from the fridge 0x00402252

Re: How to break gdb on D exception ?

2015-10-02 Thread Dmitri via Digitalmars-d-learn
On Friday, 2 October 2015 at 04:50:59 UTC, BBasile wrote: On Friday, 2 October 2015 at 04:46:51 UTC, BBasile wrote: On Friday, 2 October 2015 at 04:24:11 UTC, Adam D. Ruppe wrote: On Friday, 2 October 2015 at 03:58:45 UTC, BBasile wrote: none of the following GB commands work: give break

Re: chunkBy limitation?

2015-10-02 Thread Dmitri via Digitalmars-d-learn
On Friday, 2 October 2015 at 18:16:59 UTC, Ali Çehreli wrote: On 10/02/2015 02:21 AM, Dmitri wrote: > [...] implementation: > [...] Error: > [...] function > [...] less).SortedRange.groupBy!().groupBy > [...] the nested > [...] compilation error. > [...] Group should > [...] This is a known D