Re: How to get stack trace on Windows?

2011-07-25 Thread Dmitry Olshansky
On 25.07.2011 13:59, Kagamin wrote: Dmitry Olshansky Wrote: Any idea why this trick is needed? For me it works as is, just wondering... Your dbghelp probably recognizes the old CV format. In case anybody wants to check this, my dbghelp.dll is here: http://dl.dropbox.com/u/7100999/dbghelp.7z

Re: error when std.range.Cycle of static array is a member

2011-07-25 Thread Steven Schveighoffer
On Sun, 24 Jul 2011 10:51:32 -0400, Lutger Blijdestijn wrote: Jonathan M Davis wrote: On Sunday 24 July 2011 12:06:47 Lutger Blijdestijn wrote: I'm trying to have a Cycle range of a static array as a struct member, but getting a compilation error. Can anybody tell me if I'm doing something

Re: How do I call super or object.opAssign for classes?

2011-07-25 Thread Andrej Mitrovic
http://d.puremagic.com/issues/show_bug.cgi?id=6378 On 7/25/11, Steven Schveighoffer wrote: > On Sat, 23 Jul 2011 12:23:07 -0400, Andrej Mitrovic > wrote: > >> class Foo >> { >> void opAssign(int bar) >> { >> } >> } >> >> void main() >> { >> auto foo = new Foo; >> foo = null;

Re: Sending messages using socket

2011-07-25 Thread nrgyzer
== Auszug aus Adam Ruppe (destructiona...@gmail.com)'s Artikel > Browsers speak HTTP, which is a higher level protocol than > plain sockets. > If you connect to your app with a simpler program, like nc, > you'll probably see the message. > If you want to serve web pages, consider one of these optio

Re: How do I call super or object.opAssign for classes?

2011-07-25 Thread Steven Schveighoffer
On Sat, 23 Jul 2011 12:23:07 -0400, Andrej Mitrovic wrote: class Foo { void opAssign(int bar) { } } void main() { auto foo = new Foo; foo = null; } test.d(17): Error: function test.Foo.opAssign (int bar) is not callable using argument types (void*) test.d(17): Error: can

Re: can I force a parallel foreach to finish?

2011-07-25 Thread Steven Schveighoffer
On Fri, 22 Jul 2011 18:38:15 -0400, McAnany, Charles E wrote: Hi, all. So I'm getting the classic "concurrency noob" behavior from this code: shared int times; int[] iterationRange = new int[2500]; foreach (pos, ref i; parallel(iterationRange)){ times++; } write

Re: 2.054 doesn't install properly for Ubuntu 10.10?

2011-07-25 Thread Jacob Carlborg
On 2011-07-25 13:02, Andrej Mitrovic wrote: On 7/25/11, Jacob Carlborg wrote: I suggest you give DVM a try: https://bitbucket.org/doob/dvm Oh hey, I completely forgot that DVM was on Linux to begin with, even though I use it on Windows. :) Hehe, it's been available for Linux since the first

Re: 2.054 doesn't install properly for Ubuntu 10.10?

2011-07-25 Thread Andrej Mitrovic
On 7/25/11, Jacob Carlborg wrote: > I suggest you give DVM a try: https://bitbucket.org/doob/dvm Oh hey, I completely forgot that DVM was on Linux to begin with, even though I use it on Windows. :)

Re: How to get stack trace on Windows?

2011-07-25 Thread Kagamin
Dmitry Olshansky Wrote: > Any idea why this trick is needed? For me it works as is, just wondering... Your dbghelp probably recognizes the old CV format.

Re: How to get stack trace on Windows?

2011-07-25 Thread Dmitry Olshansky
On 25.07.2011 1:04, Nick Sabalausky wrote: "Andrej Mitrovic" wrote in message news:mailman.1893.1311501384.14074.digitalmars-d-le...@puremagic.com... This is what works for me: module test; import std.stdio; void main() { foo(); } void foo() { bar(); } void bar() { assert(0); } D:

Re: Reference counting questions

2011-07-25 Thread Johannes Pfau
Andrej Mitrovic wrote: >I'm don't understand why this code calls the dtor before it calls the >ctor: > >import std.stdio; >import std.typecons; > >void main() >{ >auto wrap1 = Wrapper(1); >} > >void free(ref int _payload) >{ >writeln("dealloc"); >_payload = 0; >} > >struct Wrapper >{ >