Re: Multi-library project path issue

2012-05-25 Thread #coder
Thanks for the quick and helpful reply. I will give it a shot. On Friday, 25 May 2012 at 06:36:07 UTC, Jacob Carlborg wrote: On 2012-05-25 08:15, #coder wrote: Hi, I am using the Mono-D for building a project with 3-4 library projects and one console project. Although I am using the Mono-D

Re: druntime investigation troubles

2012-05-25 Thread Sean Kelly
On May 24, 2012, at 11:25 PM, Jacob Carlborg wrote: > On 2012-05-24 21:49, Sean Kelly wrote: > >> There's a difference in how unittest execution is handled. This could >> probably be sorted out though. > > Yeah, I've noticed that. Does the unit test really need to run when you call > rt_init

Re: druntime investigation troubles

2012-05-25 Thread Sean Kelly
On May 25, 2012, at 7:31 AM, "Steven Schveighoffer" wrote: > On Thu, 24 May 2012 16:40:46 -0400, Sean Kelly wrote: > >> It's not STI_monitor specifically. STI_anything is a module ctor and >> STD_anything is a module dtor. Or at least that's my recollection. There are >> a few places in the D

Re: Translating C const

2012-05-25 Thread Jonathan M Davis
On Wednesday, May 16, 2012 10:24:55 Jacob Carlborg wrote: > On 2012-05-16 09:00, Jonathan M Davis wrote: > > Probably true. But also, if you're talking about a const pointer to a > > mutable value, the constness of the pointer is actually irrelevant to the > > caller. The pointer will be copied whe

Re: Simplified socket creation and handling

2012-05-25 Thread Donald Duvall
On Friday, 25 May 2012 at 20:50:25 UTC, Donald Duvall wrote: On Wednesday, 23 May 2012 at 19:24:53 UTC, Jarl André wrote: On Wednesday, 23 May 2012 at 13:39:09 UTC, Jarl André wrote: On Saturday, 19 May 2012 at 20:33:49 UTC, Nathan M. Swan wrote: On Friday, 18 May 2012 at 06:35:59 UTC, Jarl An

Re: Simplified socket creation and handling

2012-05-25 Thread Donald Duvall
On Wednesday, 23 May 2012 at 19:24:53 UTC, Jarl André wrote: On Wednesday, 23 May 2012 at 13:39:09 UTC, Jarl André wrote: On Saturday, 19 May 2012 at 20:33:49 UTC, Nathan M. Swan wrote: On Friday, 18 May 2012 at 06:35:59 UTC, Jarl André wrote: I am a Java developer who is tired of java.nio and

Re: Why doesn't this throw?

2012-05-25 Thread Steven Schveighoffer
On Fri, 25 May 2012 08:59:47 -0400, Andrej Mitrovic wrote: import std.algorithm; import std.stdio; void main() { int[] a = [1, 2, 3]; a = a.remove(3); writeln(a); } writes [1, 2] If I'd called a.remove with index 2 I would get the above result, but index 3 is clearly out of bou

Re: druntime investigation troubles

2012-05-25 Thread Steven Schveighoffer
On Thu, 24 May 2012 16:40:46 -0400, Sean Kelly wrote: It's not STI_monitor specifically. STI_anything is a module ctor and STD_anything is a module dtor. Or at least that's my recollection. There are a few places in the DMC runtime that have initializers like this. I think one is somewhe

Why doesn't this throw?

2012-05-25 Thread Andrej Mitrovic
import std.algorithm; import std.stdio; void main() { int[] a = [1, 2, 3]; a = a.remove(3); writeln(a); } writes [1, 2] If I'd called a.remove with index 2 I would get the above result, but index 3 is clearly out of bounds, so why'd it remove the last element instead of throwing?

Re: state of web programming

2012-05-25 Thread Dejan Lekic
bioinfornatics wrote: > it is a list of project lo look if yo want create a web application in D > - https://github.com/mrmonday/serenity > - > https://github.com/adamdruppe/misc-stuff-including-D-programming-language- web-stuff > - https://github.com/Aatch/dfcgi > - https://github.com/rejectedsof

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-25 Thread Regan Heath
On Wed, 23 May 2012 22:02:25 +0100, Paul wrote: This works, though it's ugly: foreach(line; uniS.splitLines()) { transcode(line, latinS); fout.writeln((cast(char[]) latinS)); } The Latin1String type, at the storage level, is a ubyte[]. By casting to char[], you can get