Re: mscoff x86 invalid pointers

2015-05-10 Thread Baz via Digitalmars-d-learn
On Sunday, 10 May 2015 at 12:20:39 UTC, Etienne Cimon wrote: On 2015-05-10 03:54, Baz wrote: On Sunday, 10 May 2015 at 04:16:45 UTC, Etienne Cimon wrote: On 2015-05-09 05:44, Baz wrote: On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC, Etienne

Re: Object.factory fails for nested classes ?!

2015-05-10 Thread extrawurst via Digitalmars-d-learn
On Sunday, 10 May 2015 at 13:38:22 UTC, extrawurst wrote: Is it a bug or just missing specification that using Object.factory(fullyQualifiedNameToNestedClass) fails ? See repro here: http://dpaste.dzfl.pl/d789237b0f46 Regards, Stephan Ok "real" nested classes (class with outer pointer) wont

Re: Bug or feature?

2015-05-10 Thread Jack Applegame via Digitalmars-d-learn
Ok, it's a feature. Thanks.

Re: Cannot find -lphobos

2015-05-10 Thread Marko Grdinic via Digitalmars-d-learn
Your advice worked, thanks. It turns out that from the command line it compiles and links just fine. Codeblocks is the thing that is giving me trouble. It might have something to do that I am using the old Codeblocks 8.0 version. I would like to get the newest version but the Virtual Box OS is

Re: Bug or feature?

2015-05-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, May 10, 2015 10:48:33 Ali Çehreli via Digitalmars-d-learn wrote: > On 05/10/2015 10:18 AM, Jack Applegame wrote: > > code: > > > >> class A { > >> void test(int) {} > >> } > >> > >> class B : A { > >> void test() { > >> super.test(1); // compiles > >> test(10);

Re: Bug or feature?

2015-05-10 Thread Manfred Nowak via Digitalmars-d-learn
Jack Applegame wrote: >> test(10); // error One can "import" the declaration by using an alias: class A { void test(int) {} } class B : A { alias test= super.test; void test() { super.test(1); // compiles test(10); // compiles } } -manfred

Re: Bug or feature?

2015-05-10 Thread Ali Çehreli via Digitalmars-d-learn
On 05/10/2015 10:18 AM, Jack Applegame wrote: code: class A { void test(int) {} } class B : A { void test() { super.test(1); // compiles test(10); // error } } Error: function B.test () is not callable using argument types (int) It is a concept called "name

Bug or feature?

2015-05-10 Thread Jack Applegame via Digitalmars-d-learn
code: class A { void test(int) {} } class B : A { void test() { super.test(1); // compiles test(10); // error } } Error: function B.test () is not callable using argument types (int)

Re: Cannot find -lphobos

2015-05-10 Thread weaselcat via Digitalmars-d-learn
On Sunday, 10 May 2015 at 14:41:17 UTC, Ali Çehreli wrote: On 05/10/2015 12:45 AM, Marko Grdinic wrote: I works just fine on Windows, but I am having difficulty figuring out what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the instruction on the Codeblocks Wiki and set the paramet

Re: Cannot find -lphobos

2015-05-10 Thread Ali Çehreli via Digitalmars-d-learn
On 05/10/2015 12:45 AM, Marko Grdinic wrote: I works just fine on Windows, but I am having difficulty figuring out what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the instruction on the Codeblocks Wiki and set the parameters, but when I try to compile, it complains that it can't fi

Object.factory fails for nested classes ?!

2015-05-10 Thread extrawurst via Digitalmars-d-learn
Is it a bug or just missing specification that using Object.factory(fullyQualifiedNameToNestedClass) fails ? See repro here: http://dpaste.dzfl.pl/d789237b0f46 Regards, Stephan

Re: mscoff x86 invalid pointers

2015-05-10 Thread Etienne Cimon via Digitalmars-d-learn
On 2015-05-10 03:54, Baz wrote: On Sunday, 10 May 2015 at 04:16:45 UTC, Etienne Cimon wrote: On 2015-05-09 05:44, Baz wrote: On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC, Etienne wrote: I'm trying to compile a library that I think used to

Re: Memory usage tracking

2015-05-10 Thread tcak via Digitalmars-d-learn
On Sunday, 10 May 2015 at 10:50:40 UTC, weaselcat wrote: On Sunday, 10 May 2015 at 10:43:37 UTC, tcak wrote: On Sunday, 10 May 2015 at 09:44:42 UTC, tcak wrote: I am testing my web server right now. I started 5 separate consoles and continuously sending request by using "curl" to it. It uses

Re: Memory usage tracking

2015-05-10 Thread weaselcat via Digitalmars-d-learn
On Sunday, 10 May 2015 at 10:43:37 UTC, tcak wrote: On Sunday, 10 May 2015 at 09:44:42 UTC, tcak wrote: I am testing my web server right now. I started 5 separate consoles and continuously sending request by using "curl" to it. It uses shared memory as well, thought from `ipcs -a`, I don't s

Re: Memory usage tracking

2015-05-10 Thread tcak via Digitalmars-d-learn
On Sunday, 10 May 2015 at 09:44:42 UTC, tcak wrote: I am testing my web server right now. I started 5 separate consoles and continuously sending request by using "curl" to it. It uses shared memory as well, thought from `ipcs -a`, I don't see more than necessary amount of allocation. At the

Memory usage tracking

2015-05-10 Thread tcak via Digitalmars-d-learn
I am testing my web server right now. I started 5 separate consoles and continuously sending request by using "curl" to it. It uses shared memory as well, thought from `ipcs -a`, I don't see more than necessary amount of allocation. At the moment, server received about 1.5M requests, and memo

Re: Spawning a console in Windows (similar to forkpty on linux)

2015-05-10 Thread Kagamin via Digitalmars-d-learn
On Saturday, 9 May 2015 at 13:00:01 UTC, wobbles wrote: My windows knowledge isnt marvelous, but I believe I'll need the interpreter attached. If you only need the interpreter, pipeProcess should be fine, it's a normal program like anything else, just interactive.

Re: Spawning a console in Windows (similar to forkpty on linux)

2015-05-10 Thread Kagamin via Digitalmars-d-learn
On Saturday, 9 May 2015 at 13:00:01 UTC, wobbles wrote: Just as an example of running cmd through std.process, running this on my system: auto pipes = pipeShell("cmd.exe"); write(pipes.stdout.readln); write(pipes.stdout.readln); write(pipes.stdout.readln);

Re: mscoff x86 invalid pointers

2015-05-10 Thread Baz via Digitalmars-d-learn
On Sunday, 10 May 2015 at 04:16:45 UTC, Etienne Cimon wrote: On 2015-05-09 05:44, Baz wrote: On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC, Etienne wrote: I'm trying to compile a library that I think used to work with -m32mscoff flag before

Cannot find -lphobos

2015-05-10 Thread Marko Grdinic via Digitalmars-d-learn
I works just fine on Windows, but I am having difficulty figuring out what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the instruction on the Codeblocks Wiki and set the parameters, but when I try to compile, it complains that it can't find Phobos. /usr/bin/ld: cannot find -lpho

Comparing variants

2015-05-10 Thread rumbu via Digitalmars-d-learn
Comparing integer signed and unsigned variants will result in error: import std.variant; void main() { auto a = 11; auto b = 10u; assert(a > b); Variant va = 11; Variant vb = 10u; assert(va > vb); //error } std.variant.VariantException@std/variant.d(1309): Varian